hey there,
new day, new question.
I need the menuindex of the current site.
for example:
web
+ page 1
+ + page 4
+ + page 5
+ + page 6
+ page 2
+ + page 7
+ + page 8
+ page 3
so. when i'm on page 8 the menuindex will be 2, 'cause that is the second element from his parent.
how can i get the menuindex?
thanks for your help
-
☆ A M B ☆
- 24,524 Posts
sorry my mistake. this example:
web
+ page 1
+ + page 4
+ + page 5
+ + page 6
+ page 2
+ + page 7
+ + + page 9
+ + + page 10
+ + page 8
so when i'm on page 10, i need two values.
for first the menuindex of his parent (page 7): so the value is 2.
and then i need that menuindex-value from the parent…
+ page 3
This is possible but first I'm curious what you intend to achieve with this? Depending on that we can suggest a suitable solution for you
On page2 I used getRessource to became a horizontal slider of page 7, and page 8 and the slider page 8 has a vertical slider of his child elements.
And I need to calculate the correct x- and y-coordinate for the non-javascript-version.
and this is why i need these two values. (:
No, that doesn't work correctly.
page 9 and page 10 became the same values. and that makes no sense.
If you need the menuindex of the current page just use [[*menuindex]] without any Snippet.
Quote from: zapzarap at Feb 07, 2012, 04:25 AMNo, that doesn't work correctly.
page 9 and page 10 became the same values. and that makes no sense.
Try calling the snippets uncached:
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/modx.html