[Moin-user] Linking using # (reference)

Juergen Hermann jh at web.de
Tue Oct 23 13:14:07 EDT 2001


On Tue, 23 Oct 2001 16:17:49 +0000, bragiba at simi.is wrote:

>the _23 has been replaced for my #.

Works as defined. You cannot make the anchor a part of the pagename, it 
has to be a part of the LINK to it.

>    def _macro_Acronym(self, acronym):

You should add extensions into the macro _directory_, not into the 
wikimacro module.

For the link:

wikiutil.link_tag("AcronymIndex#%s" % first_letter, acronym)

>        page = open('c:/Inetpub/wwwroot/acronyms/acronyms.txt', 'r')

Absolute paths are bad, use config.data_dir.


Ciao, Jürgen






More information about the Moin-user mailing list