Skip to content

&parents not restricting to that container. #81

@trentnixon

Description

@trentnixon

Im pulling results from modx via the api as such
$output = $modx->runSnippet('AdvSearch',array(
'parents'=> $id,
'withTVs'=>'withthistv',
'withFields'=>'',
'containerTpl'=>'containertpl',
'tpl'=>'tpl',
'includeTVs'=>'thistv'
));
The results are coming through fine, however search results for every container in the tree structure are included. i would like to dynamically restrict the container based on the search parameters ..
i have tried hard coding a int for testing purposes ( i.e. 'parents'=> '3',) with the same results.
it appears the parent parameter is not being included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions