@KK, thank you. After your explanation I went straight to use <cms:dump />, and it made itself clear. Iterations have to stay on one element, till all the k_variables are checked and reviewed.
For example:
So, if we stay on level 3, and we want to go to the level 1, element 'C' will be displayed 5 times, while nested_pages tag goes 2 additional times through all parents of 'C' straight to the top..
Thank you!
Another 2 questions, please.
1st - what is the proper way to autogenerate menu with nested_pages in the following scenario:
I'd like to have in this autogenerated menu normal couch 'pages' and also some 'fake' pages, which are not used as pages, but only as fillers in menu for 'jump' links (like href="#contacts")? Advanced Menu, of course, only accepts proper http:// links, as it is intended to show a page, not "serve a jump".
2nd is more of a suggestion. Talking about Advanced Menu for a nested_page. When a mark 'points to another page' is checked, the editables of the page are hid. So, to edit some values in this page first is needed to uncheck this mark.
It is basically a non-issue, coz why would someone need editables on a page that redirects|points to another page? But I found a use case: with multilanguage setup I also want to autogenerate menus in desired language. So I implemented editable which would serve me as my own page_title_{lang} to be used in manually crafted menu (as you kindly showed in tutorials). So, just for you to know that such an editable might be needed, even when hid (of course all variables are available in runtime. It's only that they are hidden in admin panel, with mark checked.)
For example:
- Code: Select all
First iteration gets info on the element 'A' and realizes, that this element is level-0, element-0.
-element 'A' is displayed first time.
Second iteration has to check if element 'A' can have children. So it has a variable folder='1'.
-element 'A' is displayed again, because we had to get info again.
Third iteration has to check if element 'A' has no children and we are ready to move to next one.
-element 'A' is displayed for the third time, this time is final.
So, if we stay on level 3, and we want to go to the level 1, element 'C' will be displayed 5 times, while nested_pages tag goes 2 additional times through all parents of 'C' straight to the top..
- Code: Select all
<cms:nested_pages masterpage='nested.php' extended_info='1' >
<a href="<cms:show k_nestedpage_link />"><cms:show k_nestedpage_title /></a><br />
</cms:nested_pages>
Thank you!
Another 2 questions, please.
1st - what is the proper way to autogenerate menu with nested_pages in the following scenario:
I'd like to have in this autogenerated menu normal couch 'pages' and also some 'fake' pages, which are not used as pages, but only as fillers in menu for 'jump' links (like href="#contacts")? Advanced Menu, of course, only accepts proper http:// links, as it is intended to show a page, not "serve a jump".
2nd is more of a suggestion. Talking about Advanced Menu for a nested_page. When a mark 'points to another page' is checked, the editables of the page are hid. So, to edit some values in this page first is needed to uncheck this mark.
It is basically a non-issue, coz why would someone need editables on a page that redirects|points to another page? But I found a use case: with multilanguage setup I also want to autogenerate menus in desired language. So I implemented editable which would serve me as my own page_title_{lang} to be used in manually crafted menu (as you kindly showed in tutorials). So, just for you to know that such an editable might be needed, even when hid (of course all variables are available in runtime. It's only that they are hidden in admin panel, with mark checked.)