Editable Table

Hi, I have to build a template for a client that will have a table in it. Not a layout table, but you know, a table for tabular data. The client will need to edit the content of the table. Can I set this up some way? Would the client be able to paste a table in from another program (Excel, Word, etc)?

Any ideas would be great. Thanks.

davidaf davidaf, 6 years ago

The only way you could accomplish it in our editor is to create a fixed table with a predefined number of columns and rows; each cell would have your <$title$> and/or <$description$> tags, accordingly. Other than that, your client would have to create the table in the HTML tab.


The Campaign Monitor Blog – HTML email smarts to go with your good looks
BThies BThies, 6 years ago

Actually a table can be easily accomplished.  The following code provides a table format with the initial row in place.  In order to add additional rows you'll need to "Add New Item" in each column for however many rows the table will have. (The columns are the flexible points)  It's a bit more work on the customer end, but it meets the needs of most requiring a table.

<table width="600" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td width="100" valign="top"><table width="100" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;"><repeater><tr><td width="98" style="border:1px solid #000000;">&nbsp;<$title default=''$></td></tr></repeater></table></td>
        <td width="100" valign="top"><table width="100" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;"><repeater><tr><td width="98" style="border:1px solid #000000;">&nbsp;<$title default=''$></td></tr></repeater></table></td>
        <td width="100" valign="top"><table width="100" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;"><repeater><tr><td width="98" style="border:1px solid #000000;">&nbsp;<$title default=''$></td></tr></repeater></table></td>
        <td width="100" valign="top"><table width="100" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;"><repeater><tr><td width="98" style="border:1px solid #000000;">&nbsp;<$title default=''$></td></tr></repeater></table></td>
        <td width="100" valign="top"><table width="100" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;"><repeater><tr><td width="98" style="border:1px solid #000000;">&nbsp;<$title default=''$></td></tr></repeater></table></td>
        <td width="100" valign="top"><table width="100" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;"><repeater><tr><td width="98" style="border:1px solid #000000;">&nbsp;<$title default=''$></td></tr></repeater></table></td>
    </tr>
</table>

Brian Thies
Professional Email Developer
Thies Publishing
davidaf davidaf, 6 years ago

Good point, Brian. There'd be limitations as you can only have one title/description per repeater, but you could set it up this way.


The Campaign Monitor Blog – HTML email smarts to go with your good looks
izycrzy, 6 years ago

Thanks Brian and Davidaf!!!

suziam, 6 years ago

Oh Brian, I could hug you right now! Thanks for posting this solution, it's saved me an immense amount of time nutting a similar request out.

Mathew Mathew, 6 years ago

One thing to keep in mind with this solution is that it does break the ability to drag and drop content items in that repeater.

Most of the time you won't want to do that anyway, so it will work really well.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098