Hi,
I have a ditto call:
[[GetURLvars? &varList=`subid`]]
[+subid:isnot=``:then=`[!Ditto? &id=`lista_proyectos` &parents=`5` &tpl=`dittoTpl_proyecto` &filter=`tvLista_categorias,[+subid+],7` &sortBy=`description` &sortDir=`DESC` &noResults=`{{noproyecto}}` !]`:else=`[!Ditto? &id=`lista_proyectos` &parents=`5` &tpl=`dittoTpl_proyecto` &where=`[!Cadena!]` &sortBy=`description` &sortDir=`DESC` &noResults=`{{noproyecto}}` !]`+]
in the chunk noproyecto:
<?php
echo "no proyecto";
?>
When I run the page, this code appears on the SCREEN:
[[Ditto? &id=`lista_proyectos` &parents=`5` &tpl=`dittoTpl_proyecto` &where=`longtitle like ’%asdfa%’` &sortBy=`description` &sortDir=`DESC` &noResults=`No proyecto ` ]]
It doesn’t execute the Ditto.
I will apreciate any help!
Thanks.
Chunks can’t contain PHP! Only HTML code or text is possible. If you need a script put a snippet into the chunk.