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, Ed, biapar, Willr, Ingo, swaiba

Custom actions dont use LinkingMode

Go to End



Community Member, 145 Posts

27 May 2010 at 7:00pm

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