Jump to:

23478 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Custom actions dont use LinkingMode

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

Page: 1
Go to End
Author Topic: 791 Views
  • AdamJ
    Community Member
    145 Posts

    Custom actions dont use LinkingMode Link to this post

    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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.