photools.com Community

IMatch Anywhere Discussion Boards => IMA General Discussion and Questions => Topic started by: neal on June 09, 2021, 02:55:56 PM

Title: Customizing sample layouts
Post by: neal on June 09, 2021, 02:55:56 PM
Mario,
I would like to be able to copy some of the window layouts in Anywhere and then edit them to suit my needs. I think, with the variable app, I could figure out something simple.
Also, wherever there are keywords in these layouts, they are always hierarchical keywords. These take up a lot of space on the screen. I only require flat keywords. How to  change the following in the Custom layout to show only flat keywords?
{File.MD.headline|default:{File.MD.title}}<br/>{File.MD.description}<br/>{File.MD.hierarchicalkeywords|replace:~;==~; }
Title: Re: Customizing sample layouts
Post by: Mario on June 09, 2021, 03:11:24 PM
What do you consider 'flat' keywords? IMatch always works with hierarchical keywords internally and flattens them, according to the settings under Edit > Preferences > Metadata during write-back or Keyword Panel editing. All layouts in IMA use hierarchical keywords. You can use a custom layout and variables to control what you see there.

Do you want to show only the leaf keyword?
If so, this is covered with many details in the Variables (https://www.photools.com/help/imatch/#var_basics.htm) topic. Search for leaf and combine with a filter for @Keywords to get only the @Keyword categories. Several examples on that page. Use the VarToy app in IMatch to test your variables.
Title: Re: Customizing sample layouts
Post by: neal on June 09, 2021, 03:34:03 PM
Mario,
I am not a programmer and reading that material is confusing to me. Please just show me what I asked re:display of ordinary keywords without their path. Type out the example so I can copy and paste it, please!
Title: Re: Customizing sample layouts
Post by: Mario on June 09, 2021, 03:41:28 PM
Try

{File.MD.XMP::dc\subject\Subject\0}

This variable refers to the tag containing the flattened keywords IMatch produces from the hierarchical keywords.


Title: Re: Customizing sample layouts
Post by: neal on June 10, 2021, 12:22:10 PM
Perfect! Thanks.