Where, exactly, is the tag (template, page content, tv, chunk, etc.)?
Quote from: BobRay at Mar 08, 2016, 12:33 AMWhere, exactly, is the tag (template, page content, tv, chunk, etc.)?
I have a Template calling a [[$chunk]] using mmlCache. The [[$chunk]] is calling the [[!snippet? &get=`test`]].
For some reason, [[!snippet? &get=`test`]] is being parsed twice.
Jean-Marc Buytaert (@jmbuytaert)
MODX truly is the greatest thing that's ever happened to the Internet.
You might file it as an issue
here.
Quote from: Jako at Mar 08, 2016, 04:50 AMQuote from: jmbuytaert at Mar 07, 2016, 08:36 PM
This is also happening for me. My snippet [[!snippet? &get=`test`]] is being called twice (it's logging twice in a row in the error log), even though I'm only calling it once. Has anyone figured out why this is happening? My guess is there's something funky with the MODX Cloud caching (maybe?).
Do you use a description field in the template that is somehow filled with the content? Are snippet calls filtered away in that field before they are executed?
This is what I have. I hope this answers your question.
Template
[[!mmlCache?
&element=`pdoResources`
&parents=`0`
&resources=`[[*id]]`
&tpl=`chunk`
&includeTVs=`[[mmlGetTemplateTVs]]`
&prepareTVs=`1`
&processTVs=`1`
&includeContent=`1`
&tvPrefix=``
&loadModels=`migxmultilang`
&prepareSnippet = `mmlTranslatePdoToolsRow`
]]
Chunk [[$chunk]]
[[!snippet? &get=`test`]]
Jean-Marc Buytaert (@jmbuytaert)
MODX truly is the greatest thing that's ever happened to the Internet.
Quote from: BobRay at Mar 08, 2016, 12:16 PMYou might file it as an issue here.
Thank you Bob. I'll check it out.
Jean-Marc Buytaert (@jmbuytaert)
MODX truly is the greatest thing that's ever happened to the Internet.