Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Custom Template for TableField

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 703 Views
  • UncleCheese
    4085 Posts

    Custom Template for TableField Link to this post

    When I run $table->setTemplate("MyTableField") I always get an SSViewer error saying "none of these templates could be found..."

    When I pass it in as clearly as possible, however,

    $table->setTemplate($_SERVER['DOCUMENT_ROOT'] . "/my_module/templates/MyTableField.ss");

    It works..

    I shouldn't have to do that, should I? Seems ugly.

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.