Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
JMM
Experienced
Topic Author
Posts: 215
Joined: 02 Aug 2021, 11:18

The display of "amount" and "date" for each folder, are they stored in variables that I can use?

27 Aug 2025, 00:35

Hello again, Karl,

In X3's Panel, for each gallery (folder) under Settings | Folder, we have the option of enabling or disabling caption items that we wish to display (or not display) in addition to the preview image.  Am I correct in assuming that, for such items as Amount & Date, that the values are stored in some kind of variable (for lack of a better word)?

For some of my galleries, I would like to add a line at the top of those galleries, by adding something like the following to the beginning of the Settings | Content page for that gallery:

This gallery contains $amount pictures, with the most-recent picture having been added on $date.

I have no idea what the actual variable is called, so in the above example I used $amount and $date for now.

Would I be able to accomplish such a thing without too much trouble?

Thanks in advance.

Regards,
John
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: The display of "amount" and "date" for each folder, are they stored in variables that I can use?

27 Aug 2025, 05:45

It seems you are mixing some concepts here. First of all, "Settings | Folder" options are layout options for folder layouts (eg albums), not for the page itself. For the page itself (for example after clicking an item from a folders layout), you would edit Settings > Context instead. Indeed the Settings > Context allows you to add/remove various dynamic items like "amount" and "date", but we don't generally call this "caption items", because it's not really part of a "caption" ...

Also, we don't create public variables from all these "items" that you can use in your own page "content" section. This would require a lot of search-and-replace, and these items are already available from the "items" selector for the page.

Sorry, you won't be able to inject %variables% from the values you mention into your own custom content section.
 
User avatar
JMM
Experienced
Topic Author
Posts: 215
Joined: 02 Aug 2021, 11:18

Re: The display of "amount" and "date" for each folder, are they stored in variables that I can use?

27 Aug 2025, 09:37

mjau-mjau wrote: It seems you are mixing some concepts here.
I am not mixing any concepts.  I know exactly how the amount & date info is displayed, and where they're displayed.
mjau-mjau wrote: Indeed the Settings > Context allows you to add/remove various dynamic items like "amount" and "date", ...
That is exactly what I was "trying" to ask.
mjau-mjau wrote: Also, we don't create public variables from all these "items" that you can use in your own page "content" section. This would require a lot of search-and-replace, and these items are already available from the "items" selector for the page.
As I mentioned, I have no idea what the proper terminology is for the items that I was trying to describe.  I had used variable (for lack of a better word), but I see from your reply that the proper wording would have been "dynamic items" instead of "variables".

I did not write X3, so I have no idea what the proper terminology is.  Which is what I "tried" to describe what I wanted to accomplish, regardless of the terminology used.
mjau-mjau wrote: Sorry, you won't be able to inject %variables% from the values you mention into your own custom content section.
It is "dynamic items" that I had wanted to insert into my content section.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: The display of "amount" and "date" for each folder, are they stored in variables that I can use?

28 Aug 2025, 00:39

JMM wrote:It is "dynamic items" that I had wanted to insert into my content section.
Basically no, there are no "variables" that can be used in your CONTENT that automatically reflect certain values from CONTEXT ITEMS. Even if we stored values in public "variables", you can't just access backend variables in plain html.