18-05-2015, 13:52
Hi
I've got very confused about the tagging syntax used for format strings. I have read and re-read both the guide and some of the posts on the forum, but it didn't really help....
In the guide it says:
tag-name.displayFormat={format-string}
where the format-string is a sequence of one or more format items, and a format item is:
$tag-list^prefix^suffix^separator
and each format item includes a tag list....
Later on as an example it gives: Title.displayFormat={$title^$date^ [^]}
This I assume is a format string with a single format item that has a tag list containing 2 tags...?
Is this the same as: Title.displayFormat={$title^^^$date^ [^]^}
Again a format string but containing two format items, each with a tag list containing only a single tag?
When a second tag is referenced is the next caret (^) found associated with the last tag? And then once three ^'s have been processed for a tag any subsequent ones are associated with the previous tag, i.e. the processing is recursive and is always trying to close off the last tag?
So in the above example is the [ a prefix for $date rather than a suffix for $title?
Hope this makes sense!!
Chris
I've got very confused about the tagging syntax used for format strings. I have read and re-read both the guide and some of the posts on the forum, but it didn't really help....

In the guide it says:
tag-name.displayFormat={format-string}
where the format-string is a sequence of one or more format items, and a format item is:
$tag-list^prefix^suffix^separator
and each format item includes a tag list....
Later on as an example it gives: Title.displayFormat={$title^$date^ [^]}
This I assume is a format string with a single format item that has a tag list containing 2 tags...?
Is this the same as: Title.displayFormat={$title^^^$date^ [^]^}
Again a format string but containing two format items, each with a tag list containing only a single tag?
When a second tag is referenced is the next caret (^) found associated with the last tag? And then once three ^'s have been processed for a tag any subsequent ones are associated with the previous tag, i.e. the processing is recursive and is always trying to close off the last tag?
So in the above example is the [ a prefix for $date rather than a suffix for $title?
Hope this makes sense!!
Chris
