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.

Archive /

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

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

Custom Template for TableField


Reply


722 Views

Avatar
UncleCheese

Forum Moderator, 4092 Posts

10 September 2008 at 9:31am

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.