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.

Customising the CMS /

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

URL and Site structure


Go to End


4 Posts   3331 Views

Avatar
HarryKC

Community Member, 8 Posts

17 December 2008 at 2:56am

Is it possible to set the URL display to follow the site structure?

The url shold be like this: http://SiteRoot/about/mission
not as this: http://SiteRoot/mission

The site structure:

SiteRoot
-->About
-->-->Mission
-->-->Vision
-->Contact
.
.
.

Avatar
SalvaStripe

Community Member, 89 Posts

17 December 2008 at 3:02am

maybe when you write is hardly...

In META Tab:

http://www.yoursite.com/myparent/mypage/

instead of

http://www.yoursite.com/mypage/

Attached Files
Avatar
HarryKC

Community Member, 8 Posts

17 December 2008 at 5:06am

Unfortunatley shlashes are not supported in the URL meta field. SS alerts with following message: "URLs can only be made up of letters, digits and hyphens."

Avatar
Hamish

Community Member, 712 Posts

17 December 2008 at 8:03am

Have a look at the 'nested URLs' sapphire branch:

http://open.silverstripe.com/browser/modules/sapphire/branches/nestedurls

This is a version of Sapphire specifically built to support nested friendly URLs. We should also see these made part of the core in version 2.4

Some more detail available in the development group:

http://groups.google.com/group/silverstripe-dev/browse_thread/thread/31e7c94977394df3