As you all know 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,
'documents' => $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)
[[getResources? &documents=`1,2` &includeTVs=`1` &processTVs=`1` &tpl=`footer_nav_column_tpl`]]
--------------------------------------------------------------------------------
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.