Jump to:

3430 Posts in 1057 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » [SOLVED] URL slug instead of ID on DataObject?

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

Page: 1 2
Go to End
Author Topic: 4128 Views
  • LesC
    Avatar
    Community Member
    70 Posts

    Re: [SOLVED] URL slug instead of ID on DataObject? Link to this post

    Hi Potion Maker,

    I should have marked this one as resolved - Martijn's solution worked perfectly.

    I'm not sure how you would get it working with yours, but I'd try generating a string from the two components, then sticking them thru the generateURLSegment function.

    Les

  • Judge
    Avatar
    Community Member
    79 Posts

    Re: [SOLVED] URL slug instead of ID on DataObject? Link to this post

    Nice. So SiteTree::generateURLSegment() is SilverStripe's slug generation equivalent.

    -- Jason

    4128 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.