Newsletter template options

Topics: Themes
Nov 24, 2011 at 10:27 PM
Edited Nov 24, 2011 at 10:27 PM

I'm trying to customise the newsletter.html template in my themes folder. I can see that certain variables have keywords, e.g. [TITLE], [httpBase] and [LINK_DESCRIPTION]. Is there a list somewhere that details all the available options?

Thanks.

Nov 25, 2011 at 11:19 AM

Heres the list:

[TITLE]
 [LINK_DESCRIPTION]
[LINK]
[WebRoot]
[httpBase]

Its in the Newsletter Widget source code.

Source Code

Here's an example of a modified newsletter template:

http://themes.kbdavis07.info/imprezz/post/NewsletterTemplate.aspx
Dec 1, 2011 at 4:26 AM
Edited Dec 1, 2011 at 4:27 AM

Thanks, kbdavis. I've reduced the template down to 'bare bones', but the [LINK_DESCRIPTION] isn't working. This is the full code of newsletter.html:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>TribalMind.net Blog: [TITLE]</title>
</head>
<body>
<div>
New post:<br />
[LINK_DESCRIPTION]
</div>
<div style="font-size:70%; margin-top:24px;">[UNSUBSCRIBE]</div>
</body>
</html>

 

The content of the emails is just "New post:" but nothing more.

I note also that you have an [UNSUBSCRIBE] field, which I thought might be a standard variable, but apparently not. I'm assuming you've just modified the Newsletter Widget source code to replace this with your unsubscribe code, right?

Thanks.

PS What I'm trying to achieve is a simple, two-line email that says:

New post:
This is the new post title (linked to the post URL)

Dec 2, 2011 at 6:08 AM

You must have your Description filled out for your Post.

Look at this screen shot:

ScreenShot

Also I found out it takes Html tags too.

So if you put  <b> Hello</b> in the description field

in your email it will be bold.

Just FYI

 

Note also that you have an [UNSUBSCRIBE] field,

 

Its not standard yet. But, its a future feature I am going to add.  Currently its not working.

Just sign up for our newsletter at:

http://themes.kbdavis07.info/Imprezz/

Once I make that feature working I will post it there as a download.

So you will receive an email when its ready :)

 

Have a Great Day!

 

Brian Davis