We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
General
General Support
Search
UltimateParent retun id of current resurce
328 Posts
cristianb88
Reply #1,
14 years, 1 month ago
I have this tree:
web
-> Prod (14)
-> Prod1 (15)
-> Prod2 (16)
en
-> test (17)
->test1 (18)
if i do [[UltimateParent? &topLevel=`2`]] in resurce 16 (Prod2) UltimateParent return 16 not 14 !!!!
Help me
☆ A M B ☆
24,524 Posts
sottwell
Reply #2,
14 years, 1 month ago
Prod2 is not a child of Prod, it is a sibling. The parent of Prod2 is 0, the web context.
Studying MODX in the desert -
http://sottwell.com
Tips and Tricks from the MODX Forums and Slack Channels -
http://modxcookbook.com
Join the Slack Community -
http://modx.org
328 Posts
cristianb88
Reply #3,
14 years, 1 month ago
The editor trim the space but I assure you that prod2 is the son of Prod
web
-> Prod (14)
[list]
[li] Prod1 (15)
Prod2 (16)
[/li]
[/list]
[ed. note: cristianb88 last edited this post 14 years, 1 month ago.]