Jump to:

23374 Posts in 18175 Topics by 2866 members

General Questions

SilverStripe Forums » General Questions » URL Rewrites

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 1785 Views
  • zenmonkey
    Avatar
    Community Member
    527 Posts

    URL Rewrites Link to this post

    I'd like page URL to be structured hierarchally. That Page URL structure would build as: mysite.com/ParentPage/CurrentPage.

    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

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: URL Rewrites Link to this post

    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 http://svn.silverstripe.com/open/phpinstaller/branches/nestedurls/

  • MikeOne
    Avatar
    Community Member
    40 Posts

    Re: URL Rewrites Link to this post

    Hi,

    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,
    Mike.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: URL Rewrites Link to this post

    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 - http://open.silverstripe.com/query?status=replyneeded&status=new&status=inprogress&status=reviewed&group=status&milestone=2.4.0+alpha

  • MikeOne
    Avatar
    Community Member
    40 Posts

    Re: URL Rewrites Link to this post

    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!

    Thanks,
    Mike.

  • DasJacko
    Avatar
    Community Member
    4 Posts

    Re: URL Rewrites Link to this post

    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 fantastic...so 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.

    J

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: URL Rewrites Link to this post

    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:

    http://github.com/ajshort/sapphire
    http://github.com/ajshort/cms
    http://github.com/ajshort/jsparty

  • LesC
    Avatar
    Community Member
    70 Posts

    Re: URL Rewrites Link to this post

    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?

    1785 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.