Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

LinkOrSection failing for one page

Go to End

3 Posts   1001 Views


Community Member, 72 Posts

10 February 2012 at 12:10pm

Hi all,

I have a site built with six top level pages. Each page uses a different controller to facilitate different functionality (one page is a Blog module). In the navigation for this page, I'm using LinkOrSection to detect if the page is current so that I can highlight a nav item for that page. The problem I'm getting, however, is that it isn't working for one of these pages. The page is nothing special, but when directed to the page, the LinkOrSection results as link. Is there something I should be checking or looking for in order to figure out why this isn't working?



Community Member, 344 Posts

10 February 2012 at 10:50pm

Edited: 10/02/2012 11:56pm

The css class 'section' will be parsed only if the current page is a child of the your page.
Edit: This is wrong. Section should be parsed no matter if or not the actual page is a current one. Sorry.

You might wanna use $LinkingMode instead. It will return link, current or section.


Community Member, 72 Posts

10 February 2012 at 11:24pm

The page in question is a top level page, which is why it's so odd.