[prev in list] [next in list] [prev in thread] [next in thread]
List: mailman-users
Subject: Re: [Mailman-Users] Mailman Template
From: Mark Sapiro <msapiro () value ! net>
Date: 2006-01-27 17:26:59
Message-ID: PC1740200601270926590312ac102f93 () msapiro
[Download RAW message or body]
Jeff Edwards wrote:
>I'm working on customizing the Mailman archive templates. I'm customizing
>the HTML and need to generate dynamic text based on the listname, but when I
>add a %(list_name)s in places, it doesn't get rendered dynamically. Instead
>it shows up as %(list_name)s in the final HTML. How can I use the dynamic
>tags in templates correctly?
Templates are a hodge podge. In some cases you use %(xx)s replacement;
in others <mm-*> tags like <MM-List-Name>. Also, you can't just use
arbitrary names. Each template has an associated dictionary in the
code, so even if you are dealing with a template that uses %(name)s
replacements, %(list_name)s may not work in that particular template.
>And is there a guide anywhere explaining the templating system in detail?
No, but it's on my To Do list to write a FAQ for this.
--
Mark Sapiro <msapiro@value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-users/mailman-users%40progressive-comp.com
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic