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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

URL Rewrites

Go to End

10 Posts   2445 Views


Community Member, 545 Posts

2 September 2009 at 4:32am

I'd like page URL to be structured hierarchally. That Page URL structure would build as:

I know I could build this manually in each page Page in the CMS Page MetaData but it would be easier if this was a page function


Forum Moderator, 5523 Posts

2 September 2009 at 7:18pm

Built in support for hierarchy urls is coming in silverstripe 2.4. For now if you want to have them (and you are fairly good with SVN) you might want to try the nested urls branch of silverstripe . It it available by going checking out


Community Member, 40 Posts

6 September 2009 at 1:19am


Considering SilverStripe on a somewhat larger project and hierarchy urls are an absolute hard requirement (I was suprised to find it is currently not supported).

Is there an educated guess to be made on when version 2.4 will be a stable release and available for download?

Many thanks,


Forum Moderator, 5523 Posts

6 September 2009 at 5:19pm

hierarchy urls are an absolute hard requirement

You could try using the development branch which has this functionality. 2.4 has some major refactoring and new features (eg hierarchy urls) so I am expecting it to been a while till we see it released as a stable release.

According to the roadmap - 2.4 alpha is 78% complete but the nested urls feature and some other refactoring still needs to be brought into the trunk code base which takes time. Currently 12 open tickets for 2.4 -


Community Member, 40 Posts

6 September 2009 at 11:40pm

Thanks for your reply - I'm reading between the lines that it could take weeks or months rather than days to have a stable 2.4 release. I can't really get away with using development branches for the site I'm looking at (I can't risk having to refactor the thing in a few weeks time) so I'm going to have to skip SS for this project and make another choice.
It's no big deal - but considering I really like the looks of SS - I'm sure it will be in the running again for a next project!

Keep up the good work!



Community Member, 4 Posts

7 September 2009 at 5:00pm

Will, is there a place you can point at in the code that handles the hierarchical URL structure (category/subcat) that we can use to hack around with until the final release is ready? For me, as well, that's the only thing standing in my way of using SS -v- something else. The robustness you've built in from a developer perspective is just I hate the idea of not being able to use SS...even if I had to just upgrade and refactor a part of my code...but I don't feel comfortable using the non-release candidate right now.



Community Member, 244 Posts

7 September 2009 at 6:21pm

I've moved nested URLs from subverison to git - however you'll need to manually checkout the externals such as tiny mce to use this. I would reccomend just waiting for the merge back, which hopefully will be relatively soon.

You can check out the code at the nestedurls branch of each of the following:


Community Member, 70 Posts

7 September 2009 at 10:58pm

Thanks for all your work on this AJShort - you're going to make life a lot easier for a lot of us soon!

I've grabbed the code from Git, sorted the externals, and everything is kind of working, but I can't see where I enable the nested URLS.

I tried SiteTree::enable_nested_urls(); in my config file, but I get a white screen, and the error log shows:

PHP Fatal error:  Call to undefined method SiteTree::enable_nested_urls() in /Users/me/Sites/site/public_html/sitefiles/_config.php on line 27

Am I putting it in the right place, or does it need to be done differently now?

Go to Top