Sadly I'm not much of a coder, so I'm wondering if anyone may have time to provide some code that would display an indicator in the Custom Thumb Info to indicate that an image is a member of a portfolio collection? Or maybe even a counter to show the number of collections it's in?
Or maybe someone could point me to some code that I might have a chance of adapting?
Thanks in advance!
Custom Thumb Info code request: 'in portfolio' indicator / counter
Re: Custom Thumb Info code request: 'in portfolio' indicator / counter
Try this:
%CatalogPortfolioList{encode=html}
%CatalogPortfolioList{encode=html}
Re: Custom Thumb Info code request: 'in portfolio' indicator / counter
Yes thanks for the idea. That lists the portfolios, which helps (as does %xmp:ics:Portfolios{encode=html}), but since I'm short on screen space I was hoping for just an indicator (or counter) - more like the result of applying
%ImageHasCatLabels{encode=html}
...but there doesn't seem to be an inbuilt equivalent for portfolios, unless I've missed it.
%ImageHasCatLabels{encode=html}
...but there doesn't seem to be an inbuilt equivalent for portfolios, unless I've missed it.
Re: Custom Thumb Info code request: 'in portfolio' indicator / counter
This should add 'PF' when the image is in a portfolio:
You can add this code to the custom thumb info (either on a separate line or add it to an existing line.
Code: Select all
%code result := iif(Length('%CatalogPortfolioList{encode=html}')>0,'PF',''); %/code
Problems searching the forum? Try Google Site Search by adding 'site:forum.idimager.com' to a standard Google search.
Re: Custom Thumb Info code request: 'in portfolio' indicator / counter
Many thanks Dirk, that's just what I had in mind; much appreciated