Hello,
I have a Ditto call that shows on every page, but has to check in a specific document ID is 28 if a TV in that document is "no" or "yes". I can only get it to work in the document (ID 28) itself. The TPL (chunk) i use in the Ditto call looks like this:
<div class="features">
<div class="title clearfix">
<h4>Daghap</h4>
</div>
<p>[+daghapbeschrijving+]
<strong>Prijs : € [+daghapprijs+]</strong></p>
</div>
(Document ID 28 is a child of document ID 1)
Ditto call:
[!Ditto? &parents=`1` &display=`1` &paginate=`0` &paginateAlwaysShowLinks=`0` &tpl=`dag_hap`!]
Can somebody help me to let the Ditto call check if its "no" or "yes"
I am from the Netherlands, so pardon my english
Appeltje
maybe you can do something in your ditto tpl with PHx.
[+yes-no-chunk:is=`yes`:then=`chunk-inhoud-hier`:else=``+]
Evolution user, I like the back-end speed and simplicity

Hallo,
Thanks for your reply, but i have already tried to do that.
It only works in the document ID 28 where the TV is called.
In any other document its not responding.
Appeltje
Hmm I think I need an example to see what you want to do.
You want id 28 to deside if the ditto call on all pages are visible or not?
Evolution user, I like the back-end speed and simplicity

Hello,
Exactly, that's what i want the program to do.
I have a Ditto call that check's in ID 28 if its "yes" or "no", then he has to show the Ditto TPL and otherwise he has to show nothing.
Appeltje
[ed. note: appeltje last edited this post 13 years, 8 months ago.]
Hello,
This id the Ditto TPL that i call (where "dagblok" is yes or no, in document ID 28) :
[+dagblok:is=`yes`:then=`
<div class="features">
<div class="title clearfix">
<h4>Daghap</h4>
</div>
<p>[+daghapbeschrijving+]
<strong>Prijs : € [+daghapprijs+]</strong></p>
</div>`:else=``+]
This only works in the document ID 28 itself
Appeltje
hmm, i can't make snippets myself, i can't come up with any solutions atm.
this can't be too hard thow.
must be someone else who can help you.
Evolution user, I like the back-end speed and simplicity

Hoi fourroses66,
I solved it this evening, instead of just TV, i used MultiTV. If there is nothing filled in, the multiTV doesn't show. That's the solutions. And it works.
Thanks for your support.
Appeltje
Evolution user, I like the back-end speed and simplicity
