How can I get the link for this forum thread?
$Thread = DataObject::get_one('Post', " `Title` LIKE '". $Title ."' ", '`Created` ASC');
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
How can I get the link for this forum thread?
$Thread = DataObject::get_one('Post', " `Title` LIKE '". $Title ."' ", '`Created` ASC');
Here is the answer:
$Thread->Link()
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.