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.

General Questions

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

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

Custom actions dont use LinkingMode




27 May 2010 at 7:00pm Community Member, 145 Posts

Hey All,

I have setup something like the following:, 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