[pmwiki-users] Including pre-defined text blocks in PmWiki pages

Hans design at flutesong.net
Sat Mar 26 12:47:26 CST 2005


Saturday, March 26, 2005, 6:39:12 PM, Iain wrote:
> Question: Is there a way of including a pre-defined chunk/snippet
> of text in a PmWiki page?

> Example: I wish to include the same postal address on several Wiki
> pages, but (being lazy) I don't want to have to type the address
> out each time. Rather, I would like to be able to include some
> kind of markup, %insert:address%, say, which would insert the
> relevant lines from a text file (or the configuration file?) into
> a page when that page is requested by a user.

You could put your address on a wiki page Main.Address and then use
(:include Main.Address:)

If you have many small snippets you could put them on the same page and
use include markup and specify which lines from the page to include.
See PmWiki.Directives


Best, 
~Hans                           




More information about the pmwiki-users mailing list