Even if that worked it would be fairly slow.
A custom snippet is probably what you want, but do you really want to just print the word 'right' if all four of those TVs are set?
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html
I'm using the code to set a class in a chunk for teasers on the frontpage. These teasers can be activated/ deactivated and depending on their position the last and the 4th one need a margin.
The first can be solved with css(2). The 4th also with css3 but the older browsers will not support this.
So far the output modifier approach was not successful so I will just stick with css3 and check it again later.
Hi BobRay, I have been thinking about your remark to make a custom snippet instead of using these modifiers. But if you have 4 different chunks with different variables would this mean you need to make 4 different snippets?
Chunk 1 needs image1 and link1 and Chunk 2 needs image2 and link2.
Sorry, I'm still not getting what you're trying to do. Your code above (if it worked) would have replaced the tag with the word 'right' if all four TVs contained the content of their respective chunks and I doubt if that's what you wanted.
Are you using getResources to create the teasers? It has a number of &tp* properties that might work for you.
http://rtfm.modx.com/display/ADDON/getResources#getResources-TemplatingProperties
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html