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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Custom URL and sub-pages...


Go to End


5 Posts   3699 Views

Avatar
mobius

Community Member, 54 Posts

16 April 2007 at 9:24am

Hi there,

Just a quick question about the way SilverStripe handles custom URLs. They don't appear to allow any way of showing hierarchy. For example, the normal way to show page hierarchy on a site would be to have the URL:
http://example.co.nz/parent-page/sub-page/
Whereas SS uses:
http://example.co.nz/sub-page/

This raises two issues for me:

1)What happens if I have a multitude of parent-pages that have the same set of sub-pages? Would I have to manually enter in a URL such as http://example.co.nz/parent-page-sub-page/? Yuck!

2)If someone comes into the site by following a link, and it is a subpage, they may be interested in the general topic the sub-page is covering, and they may want to see what else the site offers in this area. Under a "normal" URL structure they could simply remove the sub-page from the URL and they'd find the parent-page. Now I know you can employ breadcrumbs to do this as well, but breadcrumbs take up site real-estate and aren't always appropriate.

Is anyone able to offer any reasons for this design choice?

Avatar
tito0224

Community Member, 8 Posts

16 April 2007 at 9:45am

I was wondering the same thing....

Avatar
dio5

Community Member, 501 Posts

14 September 2007 at 12:34pm

Having the same idea here...
Seems that if you make another page with the same, ss adds -2 to it..

Any ideas to have it the normal way?

http://www.something.com/page/subpage/

instead of

http://www.something.com/subpage/

?

Avatar
Double-A-Ron

Community Member, 607 Posts

11 September 2008 at 5:14pm

Subscribe - this is a pretty important feature IMO. All CMS's with a clean url feature have this functionality.

Avatar
Willr

Forum Moderator, 5523 Posts

11 September 2008 at 6:24pm

http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/526 has pretty much everyones views plus a patch for it which may or may not work. Work done in 2.3 will make this a bit easier so I read, but it won't provide it out of the box