Hi all,
I think these days I’m diving much in MODx, and so I’ve posted many questions here. I hope that I’ll learn some from you all awesome members here.
I’m using getResources and @EVAL binding to return the related posts TV.
@EVAL return $modx->runSnippet('getResources', array('parents' => '1,2,3,4,5', 'depth' => 3, 'limit' => 0, 'outputSeparator' => '||','includeContent' => 1, 'showHidden' => '1', 'context' => 'web', 'tpl' => 'taf.relatePostTV' ,'includeTVs'=> 0,'hideContainers' => 1));
My problem is that I want to show all posts which arent containers. I leave the
parents to 0 and it doesnt show up anything in my TV. If I change the
hideContainers to 0, it does show my first level on resources list.
Can anyone help me with this, with simple lines of code or just using the getResources way?
Thanks in advanced.