RQL for getting a parent page's guid

102 views
Skip to first unread message

Chandrakanth Ramireddy

unread,
Mar 5, 2010, 5:36:33 AM3/5/10
to RedDot CMS Users
Hi,


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

Ingo Hillebrand

unread,
Mar 5, 2010, 8:23:27 AM3/5/10
to reddot-c...@googlegroups.com
Hi Chandrakanth,

maybe this one is helpful:
CurrentPage.MainLink.OwnerPage.Id

Or Simply: CurrentIndex.Id if (B) is a Masterpage

Greetings,
Ingo

Chandrakanth Ramireddy

unread,
Mar 8, 2010, 3:51:44 AM3/8/10
to RedDot CMS Users
Hi Ingo,

Thanks it worked with the below render tag :

Context:CurrentPage.Elements.GetElement(anc_linkToArticle).Value[Int:
0].MainLink.OwnerPage.Id

Thanks,
Chandrakanth Ramireddy

Reply all
Reply to author
Forward
0 new messages