I am trying to get the guid of a page's(A) parent page(B) guid. I need
to use this guid in a page (C) to which A is connected through a
anchor tag.
I am able to get a parent page's id in by :
"Context:CurrentIndex.Parent.Page.Id"
and the connected page's id by :
"Context:CurrentPage.Elements.GetElement(anc_enews_article).Value[Int:
0].Id"
But I am unable to combine both render tags and get the guid in Page
C.
Please suggest a way to get a connected page's parent page guid.
Thanks,
Chandrakanth
maybe this one is helpful:
CurrentPage.MainLink.OwnerPage.Id
Or Simply: CurrentIndex.Id if (B) is a Masterpage
Greetings,
Ingo
Thanks it worked with the below render tag :
Context:CurrentPage.Elements.GetElement(anc_linkToArticle).Value[Int:
0].MainLink.OwnerPage.Id
Thanks,
Chandrakanth Ramireddy