Quote from: bennyb at Jul 05, 2012, 02:57 PMHey Susan,
Do you mean some output/input filters for revo as phx is only Evo right?
Ben
Ok, you can say tomato and I'll say tomahto, but it boils down to the same ketchup. Besides, phx is easier to type than output/input when one is dyslexic!
Of course, Jason is way ahead of me
-
- 138 Posts
Hi @opengeek,
I am really interested to use your method for a slider. I just don't understand what I have to include for "tplCondition"
Here is what I have:
[[getResources?
&parents=`678`
&tplCondition=`Templates`
&conditionalTpls=`{"1":"tabs1","2":"tabs2","3":"tabs3","4":"tabs4","5":"tabs5","6":"tabs6"}`
&tpl=`tabs`
&showHidden=`1`
&limit=`6`
&includeTVs=`2`
]]
So, if I am not wrong, in "&tpl" and "&conditionalTpls" I have included the different chuncks, but I am just wondering what I am suppose to do for "&tplCondition", is it a chunck, a tv ?
Thanks for your help.
Webdesigner and musician.
It's the name of the Resource field whose value is evaluated against the conditionalTpls you specify.
-
- 138 Posts
Hi opengeek, thanks for help.
Actually, I have used another feature of getresource (tpl_N) and it worked like a charm, see here:
http://rtfm.modx.com/display/ADDON/getResources#getResources-TemplatingProperties
Of course, because you're the one who's editing the plugin I am not teaching you anything lol, but it may help the others.
Webdesigner and musician.
Quote from: opengeek at Jul 05, 2012, 03:20 PMIn the latest release of getResources (1.5.0-pl) there is a new feature for conditional tpls:
[[getResources?
&tplCondition=`template`
&conditionalTpls=`{"1":"tplA","2":"tplB","3":"tplC"}`
]]
Great stuff! Did find this here by accident. Would be great to have that documented in the RTFM for everybody to see.
Are there any other cool secret features?
-
- 701 Posts
@rotter. Also how different do hs-news and hs-outlet differ? As you could just use some output filters.