Public Newsletterarchive

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

dreamy
Posts: 19
Joined: Sat Aug 18, 2012 8:18 pm

Public Newsletterarchive

Post by dreamy »

Hi,

is there a way to publish sended newsletter on a homepage? I looking for a solution to make a public newsletter archive.

Thanks!
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Public Newsletterarchive

Post by maschoff »

Trigger action "mailing archive list" on your website with a link like this:

Code: Select all

http://your.domain.com/form.do?agnCI=1&agnFN=archive_form&agnUID=41.1ban.4lg.4j0ox.3ulwv1g1cw
The latter is the encrypted UID of the user whose archive you want to show.
archive_form is the EMM form triggering action "mailing archive list" and should contain Action Script code like this:

Code: Select all

#foreach( $mailing in $archiveListMailingIDs )
<tr>
   <td><a href="your.domain.com/form.do?agnCI=1&agnFN=fullview&agnUID=$archiveListUids.get($mailing)">$archiveListNames.get($mailing):</a>
  <br>
  $archiveListSubjects.get($mailing)
</td>
#end
EMM form fullview has to trigger an action "show archived mailing" first and its content has to be

Code: Select all

$archiveHtml
While I admit the whole process is not that simple, it is quite powerful, nevertheless!
OpenEMM Maintainer
dreamy
Posts: 19
Joined: Sat Aug 18, 2012 8:18 pm

Re: Public Newsletterarchive

Post by dreamy »

Code: Select all

It works!
:mrgreen:

Thanks for this great How-To!
maschoff
Site Admin
Posts: 2597
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Public Newsletterarchive

Post by maschoff »

Thanks for your confirmation of the described solution!
OpenEMM Maintainer
dreamy
Posts: 19
Joined: Sat Aug 18, 2012 8:18 pm

Re: Public Newsletterarchive

Post by dreamy »

I like to improve this a little bit and need help.

The script will display all newsletters, those who are sent and even those who wasn't sent until now. Is theres a IF clause to evaluate if the newsletter was sent?

I put the date of publishing with the DYN-Tag [agnDATE] to each newsletter. For sent newsletter it went ok, but if a newsletter of the past was shown up from the archive the Date will set to the actual date. Is theres a way to prevent or some kind of a replace function to replace the [agnDATE] with the day of sending the newsletter?

Thanks!
Post Reply