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.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

InSection


Reply

3 Posts   1400 Views

Avatar
gakenny

4 December 2007 at 11:27pm (Last edited: 4 December 2007 11:27pm), Community Member, 153 Posts

Hello,

Can someone shed a little bit of light on this function:
<% if InSection(page-url) %>

Most importantly, what format does page-url take and does it need to be contained in quotes? I am struggling to get this to work but what I am trying to achieve is to identify whether the current page is under the hierarchy of the specified page-url.

Cheers,

Gary

Avatar
gakenny

7 December 2007 at 11:53pm Community Member, 153 Posts

Hello,

Is there any documentation for this function?

Cheers,

Gary

Avatar
dio5

8 December 2007 at 1:22pm Community Member, 501 Posts

I think it expects the urlsegment without quotes.

So like:

InSection(about)

InSection(this-is-the-page-url)

Correct me if I'm wrong.