Choosing a Theme AND Template when sending Newsletter

29 views
Skip to first unread message

Richmond Greendrinks

unread,
Nov 8, 2010, 11:13:48 AM11/8/10
to MailPress
I would like to be able to choose two different Templates when sending
newsletters out depending on the two types of Newsletters that we send
each month. These templates have different headers and Post Categories
but that is the only difference.

How do you choose the Template (along with the theme) like in the Test
email form on the Admin side of Mailpress?

andré renaut

unread,
Nov 8, 2010, 11:56:52 AM11/8/10
to mail...@googlegroups.com
If you have two different themes in following folders : theme1 (current theme) and theme2
and in theme2 a specific template called mytemplate.php with header :

<?php
/*
Template Name: mytemplate
*/

you can change for a specific newsletter the theme and template
editing the xml files in mailpress\mp-content\advanced\newsletters

    <mail>
        ....
        <Theme>theme2</Theme>
        <Template>mytemplate</Template>
        ...
    </mail>

when <Theme>...</Theme> is ignored, current theme applies.


make sure these files are saved in UTF-8
Reply all
Reply to author
Forward
0 new messages