We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42503
    • 120 Posts
    I have migrate a site from modx evo to revo. The below code is not working, as per the

    requirement it need to populated a footer menu. But it is populating a banch of menu which are not desired.

    Please look into code and guide me where the wrong in the code. I have only replaced the ditto with getResources

    in this code.The development url is http://precisionairtz.com/devrev/


    I have a snippet like this, (snippet name: FooterNavColumn).

    <?php
    $tpl = 'footer_nav_column_tpl';
    $tplLast = 'footer_nav_column_last_tpl';
    $params = array(
    'tpl' => $tpl,
    'resources' => $documents,
    'sortDir' => 'ASC',
    'tplLast' => $tplLast,
    'level' => 1,
    );
    return $modx->runSnippet('getResources', $params);

    ------------------------------------------------------------------------------

    Chunk -- (Chunk Name:footer_nav) which I am calling in main template.


    <div class="nav-column">[[FooterNavColumn? &documents=`1,2`]]</div>
    <div class="nav-column">[[FooterNavColumn? &documents=`3`]]</div>
    <div class="nav-column">[[FooterNavColumn? &documents=`4,41,42`]]</div>
    <div class="nav-column">[[FooterNavColumn? &documents=`5,6`]]</div>
    <div class="nav-column">[[FooterNavColumn? &documents=`31,43,67`]]</div>



    --------------------------------------------------------------------------------

    Chunk -- (Chunk Name:footer_nav_column_tpl)


    <span class="nav-group underlined">
    <ul>
    <li><a href="[[~[[+id]]]]">[[+pagetitle]]</a>
    [[Wayfinder? &startId=`[[+id]]` &level=`1`]]
    </li>

    </ul>
    </span>

    --------------------------------------------------------------------------------

    Chunk -- (Chunk Name:footer_nav_column_last_tpl)


    <span class="nav-group">
    <ul>
    <li><a href="[[~[[+id]]]]">[[+pagetitle]]</a>
    [[Wayfinder? &startId=`[[+id]]` &level=`1`]]
    </li>

    </ul>
    </span>

    -------------------------------------------------------------------------------


    Need some help urgently.

    Thanks.


    Please help got stuck badly [ed. note: pronab.saha last edited this post 11 years, 3 months ago.]
      • 35781
      • 25 Posts
      There is no parameter document for getResources snippet. You should use 'resources' instead.
      http://rtfm.modx.com/display/ADDON/getResources#getResources-Usage