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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Custom actions dont use LinkingMode


Go to End


1144 Views

Avatar
AdamJ

Community Member, 145 Posts

27 May 2010 at 7:00pm

Hey All,

I have setup something like the following: http://ssbits.com/display-dataobjects-in-an-seo-friendly-way/, and I'm using 2.4 with nested urls turned on.

If I go to a child page of a parent, like 'reviews/october-2009', then that parent's menu item, 'reviews' is marked as 'section' from $LinkingMode as you'd expect. Is there a way to make it do the same when I visit an action that I've setup with the following:

Director::addRules(50, array('reviews//book/$ID/$Name' => 'GuideHolder_Controller'));

It's still a subpage of 'reviews' but SS doesnt seem to recognise it as such.

Cheers in advance for any help