Where I'm wrong

Started by mgm1965, August 29, 2014, 08:09:43 PM

Previous topic - Next topic

mgm1965

What I'm doing wrong with this?

{File.Categories.Direct|level:leaf|filter:^@Category[@All|Persone|]}

I want to display in the "tool tip information windows" the persons that I've assigned to the image.
And I don't want to see other category assignement

The category tree is:
@All|Event|Birthday
@All|Persone|Franca
@All|Persone|Marco
@All|Persone|Samuele

Thanks

Marco

Mario

You are mixing category formula syntax (@Category) with regular expressions used to filter the result of the File.Categories.Direct variable. This will not work. It's much simpler:

{File.Categories.Direct|filter:^Persone;level:leaf}

The filter find all categories starting with "Persone".  Then you extract the leaf level from that.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

mgm1965