[Mailman-Developers]
[ mailman-Patches-549174 ] Per-list Templates in archive
noreply@sourceforge.net
noreply@sourceforge.net
Tue Nov 19 03:48:30 2002
Patches item #549174, was opened at 2002-04-26 12:52
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=549174&group_id=103
Category: Pipermail
Group: Mailman 2.0.x
Status: Open
Resolution: None
>Priority: 1
Submitted By: Alessandro Forghieri (alien_life_form)
Assigned to: Nobody/Anonymous (nobody)
Summary: Per-list Templates in archive
Initial Comment:
Grettings.
The included Hyperarch.py provides a drop-in
replacement of the original, which also offers per-list
templates in archived lists.
It will look for templates in the directory
[prefix]/templates/list-name (small caps version).
Possible temnplates must be named as follows:
arch_listing_end.tmpl
arch_listing_start.tmpl
article_template.tmpl
index_entry_template.tmpl
index_footer_template.tmpl
index_header_template.tmpl
TOC_entry_template.tmpl
TOC_template.tmpl
each has the function of the like named variable in
Hyperarch - please refer to the included example for
details. Format is almost html - true % characters must
be escaped by doubling them (e.g. 100% => 100%%).
A default is provided as a fallback for missing
templates (identical to the previous default).
I did not make any attempt to integrate this in the
general template editing facility of mailman. It should
n't be difficult though.
Also missing is a way to regenerate the archives when a
template changes.
Installation:
replace [prefix]/Mailman/Archiver/Hyperarch.py with
the attachment to this message.
The second attachment (see part 2) is an archive
exemplifying how to use the templates.
Cheers,
alf
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=549174&group_id=103
More information about the Mailman-Developers
mailing list