Jump to:

1016 Posts in 567 Topics by 309 members

Forum Module

SilverStripe Forums » Forum Module » Get link of forum thread

Discuss the Forum Module.

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

Page: 1
Go to End
Author Topic: 643 Views
  • DeklinKelly
    Avatar
    Community Member
    196 Posts

    Get link of forum thread Link to this post

    How can I get the link for this forum thread?

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

  • DeklinKelly
    Avatar
    Community Member
    196 Posts

    Re: Get link of forum thread Link to this post

    Here is the answer:

    $Thread->Link()

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Get link of forum thread Link to this post

    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.

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