Author Topic: Customizing sample layouts  (Read 93 times)

neal

  • Jr. Member
  • *
  • Posts: 65
Customizing sample layouts
« 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:~;==~; }

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28570
Re: Customizing sample layouts
« Reply #1 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 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.

neal

  • Jr. Member
  • *
  • Posts: 65
Re: Customizing sample layouts
« Reply #2 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!

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28570
Re: Customizing sample layouts
« Reply #3 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.



neal

  • Jr. Member
  • *
  • Posts: 65
Re: Customizing sample layouts
« Reply #4 on: June 10, 2021, 12:22:10 PM »
Perfect! Thanks.