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

Routing Question


Go to End


686 Views

Avatar
mi32dogs

Community Member, 75 Posts

22 July 2016 at 6:08am

For one section of the site I would like to get rid of the action and only have the ID’s

I have a RSVP dataObject that I use as pages, I can set it up as a holder/details page, what would make the url www.mysite/rsvp/details/1234
but because I do not need a holder’s page with all available rsvp so I would like to get rid of the action in the url so the url would be www.mysite/rsvp/1234.

I know I could move all the rsvp control functions into the general Page_Controller and make a rsvp action there, but I would like to keep it into a separate class if possible.

Anybody knows how to go about that?