Hi Albert, Is this code used within navigation template or a regular page template?
If this is used within a navigation template, then it seems you are using the search navigation implementation (for all levels, use this template) rather than the stateful navigation template method (there is a template for each navigation level and state). Since Context:CurrentIndex.GetRootIndex().Page.Elements.GetElement(String:std_xy).Value returns the content within std_xy stored in the navigation root page, presumably the Home page. Assuming that std_xy is set to 2, then would it be easier to assign a navigation template to level 2 and avoid running the entire navigation level check? -Jian On Oct 4, 1:40 pm, Albert Wognar <awog...@googlemail.com> wrote: > I would like to define the level at which a certain navigation > template starts redering in a config file and not in the navigation > template properties. The value should be stored in a standard field. > > My problem: > -I can't use a numeric-type standard field, as only text-type standard > fields may be queried (known rendertag bug, afaik). > Consequently, Elements.GetElement(String:std_xy).Value is returned as > a string. > > Therefore, I'm not able to use this string in a if-query with a 'eqgt' > operator as in the following example. > > <if> > <query valuea="Context:CurrentDepth" operator="eqgt" > valueb="Context:CurrentIndex.GetRootIndex().Page.Elements.GetElement(String:std_xy).Value"> > > Is there any way i can use the stored value -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to reddot-cms-users@googlegroups.com. To unsubscribe from this group, send email to reddot-cms-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.