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.

Customising the CMS /

Custom URLs


Reply


5 Posts   2179 Views

Avatar
DanStephenson

Community Member, 115 Posts

17 February 2009 at 12:45pm

Edited: 17/02/2009 12:46pm

I am setting up quite a deep site using SilverStripe right now. It has several sub-pages, about 4 levels deep. I am also trying to customize the URL for each page so that it makes sense based on its position inside the site structure.

Right now, I have a "products" section, organized like this

Products
--Blue Widget
--Red Widget
--Black Widget

And the URLs for each page are /products/, /blue-widget/, etc. What I'd love to be able to do, is to set "sub URLs", so that each widget that is a subpage of product has a URL like /products/blue-widget/

Is that possible with the current version of the CMS?

Avatar
Willr

Forum Moderator, 5513 Posts

17 February 2009 at 5:15pm

Edited: 18/02/2009 9:32am

This is one of the oldest discussions - have a read of http://www.silverstripe.org/archive/show/526?showPost=174774&start=48 for just 1 of the many discussions :)

Good news is yes it is coming. You can download a unstable version of the code currently. This feature will be in the 2.4 stable release when that is launched later this year. But if you can't wait that long then you can try and run the development code available at

http://open.silverstripe.com/changeset/latest/phpinstaller/branches/nestedurls?old_path=/&filename=/phpinstaller/branches/nestedurls&format=zip

Avatar
DanStephenson

Community Member, 115 Posts

17 February 2009 at 5:36pm

Edited: 17/02/2009 5:37pm

Will, the link you provided is to this thread!

I am glad to know this is coming in 2.4. Can't wait.

Avatar
Carbon Crayon

Community Member, 598 Posts

18 February 2009 at 3:37am

I think he meant this thread: http://www.silverstripe.org/archive/show/526?showPost=174774&start=48

Avatar
Willr

Forum Moderator, 5513 Posts

18 February 2009 at 9:31am

Woops my bad :) yes that is the correct link, updated my post