View Issue Details

IDProjectCategoryView StatusLast Update
0017970phpList 3 applicationTemplate Managementpublic21-06-18 13:01
Reporterrmvanarkel Assigned To 
Status newResolutionopen 
Product Version3.2.4 
Summary0017970: Add custom placeholder in template for things such as twitter feed
DescriptionIt would be awesome if you could add some custom placeholder in templates. It could be used for twitter feed or other custom things. Now we had the option or to change our template each time we send a campaign or have a static twitter feed. We decided to hava a static twitter feed, but if you could add next to [content], [subject], [footer], etc. also something like [custom=tweet] and [custom=advertisement] in templates which the mailing wizard would then ask if they are present after selecting the template, then that would be great.

We could for example then add the following in the template.
<a target="_blank" href="[custom=tweet]" style="border:none; text-decoration:none;"><img src="tweet.jpg" alt="Tweet" style="color: #777777; font-family: Sans-serif; font-size: 17px; font-weight:bold; border:none;"></a>

And after selecting the theme it would ask us to fill in the field tweet, where we could add somthing like:

Steps To ReproduceN/A



17-12-15 10:35

administrator   ~0057425

interesting idea, some kind of "social media" plugin might be useful for this.

Also, the contents area plugin may already do quite a bit of that?


20-12-15 15:35

updater   ~0057435

You should be able to achieve this using the Content Areas plugin.
Wrap your example link in a div element

<div data-edit="tweet" data-type="textarea">
<a target="_blank" href="" style="border:none; text-decoration:none;">
<img src="tweet.jpg" alt="Tweet" style="color: #777777; font-family: Sans-serif; font-size: 17px; font-weight:bold; border:none;">

Then when you compose the campaign you will be able to edit that chunk of html and set the correct tweet id. Alternatively use editor instead of textarea and it will be displayed in your default phplist editor.