Would you mind going into more detail about the custom ObjectLoader? Is that an RQL thing?
On Mar 22, 4:23 pm, "Richard Hauer (5 Limes)" <[email protected]> wrote: > You can't do maths in NavMgr parameters because the parser is not > sophisticated enough to handle it. Remember this is not a C# > execution environment, but a parsed XML language designed for a > specific purpose. > > You basically have 2 choices (AFAIK): Create a custom ObjectLoader > that can navigate the Pages collection in the context (probably your > best bet) or you can use some pre-execute code. > > Note that your pre-ex code will need to track its own position in the > list with a counter using separate templates tied to the various > levels of your nav, since pre-ex code will fire before nav mgr code is > processed. Note also that "loops" in nav mgr are not "expanded" so > you can't do pre-ex counting inside a <foreach>. > > HTH. > > Regards, > Richard Hauer > ==================== > 5 Limes Pty Limitedwww.5Limes.com.au > > On Mar 21, 10:16 am, Chris Peoples <[email protected]> wrote: > > > > > Unfortunately, trying to do a GetElement(myBrowseElement) in Nav > > Manager yields nothing. It seems like GetElement doesn't work on some > > structural elements. > > > On Mar 20, 2:21 pm, sb <[email protected]> wrote: > > > > Chris, have you tried using the "browse" element? This lets you step > > > 'up' and 'down' a list. Not sure how it interacts with Nav Mgr, > > > though. Will try it out. > > > > On Mar 20, 12:48 pm, Chris Peoples <[email protected]> wrote: > > > > > For example, check out this drupal > > > > page:http://drupal.org/getting-started/before. > > > > At the bottom of the page, they have links that will take you to the > > > > previous page, up one level, and to the next page. How would you > > > > achieve this in RedDot? > > > > > My first thought was to use Navigation Manager. The "up" link is easy > > > > (CurrentIndex.Parent). Next and previous are not as easy. I was hoping > > > > something like this would work: > > > > > CurrentIndex.Parent.SubIndexes[Int:{current position +1 or -1} > > > > > But that didn't yield any results. Anyone have any ideas? > > > > > Thanks, > > > > Chris- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
