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.

Forum Module

Discuss the Forum Module.

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

Get link of forum thread


3 Posts   718 Views


17 February 2011 at 9:06am Community Member, 197 Posts

How can I get the link for this forum thread?

   $Thread = DataObject::get_one('Post', " `Title` LIKE '". $Title ."' ", '`Created` ASC');


17 February 2011 at 2:06pm Community Member, 197 Posts

Here is the answer:



18 February 2011 at 6:53pm Forum Moderator, 5511 Posts

Good work answering your own thread :) Most objects in SilverStripe should have a Link() function defined if they are designed to be viewable. It's kind of a convention so you should be able to call that on quite a few things.