Quote from: donshakespeare at Nov 07, 2016, 03:06 PMI start using the code to do the same thing on rich text fields on MigX, but I'm receiving this error
How are you using it with MIGX?
I got this code and I'm calling the migx Nested, everything works fine, I just have the error.
This is the call:
[[getImageList?
&tvname=`dynamicOrder`
&tpl=`tpl.dynamicOrder`
]]
The tv:
tpl.dynamicOrder has something like this to pick the type of content to display, every content is another tv with migx or other type of tv inside, that means that there are different tvs in different categories in the manager, but with this
"dynamicOrder" you will be able to activate, desactivate and change the order of the content that you want to display (sonds messy but I think is a good idea, I can show you if you want):
tv: tpl.dynamicOrder
]
{"field":"tv","caption":"Categorie", "inputTVtype":"listbox","inputOptionValues":"Main Image==Main Image||Main Content==Main Content||Content Extra==Content Extra||Slideshow==Slideshow||Map==Map||Gallery==Gallery"}
]
The tpl:
tpl.dynamicOrder will display the chunk $contentExtra once is selected:
[[+tv:is=`Content Extra`:then=`[[$contentExtra`]]`]]
inside the chunk:
$contentExtra I got the other migx call:
[[getImageList?
&tvname=`dynamicExtraContent`
&tpl=`tpl.dynamicExtraContent`
]]
Tv: dynamicExtraContent :
[
{"field":"description","caption":"Content","inputTVtype":"richtext"}
]
TPL: tpl.dynamicExtraContent`
[[+description:notempty=`
</div>
[[+description:cuteLazyImages]] // AND HERE IS WHERE I'M CALLING THE CODE!!!
</div>
`]]
:) Hope you understand mate!!!
Thank you very much for your help.