MIGX
MIGX copied to clipboard
Issue with MIGX / getImageList and uncached values
Hello,
Edited: Changed this as I have found more info.
Thanks for MIGX it is vital for so many projects for me! I have an issue with MIGX where uncached nested output is not being displayed. I have a call like this:
[[!getImageList?
&tvname=`RelatedContent`
&toPlaceholder=`migx_RelatedContent`
&tpl=`RelatedContentTpl`
]]
[[!+migx_RelatedContent:notempty=`
<div id="related-content">
<ul class="boxes">
<li class="first"><span>Related:</span></li>
[[!+migx_RelatedContent]]
</ul>
</div>
`]]
This doesn't work and shows a blank space. I think this is because there is a nested uncached placeholder. But this works if I move it outside of the :empty
[[!getImageList?
&tvname=`RelatedContent`
&toPlaceholder=`migx_RelatedContent`
&tpl=`RelatedContentTpl`
]]
[[!+migx_RelatedContent:notempty=`
<div id="related-content">
<ul class="boxes">
<li class="first"><span>[[%site.related-content? &namespace=`site` &language=`[[*context_key]]`]]:</span></li>
`]]
[[!+migx_RelatedContent]]
[[!+migx_RelatedContent:notempty=`
</ul>
</div>
`]]
Thanks,
Hi,
Are you sure, you have everything else setup the same, as in a working installation? I see no reason to call getImageList uncached here and I would suggest to use a wrapperTpl
[[getImageList? &tvname=RelatedContent
&tpl=RelatedContentTpl
&wrapperTpl=RelatedContentWrapper
]]
the wrapper-chunk:
Am 01.04.2016 um 13:06 schrieb Stewart Orr:
Hello,
Thanks for MIGX it is vital for so many projects for me! I have an issue with the 2.9.x MIGX where output is not being displayed when it was correctly being displayed for 2.8.3. I have a call like this:
|[[!getImageList? &tvname=
RelatedContent
&toPlaceholder=migx_RelatedContent
&tpl=RelatedContentTpl
]] [[+migx_RelatedContent:notempty=<div id="related-content"> <ul class="boxes"> <li class="first"><span>Related:</span></li> [[+migx_RelatedContent]] </ul> </div>
]] |In the new version this no longer works and shows a blank space. I have tried adding ! to uncache the values but this does not work unless I remove the line:
|[[+migx_RelatedContent:notempty=|
This then works. Any ideas? I have removed 2.9.x for 2.8.3 and this works.
Thanks,
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/Bruno17/MIGX/issues/255
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus
Hi Bruno thanks for reply. I have modified this issue as was wrong - this is not to do with 2.8x vs 2.9. It seems that when using usePlaceholder nested uncached placeholders doesn't work?
Thanks for your reply. Should I not use &toPlaceholder=
migx_RelatedContent``and instead use&wrapperTpl
?