This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 2 - Pages: 1 - Last Post: 25-Oct-2017 16:31 Last Post By: odekkers
odekkers

Posts: 20
Registered: 29-Jul-2007
User defined caption for title folder in header
Posted: 22-Oct-2017 18:11
 
  Click to reply to this thread Reply
In the header (hero) it's possible to define a capion for the title of the folder. It works with the variable ${folderModDate}. There are different options to fill this variable (eg date of the folder, range of camera dates).

Normally this works fine, but sometimes it doesn't work out for a particular folder. Is there a way to overrule the general settings of this variable for a specific folder?

Eg: the general setting is: range of camera dates. But for some folders there is something different with the camera dates and I want to see a different caption for that folder. Is that possible?
RobM

Posts: 4,369
Registered: 4-Aug-2006
Re: User defined caption for title folder in header
Posted: 22-Oct-2017 23:53   in response to: odekkers in response to: odekkers
Helpful
  Click to reply to this thread Reply
There might be an easier method, but this does work.

Go to Settings/Advanced/User Variables and in the 'Name' field enter something like customFolderContent

Open Settings/Tiger/Header/Hero, in the 'Caption template' field modify the code from
<h1>${title} <span class="date">${folderModDate}</span></h1>
To
<h1>${title} <span class="date"><%=customFolderContent=="" ? folderModDate : customFolderContent%></span></h1>
Now, edit the folder(s) that you want to have something other than selected for '${folderModDate}' and select the 'Variables' pane and enter customFolderContent for the name and in the value field enter whatever text you want to appear instead.

Remake the album and check the result.
odekkers

Posts: 20
Registered: 29-Jul-2007
Re: User defined caption for title folder in header
Posted: 25-Oct-2017 16:31   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
This works, great! Thank you for your quick response and great help.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums