Oopps, use GetElementByName instead of Elements.GetElement for performance reasons
On Thursday, March 14, 2013 12:49:46 PM UTC-4, Jian Huang wrote: > > Sure > > <ul> > <!IoRangeList> > <li> > <!-- Display Link --> > <%list_pages%> > <!-- Display Nested Standard Field --> > <%!! > Context:Pages.GetPage(Guid:<%info_pageGUID%>).Elements.GetElement(con_content).Value[Int32: > 0].Elements.GetElement(stf_date).Value !!%> > </li> > <!/IoRangeList> > </ul> > > just make sure you have <%info_pageGUID%> on both pages, and the list > option has pull through content enabled. > > -Jian > > > On Thursday, March 14, 2013 12:25:33 PM UTC-4, Carlos Martínez wrote: >> >> Thanks for your answer, Jian. >> I will give it a try. >> >> And I am using Render Tags to loop through the list because I need to >> access a field that is on a page 2 levels down. >> In other words, in the list I have connected several pages, each one of >> those have a container (con_Body) that holds the actual page where I need >> to get the info from. >> >> This is the code I am using inside the foreach loop: >> >> <%!! >> Store:item[Int32:counter].Elements.GetElement(con_Body).Value[Int32:0].Elements.GetElement(stf_productTitle).GetHtml() >> >> !!%> >> >> Is there any other way to do this? >> >> Regards >> CM >> >> On Thursday, March 14, 2013 8:13:38 AM UTC-5, Jian Huang wrote: >>> >>> Hi, >>> >>> Good question. It follows the navigation order instead of the SmartTree >>> order. >>> >>> You can select lst_Products, action menu, edit navigation order. >>> >>> You don't see that option? Well, the content class that holds >>> lst_Products is not a master page, and lst_Product is not a designated list >>> for navigation. That's why you don't see it. Also, if you are using >>> version 10+. >>> >>> By the way, why are you using rendertag to loop through pages? You can >>> use the list blockmark to achieve the same results with greater system >>> performance. >>> >>> Best, >>> >>> -Jian >>> >>> >>> On Wednesday, March 13, 2013 4:03:46 PM UTC-4, Carlos Martínez wrote: >>>> >>>> Does anybody know which order are the pages of a list processed when >>>> looping thru it using the foreach Render tag? >>>> >>>> This is the code I'm using: >>>> >>>> <reddot:cms> >>>> <foreach itemname="item" >>>> object="Context:CurrentPage.Elements.GetElement(lst_Products).Value" >>>> countername="counter"> >>>> <htmltext> >>>> ... >>>> Name: <%!! Store:item[Int32:counter].Headline !!%> >>>> ... >>>> </htmltext> >>>> </foreach> >>>> </reddot:cms> >>>> >>>> >>>> Keep in mind that any changes made in the Page Order of the list is not >>>> reflected on the rendered result. >>>> >>>> Thanks >>>> Carlos Martinez >>>> >>>> -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/reddot-cms-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
