Author Topic: File tips  (Read 1980 times)

Robvog

  • New Members
  • *
  • Posts: 21
File tips
« on: February 16, 2017, 08:27:49 PM »
In Preferences you can set the File Window tip.
To see the categories for eacht file I use this expression:

<Run FontFamily='Tahoma' FontSize='12pt' FontWeight='light' Foreground='#dbb609' > Categorie:{File.Categories.Direct|level:1} > {File.Categories.Direct|level:-1} > {File.Categories.Direct|level:-0}</Run>

The result is okay for files with only one categorie (with one or more levels).
When there are two or more categories, with each more levels, the info tip is not what I would prefer,
For example: a file has 3 categories, each two levels:
cat 1: Flora > composites (flora is the 1st level and composites the 2nd level)
cat 2: Holliday-location > France south (Holliday-location is the 1st level and France south the 2nd)
cat 3: Holliday-year > 2009 (Holliday year is the 1st level and 2009 the 2nd)

The result is this File Window tip: Flora; Holliday-location; Holliday-year > composites; France south; 2009
Instead I would like this order: Flora > composites; Holliday location > France south; Holliday year > 2009

Is that possible and how can I get this?
A helping answer would be nice....

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 27472
Re: File tips
« Reply #1 on: February 16, 2017, 08:35:22 PM »
The category variables sort the categories alphabetically when I recall correctly.
Accessing individual levels that way is pretty uncommon as well.

This is not really a question for the Scripting & Apps board.
Please use the appropriate boards or your question, e.g. "General Discussion" when you don't find a matching board.
« Last Edit: February 16, 2017, 08:46:32 PM by Mario »

ubacher

  • Oldtimer
  • ****
  • Posts: 2225
Re: File tips
« Reply #2 on: February 17, 2017, 01:17:06 PM »
I use this line in my file window tips:
Code: [Select]
{File.Categories.Direct|replace:'==ยด;pereplace:|==>;pereplace:~;==</Run><LineBreak/><Run FontSize="8pt">;prefix:<Run FontSize="8pt">;postfix:</Run>}This might do what you want. Give it a try.

Robvog

  • New Members
  • *
  • Posts: 21
Re: File tips
« Reply #3 on: February 17, 2017, 03:53:42 PM »
Ubacher: thank you, it is exactly what I want!
I will use your script!




Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 27472
Re: File tips
« Reply #4 on: February 17, 2017, 04:02:21 PM »
See? There is always an IMatch  :D
Don't try this in another DAM - it might explode  ::) ;)