contao/import — Issue #2596: Allow newsletter data in another parseSimpleTokens() call
Author: importer
Created: 2011-11-29 19:50:14+00:00
State: open
Labels: Feature, newsletter

Hi leo

I've written a small piece of code that will allow you to add Newsletter object data into simple tokens. The most useful one I've found it to have a simpletoken in the mail_default.tpl, template:

http://www.thyon.com/newsletter-reader/##alias##.html

this will then allow you to embed the dynamic link to the current newsletter, without having to write it into the body... It belongs in the footer together with the unsubscribe link.

In this way, it would also be possible to add ANY field, because of the way you wrote parseSimpleTokens, so we just need another call to the function for newsletter object (not just recipients).

Then when someone extends the Newsletter with a new variable, that can also be used within the newsletter, in a similar way you can extend Memebership and add the ##firstname##.

--- _Originally created by thyon on October 3rd, 2010, at 02:18am (ID 2596)_