E-Card sample code

Options

Here are examples of the three required E-Card templates described in the Convio Online Help topic

<t:list>

  <div>

    <input id="radio-$" onclick="ecardSetItemID($);this.checked=true;" type="radio" value="$" name="tempItemID">

    &lt;t:list id=&quot;ecard_thumbnail&quot;&gt;&lt;img src=&quot;$&quot;&gt;&lt;/t:list&gt;   &lt;/div&gt; &lt;/t:list&gt; Please note the t:list with id=&quot;ecard_thumbnail&quot; refers to the thumbnail field you added when you set up your E-Card Image content type. If you named the field something other than &quot;ecard_thumbnail&quot;, you'll need to change the ID. <strong>Single Display Template</strong> &lt;div&gt;   &lt;h1&gt;&lt;t:value id=&quot;ecard_subject&quot; &gt;Subject&lt;/t:value&gt;&lt;/h1&gt;   &lt;img src=&quot;$&quot;&gt;

  &lt;p&gt;Hi &lt;t:value id=&quot;ecard_name&quot;&gt;Recipient Name&lt;/t:value&gt;,

  &lt;t:value id=&quot;ecard_from&quot;&gt;Sender Name&lt;/t:value&gt; has sent you this message:&lt;/p&gt;

  &lt;p&gt;&lt;t:value id=&quot;ecard_note&quot;&gt;Have a nice day!&lt;/t:value&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;Hi &lt;t:value id=&quot;ecard_name&quot;&gt;Recipient Name&lt;/t:value&gt;,&lt;/p&gt;

&lt;p&gt;&lt;t:value id=&quot;ecard_from&quot;&gt;Sender Name&lt;/t:value&gt; sent you an e-card. You can see it &lt;a href=&quot;http://www.example.org/customcard/ecard/display.jsp?cardID=$&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

The URL assumes your site is www.example.org and you have set up a folder with the URL Name "customcard" for your E-Card content. You should replace these with appropriate values for your site.

Message was edited by: Ben Breakstone, 2008-11-03

Modified email notification template to use wrapper in "customcard" folder

Tagged:

Comments

  • When setting up a folder to hold your E-Card content, you must give it a URL name other than "ecard". CMS reserves "ecard" for system-generated E-Card content. You can use the URL name "customcard" or "myecard" or even "ecards" (plural). Use your imagination to come up with other URL names that aren't "ecard".

Categories