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

Have all pages appear as top level


Go to End


4 Posts   1119 Views

Avatar
Phill

Community Member, 81 Posts

15 April 2015 at 5:44am

Hi

I have a requirement for a project to have all pages accessible by a URL as if they were top level, but we want to be able to keep the pages in a folder structure.

For example with a page structure like

home
features
--feature-one
--feature-two

we would like to be able to display the feature-two page via http://www.example.com/example-two

Any ideas on how i may be able to update the routing to work in a way like this?

Avatar
martbarr

Community Member, 59 Posts

15 April 2015 at 6:53pm

Mine does this out of the box...

Avatar
Phill

Community Member, 81 Posts

22 April 2015 at 12:51am

Hi martbarr

What sort of configuration do you have for the page to allow it to function like that as I believe if you have a page as a sub page you can only currently access it with a url like http://www.example.com/features/feature-one

when we would like to be able to access it via http://www.example.com/feature-one, but still have it as a sub page in the cms to help organise the site

Avatar
Devlin

Community Member, 344 Posts

22 April 2015 at 1:54am

This will disable nested URLs.

SiteTree:
  nested_urls: false