Hi all,
I’m having a lot of trouble with getResources. Especially with the tvFilters-parameter.
I’ve created a folder ("Kantoren") which contains the following code:
<div id="wrapper_cabins">
<ul id="overview_cabins">
[[getResources? &parents=`2` &tpl=`cabin_overview` &includeTVs=`1` &processTVs=`1` &tvPrefix=`` &hideContainers=`1` &showHidden=`1` &tvFilters=`cabin_category==1`]]
</ul>
</div>
The "cabin_overview" chunk contains the following code, which works flawlessly
<li><a href="[[~[[+id]]]]"><img src="[[+cabin_image:phpthumbof=`w=160&h=98&zc=1`]]" width="160" height="98"><br> [[+pagetitle]]</a></li>
I’ve attached the following Template Variable to the page which I’ve put inside parent ’2’: a Check Box named "cabin_category" with the following Input Option Values.
Kantoren==1||Industrie==2||Bouw==3||Scholen==4
The tree is setup like this:
Cabintypes (folder)
- Kantoren (folder, which contains the 1st code)
- Industrie (folder)
- Bouw (folder)
- Scholen (folder)
- Type A (page which contains the check box variable)
Now, I’d like to filter the results per folder. A template which has the option "Kantoren" checked, should be displayed with the very first code above right? And yet, it doesn’t work. I’ve left out the tvFilters parameters and it works like a charm then, but that’s not what I’m looking for. I want to filter the results, based on what is and isn’t checked with "cabin_category".
So what am I doing wrong? I’m using Revo 2.1 RC by the way.