Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » urls showing page hierarchy?

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

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

Page: 1 2 3
Go to End
Author Topic: 6450 Views
  • elijahlofgren
    Avatar
    Google Summer of Code Hacker
    222 Posts

    Re: urls showing page hierarchy? Link to this post

    > SilverStripe doesn't actually do that...I've managed to write a hack for it, but you'd have to be fairly keen - it's ugly and not tested in production yet.

    Nathan, would you mind sharing your url hierarchy code? I'd be interested with playing with it as I would find url hierarchy very useful on my website.

    Thanks,

    Elijah

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: urls showing page hierarchy? Link to this post

    It's pretty ugly - as I say, I'd rather give it a good hard refactoring before I go out in public with on, but I'll try free up some time to send you all the bits it needs. Hopefully it helps you, and if you can improve on it everybody wins

  • elijahlofgren
    Avatar
    Google Summer of Code Hacker
    222 Posts

    Re: urls showing page hierarchy? Link to this post

    > It's pretty ugly - as I say, I'd rather give it a good hard refactoring before I go out in public with on, but I'll try free up some time to send you all the bits it needs. Hopefully it helps you, and if you can improve on it everybody wins

    Thanks, I'd enjoy taking a stab at making it better because I have a rather large site that I'd like to move over to SilverStripe.

  • Nathan Cox
    Avatar
    Community Member
    99 Posts

    Re: urls showing page hierarchy? Link to this post

    Do you have an email address I can send the files to?

  • elijahlofgren
    Avatar
    Google Summer of Code Hacker
    222 Posts

    Re: urls showing page hierarchy? Link to this post

    > Do you have an email address I can send the files to?

    Yes: elijah (at) silverstripe.com

    Thanks!

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: urls showing page hierarchy? Link to this post

    I'd also like to "cast a vote" in favor of this feature. ;-)

    We've been getting some heat on Silverstripe from a SEO company over here which absolutely wants the page hierarchy in the URL's. According to them it's very important for the Google crawler to work well.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: urls showing page hierarchy? Link to this post

    Another thing that will complicate this is the URL Rewriting: when you move or rename a page, all of the URLs get rewritten. Currently, that code is hardcoded to look to compare URLSegment to the first part of the URL before the /.

    This is implemented in HTMLEditorField.

  • DesignCity
    Avatar
    38 Posts

    Re: urls showing page hierarchy? Link to this post

    Hate to be a pain since it seems like this is a difficult feature to impliment, but I think it's a really important feature.

    Apart from any SEO that you may (or may not, depending on who you ask...) get by doing this, I like to show visitors where they are simply by looking at the address bar. Great for usability. It works like a set of breadcrumbs that are hardcoded into the website. If the address says www.mysite.com/corporate/announcements/important-announcement, then you can expect that going to www.mysite.com/corporate/announcements will take you back to the announcements page, and www.mysite.com/corporate will take you back to the corporate page. Something like www.mysite.com/important-announcement isn't as usable IMO.

    6450 Views
Page: 1 2 3
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.