-
☆ A M B ☆
- 24,524 Posts
Or you could get both of them in one snippet and output them together with their li tags, if you want to display them both together. Just surround the snippet call with the ul tags.
Yes, If you mean "I would use 2 Snippet tags -- one to display each TV, instead of using TV tags"
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
-
☆ A M B ☆
- 24,524 Posts
Bob, a question. What is the advantage/disadvantage of your code vs the code I had suggested for the TV @EVAL code?
Quote from: sottwell at Jul 20, 2012, 01:44 AMBob, a question. What is the advantage/disadvantage of your code vs the code I had suggested for the TV @EVAL code?
I'm not sure. My code would avoid having to hard-code the resource ID in the TV and I think it would be easier to implement for non PHP coders (less prone to typos). I think it might be a tad faster, since it would avoid the overhead of parsing and rendering the TV and processing the @eval, but I could be wrong.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
-
☆ A M B ☆
- 24,524 Posts
Ah, no, I meant that code as the snippet code.
The snippet tag can go anywhere you want to show the value of that TV.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
It goes at the spot you want to display the TV value. That tag, wherever it is, will be replaced by the value of the TV.
I'm afraid I can't think of any other way to put it.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html