i had created this tv
@EVAL
if($modx->documentIdentifier==’1’ || $modx->documentObject[’parent’]==’1’) $url=’
http://site.com’;
elseif($modx->documentIdentifier==’11’ || $modx->documentObject[’parent’]==’11’) $url=’
http://sub.site.com’;
return $url;
I would like that if a document has id 1 or it is a child of the doc with id 1 the url is
http://site.com
although if the id is 11 or the doc’s parent is id 11 the url is
http://sub.site.com
I had tested this TV and it doesnt work always well
I don’t know if it is a cache problem or what but sometimes it return
http://sub.site.com when id/parent is 1 and viceversa.
Where can be the problem?
ps. Sorry for my poor english
Thanks in advance!