Page 2 of 2

Re: Problem with $node->parent in CMSMS 1.9.2

Posted: Fri Jan 21, 2011 11:15 pm
by simon.romin
Please can you tell me when 1.9.3 is coming out so I can fix this problem? It's making my site look weird...

Thanks for your help and keep up the good work with CMSMS - it is much appreciated!!!

Re: Problem with $node->parent in CMSMS 1.9.2

Posted: Fri Jan 21, 2011 11:19 pm
by calguy1000
1.9.3 is Scheduled for the end of this month, and since we try to do releases on Saturdays (that's when we have the most spare time), it'll prolly either be the 29th of January or on the latest February 5th.

Re: Problem with $node->parent in CMSMS 1.9.2

Posted: Sun Jan 23, 2011 8:00 pm
by simon.romin
Oh great, thanks. I think I'll wait until 1.9.3.

Will I be able to upgrade from a buggy menu manager in 1.9.2 to a working menu manager in 1.9.3?

Nice work on the refreshed admin interface too.

Romano

Re: Problem with $node->parent in CMSMS 1.9.2

Posted: Sun Jan 23, 2011 8:04 pm
by RonnyK
ONce you upgrade from 1.9.2 -> 1.9.3, which is just uploading the diff-files package, you will get all fixes in place. So yes, the MenuManager files and more, are part of the 1.9.3-package.

Ronny

Re: Problem with $node->parent in CMSMS 1.9.2

Posted: Mon May 30, 2011 8:17 am
by Tellurian7
Hi,

I'm using CMSMS 1.9.4.2 "Faanui" and this bug still present.

My menu template (Display current page sub-menu) :

Code: Select all

{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->current && $node->haschildren}
<div class="page_menu">
	<strong><a href="{$node->url}">{$node->menutext}</a></strong>
	<ul>
	{foreach from=$nodelist item=node2}
	<!--
	{$node2|print_r}
	-->
	{if $node2->parent}
		<li><a href="{$node2->url}">{$node2->menutext}</a></li>
	{/if}
	{/foreach}
	</ul>
</div>
{/if}
{/foreach}
{/if}

Re: Problem with $node->parent in CMSMS 1.9.2

Posted: Mon May 30, 2011 7:37 pm
by Dr.CSS
@Tellurian7

Would help if you specified what it is you are trying to do, there is no $node2-> call in menu manager...

Re: Problem with $node->parent in CMSMS 1.9.2

Posted: Tue May 31, 2011 7:36 am
by Tellurian7
Hi Dr CSS,

$node2 iterate through all nodes like $node.

Code: Select all

{foreach from=$nodelist item=node2}
When i output the values of $node2 (or $node in a simple loop) with print_r like this :

Code: Select all

{$node|print_r}
$node->parent always return false/nothing

What i'm trying to do is displaying only the sub-pages of the current page.