render tag question

118 views
Skip to first unread message

Dmitry Terner

unread,
Sep 7, 2012, 12:35:24 PM9/7/12
to reddot-c...@googlegroups.com
In one of my projects I am using:

<%!! Context:CurrentPage.MainLink.OwnerPage.MainLink.OwnerPage.Elements.GetElement(hdl_Headline).GetHtml() !!%>

to get the headline of a page two levels up, but if I go one more level up..

<%!! Context:CurrentPage.MainLink.OwnerPage.MainLink.OwnerPage.Elements.OwnerPage.Elements.GetElement(hdl_Headline).GetHtml() !!%>

It returns nothing. Is that a limitation or am I doing something wrong?

Thanks,

- Dmitry


Jian Huang

unread,
Sep 7, 2012, 1:33:19 PM9/7/12
to reddot-c...@googlegroups.com
Hi,

You can just do

<%!! Context:CurrentPage.MainLink.OwnerPage.MainLink.OwnerPage.Headline !!%>

<%!! Context:CurrentPage.MainLink.OwnerPage.MainLink.OwnerPage.MainLink.OwnerPage.Headline !!%>

By the way, it wasn't working before because you have

OwnerPage.Elements.OwnerPage


instead of

OwnerPage.MainLink.OwnerPage

Dmitry Terner

unread,
Sep 10, 2012, 2:48:19 PM9/10/12
to reddot-c...@googlegroups.com
Thanks Jian! I should have caught that.
Reply all
Reply to author
Forward
0 new messages