17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1129 Views |
-
Create URI for sent Newsletters, rendering trough custom template

8 October 2008 at 1:49am Last edited: 8 October 2008 1:52am
Hi,
I'm having trouble extending the Newsletter class and rendering the data with the custom template used to send the emails.
Here is what I try to do:class MyNewsletter extends Newsletter {
}class MyNewsletter_Controller extends ContentController {
function index(){
return $this->renderWith('VernissageEmail');
}
}I also modified the file _config.php as advised on the post Custom data fields in newsletters
Object::useCustomClass('Newsletter', 'MyNewsletter')
The idea would be to put a link in the email to go to a webpage if there is trouble viewing the mail.Hope someone can help me on this.
Thx,
ALex -
Re: Create URI for sent Newsletters, rendering trough custom template

8 October 2008 at 5:53am
If all you want is a custom template, just create one in your mysite/templates/email folder. Then you can pick which template to use in the admin section from a drop down.
-
Re: Create URI for sent Newsletters, rendering trough custom template

8 October 2008 at 7:54am Last edited: 8 October 2008 7:55am
Nope, I already have the template, and the newsletter is sent.
The idea is to have a webpage that shows the newsletter in the website.
Like a category "Sent Newsletter" in the public website, where you can find all newsletters
| 1129 Views | ||
|
Page:
1
|
Go to Top |


