CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Navigator childrenof : no output
https://forum.cmsmadesimple.org/viewtopic.php?f=89&t=76600
Page 1 of 1

Author:  Tomek [ Tue May 16, 2017 9:33 pm ]
Post subject:  Navigator childrenof : no output

Just tried to have a subnav with the help of {Navigator childrenof=$page_alias} in a page, then in a template: nothing is visible, in the code either.

Author:  calguy1000 [ Wed May 17, 2017 7:22 pm ]
Post subject:  Re: Navigator childrenof : no output

Just tested this exact code in a content page that had children.

Worked as expected.

Author:  Tomek [ Wed May 17, 2017 7:25 pm ]
Post subject:  Re: Navigator childrenof : no output

OK, will test further then.

Author:  velden [ Wed May 17, 2017 8:33 pm ]
Post subject:  Re: Navigator childrenof : no output

/modules/Navigator/action.default.php

line 233 has a typo in the variable name:

Code:
00000230     else if( $childrenof ) {
00000231         $tmp = $hm->sureGetNodeByAlias(trim($childrenof));
00000232         if( is_object($tmp) ) {
00000233             if( $tmp->has_children() ) $rootnodesn = $tmp->get_children();
00000234         }
00000235     }

Author:  Tomek [ Wed May 17, 2017 8:38 pm ]
Post subject:  Re: Navigator childrenof : no output

Right. It works now. Thanks.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/