Hi,
I am trying to use ditto extenders but I might be doing something wrong.
Here is my extender:
<?php
$filters["custom"]["qry"] = array("pagetitle","qry");
if (!function_exists("qry")) {
function qry($resource) {
if ($resource['pagetitle'] == "Viviendas") {
return 1;
} else {
return 0;
}
}
}
?>
Here my snippet call:
[[Ditto? &id=`query` &parents=`8` &extenders=`qryfilter`]]
I don’t know why it shows all the documents under the folder 8. It should only show the want with pagetitle = Viviendas.
I am very stuck and It will be great if somebody could help.
Thanks,
Uri
Admin Edit: Added code tags