Hi,
I’m totally confused by a behavior I just cant understand, either I’m blind, or something has changed in 1.05..
I use a TV
[*put_diaporama*] (check boxes Y/N with value 1/0) in order to give a redactor a choice to activate or not a slideshow.
To do this I first tried with a phx test that broke my template and roll back to a simplier way I already used in other version : calling a chunk name built with the Tv value and a basic string:
in the template I put
{{diaporama[*put_diaporama*]}}
in order to fire
{{diaporama1}} if a slide-show is wanted and {{diaporama0}} if not (the last chunk is even not supposed to exist)
This is not working:
no chunck is injected.
Of course if I write "diaporama[*put_diaporama*]" without the {{}} the string is correctly built and is exactly as expected, meaning the chunck is not interpreted ....?!??
Really urgent
Thank you
--------
the needed chunck contains:
<div id="diaporama">
{{diapos}}
<p>
cliquez sur l’image pour voir en grand
</p>
</div>
and {{diapos}} has a test over another TV wich is listing all pages having an EvoGallery defined (running a custom snippet). Purpose is to call on a page the EvoGal from another page or let the default beavior:
<div id="diapos" class="evog_[*EvoGallery_no*]">
[+phx:if=`[*EvoGallery_no*]`:is=``:or:is=` `:then=`{{idEvogal0}}`:else=`{{idEvogal1}}`+]
</div>