-
☆ A M B ☆
- 24,524 Posts
Replace the TV tags with the snippet tags. You had put the TV tags where you wanted the TV value displayed; likewise with any MODx tags (chunks, snippets, TVs, URLs), you just put them where you want their value to be displayed.
Sorry, I don't understand why you'd need another snippet besides the GetTvValue snippet.
I meant that you would create a new snippet called GetTvValue and put my code in it. Then use that tag where the TV value should appear.
------------------------------------------------------------------------------------------
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
I missed that in the beginning myself; the confusion is in the snippet name. GetTVValue is as good a name for a snippet that gets a TV value as any.
In your chunk, put the GetTVValue snippet twice, once to replace each TV tag. Just change the properties to get the TV you want from the resource you want.
Try changing the name of the snippet (change the name in the tags too). It might be colliding with MODX's getTVValue() function.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
Paste your snippet tags and snippet code here.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
You have to spell ResourceID the same way in the tag and in the snippet.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html