[Moin-user] Automatically add macros

Nikolaus Rath Nikolaus at rath.org
Wed Dec 1 10:53:18 EST 2010


"R.Bauer" <rb.proj at gmail.com> writes:
> Am 01.12.2010 02:57, schrieb Nikolaus Rath:
>> Hello,
>> 
>> I would like to automatically insert the <<<<TableOfContents()>> macro
>> at the beginning of each page, and the <<AttachList()>> macro at the end
>> of each page. Is there a way to do that?
>
> Create just a Template page e.g. MyTemplate, see HelpOnTemplates
>
> add
>
> <<TableOfContents()>>
>
> lorem ipsum
>
> <<AttachList()>>
>
> and use it for your new pages

I would rather define this in one place and enforce it for all existing
pages. Isn't there a way to do this, e.g. by somehow telling the theme
to implicitly insert these macros in every page that it serves?


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C





More information about the Moin-user mailing list