[Pmwiki-users] Links in template pages

Ilya Zverev zverik
Tue Sep 7 05:45:21 CDT 2004


One more dumb question, sorry :)

I'm trying to add a link in the template to display 'Discussion' page,
where users can discuss any Wiki page (except discussion pages). So, I
used <!--function:DiscussLink--> inside the template, and in function
wrote something like

  print FmtWikiLink(NULL, 'Discussion', 'Discuss');

It is incorrect mainly because it doesn't make different discussion
pages for different Wiki pages. Adding $Title before 'Discussion'
doesn't help.

And the main problem is that if the page doesn't exist, the
corresponding link format ($PageCreateLinkFmt) is not used. Note that
after the fresh installation pages Main.RecentChanges and
Main.AllRecentChanges don't exist, but links 'recent changes' are
printed like they do exist.

So, the question is: is there a way to do Wiki links from the script
look correctly? How should the DiscussLink function be implemented?

Thanks,
Ilya Zverev




More information about the pmwiki-users mailing list