Jahia Dev Forum > Override Form Builder...

0 (0 Good)
0 (0 Bad)

Override Form Builder mails templates

by  fabu »  2014/02/10 13:43

Hi,
 
How can I properly override Form Builder mails templates?
 
Mails are always sent with formbuilder/mails templates. 
 
I'm looking for the right way!
 
Thanks in advance,
 
Best regards

  (fabu)

Number of messages  28
Registration date
0 (0 Good)
0 (0 Bad)

Re: Override Form Builder mails templates

by  shyrkov »  2014/02/21 09:07

Hello Fabien,

 

unfortunately there is no easy way to override that mail template.

The mail template is configured in the Spring bean definition file (formbuilder\META-INF\spring\mod-formbuilder.xml) of the formbuidler module as follows:

    <bean class="org.jahia.modules.formbuilder.actions.MailAction">
        <property name="name" value="mail"/>
        <property name="mailService" ref="MailService"/>
        <property name="userManagerService" ref="JahiaUserManagerService"/>
        <property name="mailTemplatePath" value="/mails/templates/action/body.vm"/>
    </bean>
 

So it takes the file <jahia-web-app-dir>/modules/formbuilder/mails/templates/action/body.vm as a template.

I would say you have to modify the formbuilder module directly.

 

Kind regards

Sergiy

  • Re: Override Form Builder mails templates
    2014/02/21 09:07

    shyrkov <p> Hello Fabien,</p> <p> &nbsp;</p> <p> unfortunately there is no easy way to override that mail template.</p> <p> The mail template is configured in the Spring bean definition file (formbuilder\META-INF\spring\mod-formbuilder.xml) of the formbuidler module as follows:</p> <p> &nbsp;&nbsp;&nbsp; &lt;bean class=&quot;org.jahia.modules.formbuilder.actions.MailAction&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;name&quot; value=&quot;mail&quot;/&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;mailService&quot; ref=&quot;MailService&quot;/&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;userManagerService&quot; ref=&quot;JahiaUserManagerService&quot;/&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;mailTemplatePath&quot; value=&quot;/mails/templates/action/body.vm&quot;/&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/bean&gt;<br /> &nbsp;</p> <p> So it takes the file &lt;jahia-web-app-dir&gt;/modules/formbuilder/mails/templates/action/body.vm as a template.</p> <p> I would say you have to modify the formbuilder module directly.</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Feb 21, 2014
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page