Hello,
I’m using the MODx API library and something seems not working. Here is the problem :
Rub 1
- Doc 1 id=1, alias-1.html
- Doc 2 (link) id=2 => forward to id=4
Rub 2
- Doc 3 id=3, alias-3.html
- Doc 4 id=4, alias-4.html
"Doc 2" is a link type document, which points to Doc 4. Thus, in the "link" field of Doc 2, I put [~4~].
Wayfinder works fine with that : all aliases are well generated.
But if I call Wayfinder using the MODx API library from a page external to the MODx site, like that :
$modxmenu = $modx->runSnippet('Wayfinder', array('startId' => '0', 'outerTpl' => 'mh.OuterTpl', 'innerTpl' => 'mh.InnerTpl', 'rowTpl' => 'mh.RowTpl', 'innerRowTpl' => 'mh.InnerRowTpl', 'firstClass' => 'first', 'hereClass' => ''));
the alias of Doc 2 (which must be those of Doc 4, alias-4.html) is not generated in the displayed menu ; the mouse over the Doc 2 item in the menu shows : "[~4~]"
So it seems that with the MODx API library, the final alias of a link type document is not generated. Is this a bug ?