Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » setTemplateFileButtons usage

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

Page: 1
Go to End
Author Topic: 320 Views
  • Werner
    Avatar
    Community Member
    2 Posts

    setTemplateFileButtons usage Link to this post

    Hi there,

    What would be the correct location of $PdfField->setTemplateFileButtons('MyUploadField_FileButtons');
    The only way i can make this work is save my file to this path /framework/templates/includes/
    When i try mysite or themes i get an error with no mention of the failed search path(s).

    Regards Werner

  • fabrizioT
    Avatar
    Community Member
    2 Posts

    Re: setTemplateFileButtons usage Link to this post

    It's a bit of a hack, but this worked for me:

    $field->setTemplateFileButtons(__DIR__.'/../templates/Includes/UploadField_FileButtons.ss');

    Regards.

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