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.

Data Model Questions /

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

[SOLVED] URL slug instead of ID on DataObject?

Go to End

10 Posts   6997 Views


Community Member, 70 Posts

10 December 2009 at 9:49pm

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.



Community Member, 79 Posts

6 March 2010 at 3:09am

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

-- Jason

Go to Top