I reccomend that you set all of the documents relating to Ditto to published while you are setting up the script. Once you have done that, you can start to use options to control whether unpublished items are shown or not.
The documents inside the folder are children of the folder. Their parent should be the folder.
Would a screencast help?
If you are saying that you wish to remove the documents with the value of Filter being MPC then your filter parameter is correct.
How can I write a tv to select a filter which has the output of a certain word (e.g. MPC)?
$resource = array_values($resource);
if (count($resource) < 1) { return $emptyText."\n"; }$resource = $modx->getDocuments($kids, $showPublishedOnly, 0, "*", $where, $sortby, $sortdir); // get actual documents // --------------------------------------------------- // Append tv's to array // --------------------------------------------------- $this->appendTVs($resource, $tvnames); return $resource; <------!!!!
return $resource ? $resource : array();
This discussion is closed to further replies. Keep calm and carry on.