View Issue Details

IDProjectCategoryView StatusLast Update
0017970phpList 3 applicationTemplate Managementpublic21-06-18 13:01
Reporterrmvanarkel 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Product Version3.2.4 
Target VersionFixed in Version 
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="http://twitter.com/home?status=[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:
My%20twitter%20message%20here%20encoded%20using%20http%3A%2F%2Fmeyerweb.com%2Feric%2Ftools%2Fdencoder%2F



Steps To ReproduceN/A
Tagsplugin-development

Activities

michiel

17-12-15 10:35

manager   ~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?

https://resources.phplist.com/plugin/contentareas

duncanc

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="http://twitter.com/home?status=xxxxx" 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>
</div>

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.