Hi Dave, If you want to access an element from the parent page in the project structure, you would use something like this:
<%!! Context:CurrentPage.MainLink.OwnerPage.Elements.GetElement (stf_ShortName).GetHtml() !!%> If however you are trying to pull content from the parent page in the Navigation Structure (could be different if this code is in a container, etc) then you would use something like this: <%!! Indexes.GetIndexByPageId (Context:CurrentMasterPage.Id).Parent.Page.Elements.GetElement (stf_ShortName).GetHtml() !!%> See the Navigation Manager manual for more information about the available Render Tag methods. You mentioned needing to pull this information from 8 other pages above you? If so then this is probably not the right way to go about solving your problem. Best, - Eric On Jul 21, 2:34 pm, Dave R <[email protected]> wrote: > Hey, > I'm trying to get the content of a standard field from a parent page > using the navigation manager. I know to grab the field for use in the > current page I would use: > > Context:CurrentPage.Elements.GetElement(stf_ShortName).GetHtml() > > So, for the parent page, would it be: > > Context:ParentPage.Elements.GetElement(stf_ShortName).GetHtml() > > And that might not even be exactly what I need. Let's say I needed to > get the stf_ShortName content from a page that was 3 levels from the > top of the nav structure. Let's say the page that I am getting the > information for is actually 8 levels from the top and that I needed it > on every level in between. How do I grab the element then? > > Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en -~----------~----~----~----~------~----~------~--~---
