Problem with $node->parent in CMSMS 1.9.2

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
simon.romin
Forum Members
Forum Members
Posts: 65
Joined: Tue Jul 13, 2010 9:31 am

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

Post 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!!!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
simon.romin
Forum Members
Forum Members
Posts: 65
Joined: Tue Jul 13, 2010 9:31 am

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

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

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

Post 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
Tellurian7
New Member
New Member
Posts: 2
Joined: Mon May 30, 2011 8:13 am

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

Post 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}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post 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...
Tellurian7
New Member
New Member
Posts: 2
Joined: Mon May 30, 2011 8:13 am

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

Post 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.
Post Reply

Return to “CMSMS Core”