We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46396
    • 14 Posts
    I using the getResources snippet to display child pages in parent page
    $page = $modx->runSnippet('getResources', array(
    'parents' => $parent,
    'limit' => $limit,
    'offset' => $offset,
    'includeTVs' => '1',
    'tvPrefix' => '',
    'tpl' => $tpl,
    'processTVs' =>'1',
    'where' =>'{"published":"1"}',
    'tvFilters' =>'tags==%'.$selector.'%||geographie==%'.$selector.'%'
    ));

    now I want to store the IDs child pages returnd in the first time in a temporary variable
    in the second stage, this varaible will be used to retrieve other child pages with another keyword but they are not returned in the first stage

    in fact, the child pages can have a common keywords.
    how I can do ?
    thank you for your help
      • 3749
      • 24,544 Posts
      Please don't double post.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting