CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • System Workflow Templates
Pages: [1]

Author Topic: System Workflow Templates  (Read 1324 times)

rsettlemire

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Wordpress
  • MySQL version: Latest
  • PHP version: Latest
System Workflow Templates
June 20, 2013, 10:01:12 pm
Hello,

I wanted to create a custom system workflow receipt. When I add the elements I require it breaks. There is no documentation editing those message nor on what breaks it. I have no clue what tags are required.

I get
Quote
User error: Smarty error: [in string: .style1 { width: 50px; height: 31px; } .style2 { width: 100%; } .style3 { width: 178px; text-align: right; } .style4 { width: 178px; text-align: right; height: 29px; } .style5 { height: 29px; } .style6 { color: rgb(0, 0, 0); } .auto-style1 { text-align: left; } .auto-style2 { height: 29px; text-align: left; } .auto-style5 { font-size: large; } .auto-style6 { width: 220px; text-align: right; height: 29px; } .auto-style7 { width: 220px; text-align: right; }

The below code is what I want my receipt to look like. Is there any detailed documentation on customizing these templates?

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title></title>
</head>
<body>
&nbsp;<table bgcolor="#333333" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" width="100%">
<tbody>
<tr>
<td align="center" valign="top"><!--WRAPPER-->
<table border="0" cellpadding="0" cellspacing="0" width="610">
<tbody>
<tr>
<td align="center"><!--CONTAINER-->
<table bgcolor="#ebebeb" border="0" cellpadding="0" cellspacing="0" width="600"><!-- HEADER IMAGE-->
<tbody>
<tr>
<td><img src="http://www.cenetworks.net/images/header_toptexture.jpg" style="border-width: 0px; border-style: solid; width: 600px; height: 55px; display: block;" /></td>
</tr>
<!--END --><!-- LOGO AND HEADER -->
<tr>
<td align="center" valign="top">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="center" valign="top" width="600"><img src="http://www.cenetworks.net/images/header_curve.jpg" style="border-width: 0px; border-style: solid; width: 600px; height: 20px; display: block;" /></td>
</tr>
<tr>
<td align="center" bgcolor="#99938c" valign="top" width="600">
<table border="0" cellpadding="0" cellspacing="0" height="80" width="530">
<tbody>
<tr>
<td align="left">
<p style="margin: 0px; padding: 0px; color: rgb(255, 255, 255); line-height: 30px; font-family: Arial, Helvetica, sans-serif; font-size: 35px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;"><img alt="" longdesc="http://cenetworks.net" src="http://www.cenetworks.net/images/ce_logo.jpg" style="width: 270px; height: 80px;" /></span></font></p>
</td>
<td align="right" height="80" valign="top">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="center" valign="top" width="600"><img src="http://www.cenetworks.net/images/header_Texture.jpg" style="border-width: 0px; border-style: solid; width: 600px; height: 27px; display: block;" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
<!-- MAIN CONTENT ADD AND DELETE MODULES TO SUITE YOUR LAYOUT -->
<tr><!--INVOICE DETAILS -->
<td align="center" bgcolor="#d2d0cd" style="padding: 10px 0px;" valign="top">
<h1 class="auto-style1"><span style="line-height: 20.796875px;"><font size="2">&nbsp; </font><span class="auto-style5">Online Invoice</span></span></h1>

<table border="0" cellpadding="0" cellspacing="0" style="line-height: 1.6em;" width="530">
<tbody>
<tr>
<td align="left" valign="top" width="265">
<p style="margin: 7px 0px; color: rgb(0, 0, 0); line-height: 18px; font-family: &quot;Trebuchet MS&quot;, Verdana, sans-serif; font-size: 12px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;">Customer:</span></font></p>

<p style="margin: 7px 0px; color: rgb(0, 0, 0); line-height: 18px; font-family: &quot;Trebuchet MS&quot;, Verdana, sans-serif; font-size: 12px;">{$billingName}<br />
         {$address}<br />
         {$email}
        </p>

<p style="margin: 2px 0px; color: rgb(102, 102, 102); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 12px;">&nbsp;</p>
</td>
<td width="1">&nbsp;</td>
<td align="left" valign="top" width="265">
<p style="margin: 4px 0px; color: rgb(102, 102, 102); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;"><strong>Date:
        {$receive_date|crmDate}
       </strong>
                                                    <br />
                                                    Please donate, help us by donating to:<br />
A Miracle for Megan Fund</span></font></p>

<p style="margin: 4px 0px; color: rgb(102, 102, 102); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;">Donate here: <a href="http://miracleformegan.com">http://miracleformegan.com</a></span></font></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!--END -->
<tr><!--DIVIDER-->
<td>
<table border="0" cellpadding="0" cellspacing="0" width="600">
                                        <tbody>
<tr>
<td height="1"><img height="1" src="http://www.cenetworks.net/images/divider.jpg" style="display: block;" width="600" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
                               
<tr>
                                   
                                    <!--INVOICE FIGURES -->
<td align="center"  valign="top">
<table cellpadding="4" class="auto-style8">
<tbody>
<tr>
<td colspan="2" class="auto-style9">
<h2><span style="text-align: left;">&nbsp;&nbsp;&nbsp;&nbsp;<strong>INVOICE DETAILS</strong></span></h2>
                                                </td>
</tr>
                                            <tr>
<td colspan="2" height="1"><img height="1" src="http://www.cenetworks.net/images/divider.jpg" style="display: block;" width="580" /></td>
</tr>
<tr>
<td class="auto-style2">Invoice ID #</td>
<td width="400px" class="auto-style1">{$trxn_id}
       </td>
</tr>
<tr>
<td class="auto-style2">Products/Service:</td>
<td width="400px" class="auto-style1">{$line.description|truncate:30:&quot;...&quot;}</td>
</tr>
<tr>
<td class="auto-style2">Amount Paid:</td>
<td width="400px" class="auto-style1">{$amount|crmMoney:$currency}
        </td>
</tr>
                                           
<tr>
<td colspan="2" height="1" class="auto-style10"><img height="1" src="http://www.cenetworks.net/images/divider.jpg" style="display: block;" width="580" /></td>
</tr>
</tbody>
</table>

<table border="0" cellpadding="0" cellspacing="0" width="530">
<tbody>

<tr>
<td style="text-align: left;">
<p><br />
Hello {$billingName},</p>

<p>We would like to thank you for your business. If you need any further help from us, please feel free to let us know.</p>

<p>Sincerely,</p>

<p>Customer Service |<a href="mailto:sales@cenetworks.net">sales@cenetworks.net</a><a><br />
Cenetworks.ne</a>t | Business &amp; Residential IT Solutions<br />
813-731-2828 or 866-727-5233, ext 700 | Fax 866-727-5233<br />
<a href="http://www.cenetworks.net/">http://www.cenetworks.net</a></p>

<p>Create a Connection: Follow us on <a href="http://www.facebook.com/pages/Cenetworksnet/396407287061095" target="_blank" title="http://www.facebook.com/pages/Tampa-FL/BICSI/98427899782">Facebook</a>;</p>
                                                    <p><br />
                                                    </p>

</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!--END -->
<tr><!--DIVIDER + HIGHLIGHT-->
<td>
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tbody>
<tr>
<td height="1"><img height="1" src="http://www.cenetworks.net/images/divider.jpg" style="display: block;" width="600" /></td>
</tr>
<tr>
<td bgcolor="#ffffff" colspan="2" height="1">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr><!--MODULE TWO COL-->
<td>
<table border="0" cellpadding="0" cellspacing="0" style="padding: 10px 0px;" width="600">
<tbody>
<tr>
<td width="35">&nbsp;</td>
<td align="left" valign="top" width="245">
<p style="margin: 4px 0px; color: rgb(102, 102, 102); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;"><strong>Please donate, help us by donating to:</strong><br />
A Miracle for Megan Fund</span></font></p>

<p style="margin: 4px 0px; color: rgb(102, 102, 102); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;">Donate here: <a href="http://miracleformegan.com">http://miracleformegan.com</a><br />
<br />
<br />
Please print this confirmation for your records. We would like to personally thank you for doing business with us</span></font></p>
</td>
<td width="20">&nbsp;</td>
<td align="left" valign="top" class="auto-style3">
<p style="margin: 4px 0px; color: rgb(102, 102, 102); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;"><strong>Payment options.</strong></span></font></p>

<p style="margin: 4px 0px; text-align: center; color: rgb(153, 153, 153); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;"><img alt="" class="style1" src="http://www.cenetworks.net/images/icon/Small/PayPal.png" /><img alt="" class="style1" src="http://www.cenetworks.net/images/icon/Small/Visa.png" /><img alt="" class="style1" src="http://www.cenetworks.net/images/icon/Small/Mastercard.png" /><img alt="" class="style1" src="http://www.cenetworks.net/images/icon/Small/American-Express.png" /><img alt="" class="style1" src="http://www.cenetworks.net/images/icon/Small/Discover.png" /><br />
                                                    </span></font></p>

<p style="margin: 4px 0px; color: rgb(153, 153, 153); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;"><strong>Make checks payable to:</strong>Cenetworksnet<br />
Mail to:</span></font></p>

<p style="margin: 4px 0px; color: rgb(153, 153, 153); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px;">CeNetworks<br />
1309 Vinetree Dr<br />
Brandon, Florida 33510</span></font></p>
<!--PAYPAL --></td>
<td width="35">&nbsp;</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!--END --><!-- DO NOT REMOVE BELOW THIS LINE--><!-- FOOTER CURVE AND CONTENTS-->
<tr>
<td align="center"><img height="10" src="http://www.cenetworks.net/images/footer.jpg" style="display: block;" width="600" /></td>
</tr>
<!--END -->
</tbody>
</table>
<!--CONTAINER END--></td>
</tr>
<!--UNSUBSCRIBE-->
<tr>
<td align="center">
<table cellpadding="0" cellspacing="0" width="560">
<tbody>
<tr>
<td align="left" valign="top" width="530">
<p style="margin: 10px; color: rgb(153, 153, 153); line-height: 16px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;"><font color="#333333" face="sans-serif, Arial, Verdana, Trebuchet MS" size="2"><span style="line-height: 20.796875px; color: #FFFFFF; text-align: center;">Copyright &copy; 2013 Cenetworks | 866.727.5233 | sales@cenetworks.net</span></font></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<!--END -->
</tbody>
</table>
<!--WRAPPER END--></td>
</tr>
</tbody>
</table>
</body>
</html>

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: System Workflow Templates
June 20, 2013, 10:04:16 pm
This isn't really specific to workflow templates, it's just a smarty thing. In smarty, curly braces have a special meaning and if you want to use them you need to escape them. The most common way to do this would be using {literal} tags around your code block that uses curly braces.
Try asking your question on the new CiviCRM help site.

rsettlemire

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Wordpress
  • MySQL version: Latest
  • PHP version: Latest
Re: System Workflow Templates
June 20, 2013, 11:10:11 pm
I figured it out and it works.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • System Workflow Templates

This forum was archived on 2017-11-26.