Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » A couple of things that I would like to request.

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

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

Page: 1
Go to End
Author Topic: 1625 Views
  • Daisuke
    Avatar
    Community Member
    8 Posts

    A couple of things that I would like to request. Link to this post

    Hello. I'm back to use SS

    A few things I have noticed..
    - a gif image turned to a still image after posting it in a page
    - a global configuration page where I can change the site's name and input meta information.

    and this is what i defintiely would like.
    - a new url for pages in sub categories
    eg) mysite.com/category1/sub-cat1/
    At the moment i think ss allows only 1 category in depth?

    thanks to the ss(super saiyan!) team!

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: A couple of things that I would like to request. Link to this post

    >> a new url for pages in sub categories
    >> eg) mysite.com/category1/sub-cat1/

    IMHO it would be enough to have some prepositions, e.g. when creating a new Article 'XXX', then the URL would be like mysite.com/article-XXX

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: A couple of things that I would like to request. Link to this post

    xmedeko - good suggestion!

    We could probably do this by moving the link generation to a separate function, eg generateLink(), that could then be overloaded on a class by class basis.

    We could provide a function, unqiueSafeLink, that did all the requisite processing - so you didn't need to implement this yourself.

    function generateLink() {
    return $this->uniqueSafeLink('article-' . $this->Title);
    }

    xmedeko - does this sound like a suitably straightforward approach to you?

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: A couple of things that I would like to request. Link to this post

    I think, that the Javascript has to be changed as well. If someone changes the title of the page, to change the URL like 'article-new-title' as well. Or do you think, is is better to show in the CMS just the 'new-title' part, but store URLSegment in the DB like 'article-new-title' ?

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: A couple of things that I would like to request. Link to this post

    Potentially, we could do the link generation via ajax - this would let us check the URL for uniqueness as well, which it currently doesn't do until you save the page.

    1625 Views
Page: 1
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.