View Single Post
  #9  
Old 02-16-2016, 12:33 PM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default Re: Add Field to Contact Us form

Thank you Alex, the dependency is what I was missing. Looks like it's all wrapped into my module perfectly now.

The body.tpl file that I'm modifying looks like this. (it's in the mail templates)

/skins/mail/en/modules/CDev/ContactUs/message/body.tpl
PHP Code:
<p>
  {
getNotificationText():h}
</
p>
<
p>
  <
b>{t(#Name#)}:</b> {data.name}<br />
  
<b>{t(#E-mail#)}:</b> {data.email}<br />
  
<b>{t(#Subject#)}:</b> {data.subject}<br />
</p>
<
p>
  {
data.message:nl2br}
</
p

I don't think I can just inject the new field that I added. Correct? This is why I created a new body.tpl to over-ride the one in the ContactUs module.

Thanks again.
__________________
Ant

XC v5.3.1.8
Horizontal Flyout Categories Menu Module
CloudSearch / CloudFilters

XC v4.7.6
CloudSearch
Reply With Quote