CMS MADE SIMPLE FORGE

Menu Manager

 

[#7977] v1.7.7 - Wrong depth data with childrenof

avatar
Created By: Antoine Bajard (Gast00n)
Date Submitted: Mon May 21 10:05:50 -0400 2012

Assigned To: Robert Campbell (calguy1000)
Version: None
CMSMS Version: 1.10.3
Severity: Major
Resolution: None
State: Open
Summary:
v1.7.7 - Wrong depth data with childrenof
Detailed Description:
In some case, the depth given to the templates are wrong using 'childrenof'.
Walkaround using combination of start_page & page_level.

These are first pages of my site :

		Page (Menu Text)	Page Alias 	Type 		  	  	  	  	
1 		Français			fr 	  	  	Internal Page Link
1.1 		- Home 			home-fr 	  	Content
1.2 		- Club 	  	  				Section Header
1.2.1	- - Historique 		historique-fr 	Content 
1.2.2 	- - Stade 			stade 	  	Content
1.2.3 	- - Organigramme 	organigramme Content
1.2.4 	- - ASBL 			asbl 	  	Content
1.2.5 	- - Contact 		contact 	  	Content
1.3 		- Saison 	  	  	  			Section Header
1.3.1 	- - Equipe A 	  				Section Header
1.3.1.1 	- - - Calendrier		calendrier 	Content

This is the menu I get with childrenof='fr' :

Title : Home - Depth : 1 : Prevdepth : 1
Title : Club - Depth : 1 : Prevdepth : 1
Title : Historique - Depth : 2 : Prevdepth : 1
Title : Stade - Depth : 2 : Prevdepth : 2
Title : Organigramme - Depth : 2 : Prevdepth : 2
Title : ASBL - Depth : 2 : Prevdepth : 2
Title : Contact - Depth : 2 : Prevdepth : 2
Title : Saison - Depth : 0 : Prevdepth : 1  <---
Title : Equipe A - Depth : 2 : Prevdepth : 1 <---
Title : Calendrier - Depth : 3 : Prevdepth : 2
Title : Résultats - Depth : 3 : Prevdepth : 3

I noticed bad depth info for 'Saison' & 'EquipeA' (wich are section headers,
perhaps a clue?)

start_page='fr' page_level=2 gives the right info


History

Comments
avatar
Date: 2012-05-21 10:28
Posted By: Antoine Bajard (Gast00n)

Addendum :

start_page='fr' gives the right info, but from 1st level
(I mean start_level doesn't work with start_page)

Title : Français - Depth : 1 : Prevdepth : 1
Title : Home - Depth : 2 : Prevdepth : 1
Title : Club - Depth : 2 : Prevdepth : 2
Title : Historique - Depth : 3 : Prevdepth : 2
Title : Stade - Depth : 3 : Prevdepth : 3
Title : Organigramme - Depth : 3 : Prevdepth : 3
Title : ASBL - Depth : 3 : Prevdepth : 3
Title : Contact - Depth : 3 : Prevdepth : 3
Title : Saison - Depth : 2 : Prevdepth : 3
Title : Equipe A - Depth : 3 : Prevdepth : 2
Title : Calendrier - Depth : 3 : Prevdepth : 2
Title : Résultats - Depth : 3 : Prevdepth : 3
      
Updates

Updated: 2012-05-21 10:28
resolution_id: => 5