Custom png for Pending metadata

Started by Ooteboe, February 03, 2018, 02:00:30 PM

Previous topic - Next topic

Ooteboe

Playing with variables (all new to me). In order to get a custom pencil for pending metadata i've tried the following code in the file window: {File.MetadataModified|cast:int;is:0,;is:1,<Image Source='file://C:\Pencil.png></Image>'} Doesn't work. Alternative text in stead of the png does. Am I doing something wrong?

Thanks, Hans

Mario

Try using / in your path.

Maybe check out the Using Custom Icons in File Window layouts article in the IMatch knowledge-base. Many other useful articles there.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

loweskid

I have been using the example given in your knowledgebase article to display two icons if the Keywords or Description fields are empty. However this stopped working after the last update and now shows the text as described by Ooteboe.  I assumed this was due to the XAML problem as described in the topic ....

https://www.photools.com/community/index.php?topic=7645

which, I hope.. :), has been fixed for the next update - bug fix #00477.

This is the code I am using (in Header 1 right)....

{File.MD.hierarchicalkeywords|hasvalue:;default:<Image Source='file://C:\ProgramData\photools.com\IMatch5\vl_icons\nokeys.png'></Image>}{File.MD.description|hasvalue:;default:<Image Source='file://C:\ProgramData\photools.com\IMatch5\vl_icons\nodesc.png'></Image>}

Ooteboe

Thanks for your reply. So i'll wait for the next update. In the meantime i'll stick with text ('MD!') and then later the pencil.png.

Hans

loweskid

Just to confirm - this has now been fixed for me in the latest update.  Thanks Mario.

Ooteboe

For me it still doesn't work. I use the following code: {File.MetadataModified|cast:int;is:0,;is:1,<Image Source='file://C:/Pencil.png></Image>'} I've tried backslashes too, all the same.

Hans

Mario

Define "Does not work". What happens. Nothing displayed? Text displayed? Error message?

You did use ' (should better be ") and there is a missing " after the .png. This may be it already, our XAML is invalid.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Ooteboe

Thanks, this works. After placing a ' after the .png.

Hans