Michael van Laar Reply #1, 3 months, 2 weeks ago
I just tried the whole tagging thing in Revo for the first time. To be exact, I rebuild some of the templates to use a tag TV instead of a TV which pulls its content from some resources (which acted as kind of tags or categories).
While rebuilding the template for the page which displays all articles for a given tag, I came across the following problem:
The old templated used a snippet call like this to show a paged article list:
The PropertySet “MediathekPaging” contained some settings (like pageActiveTpl, pageNavOuterTpl etc.) to make the paging navigation look the way it should. Since I use these settings for all my paging navigations, a PropertySet prevents redundancy.
After converting the above getPage snippet call into a getResourcesTag snippet call, everything worked, except that the settings of my PropertySet were not used. Because the documentation doesn’t tell anything about this, I simply tried, if one of the two guesses would work:
Since both guesses didn’t work, I endet up, including the properties of the PropertySet directly in the snippet call:
This produces the desired result. But I have to include all the properties in every getResourcesTag call and have no possibility to maintain them in a PropertySet.
So my question is: Is it possible to use PropertySets with getResourcesTag at all?
While rebuilding the template for the page which displays all articles for a given tag, I came across the following problem:
The old templated used a snippet call like this to show a paged article list:
[[!getPage@MediathekPaging? &element=`getResources` &parents=`9` &tvFilters=`video-gallery-city==[[*id]]` &includeTVs=`1` &processTVs=`1` ]]
The PropertySet “MediathekPaging” contained some settings (like pageActiveTpl, pageNavOuterTpl etc.) to make the paging navigation look the way it should. Since I use these settings for all my paging navigations, a PropertySet prevents redundancy.
After converting the above getPage snippet call into a getResourcesTag snippet call, everything worked, except that the settings of my PropertySet were not used. Because the documentation doesn’t tell anything about this, I simply tried, if one of the two guesses would work:
[[!getResourcesTag@MediathekPaging? ... ]]
[[!getResourcesTag? &grSnippet=`getPage@MediathekPaging` ... ]]
Since both guesses didn’t work, I endet up, including the properties of the PropertySet directly in the snippet call:
[[!getResourcesTag? &parents=`9` &tagKey=`cities` &includeTVs=`1` &processTVs=`1` &pageActiveTpl=`<span class="current">[[+pageNo]]</span>` &pageNavOuterTpl=`[[+pages]]` &pageNavTpl=`<a href="[[+href]]" class="page">[[+pageNo]]</a>` &pageNextTpl=`<a href="[[+href]]" class="next">vor</a>` &pagePrevTpl=`<a href="[[+href]]" class="prev">zurueck</a>` ]]
This produces the desired result. But I have to include all the properties in every getResourcesTag call and have no possibility to maintain them in a PropertySet.
So my question is: Is it possible to use PropertySets with getResourcesTag at all?