photools.com Community

IMatch Bug Reports and Feature Requests => Feature Requests => Solved (Feature Requests) => Topic started by: axel.hennig on April 13, 2023, 09:23:01 PM

Title: File Window Variables
Post by: axel.hennig on April 13, 2023, 09:23:01 PM
Related to this post: Variable for "Total files in File Window" available? (https://www.photools.com/community/index.php/topic,13137.0.html)

This is a suggestion to create two new Variables ->  File Window Variables:

With those Variables one could create a Layout Template showing something like:

One could also think of additional File Window Variables, for example:
Title: Re: File Window Variables
Post by: sinus on April 14, 2023, 08:41:00 AM
I think, like Mario pointed out somewhere, this ist doable.

My wish for variables for categories (https://www.photools.com/community/index.php/topic,13137.0.html) would give a lot more work, I guess, hence I support simply your FR.  :)
Title: Re: File Window Variables
Post by: Mario on April 14, 2023, 07:13:18 PM
I have thought about this and the implementation was quite straightforward.
The File Window already maintains a var context, because this is needed for custom templates in File Window Layouts.
I've augmented that context with a new kind of variables with the prefix {FW.}.

So far I have created {FW.Index}, {FW.FileCount} and {FW.FileSize}.
These variables are based on the filtered and stacked content of the File Window, reflecting the numbers you see in the File Window Caption.

Like zis:

Image3.jpg


Title: Re: File Window Variables
Post by: axel.hennig on April 14, 2023, 09:14:31 PM
That was quick. Thanks.