[pmwiki-users] Automatically add anchors to heading tags?

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Fri Jul 6 03:39:21 CDT 2007


On Thu, 5 Jul 2007, Patrick R. Michaud wrote:

> On Thu, Jul 05, 2007 at 05:01:24PM -0400, Jonathan Abbett wrote:
>> Greetings, all--
>>
>> Is there a simple way to configure pmWiki such that all headings (H1,
>> H2, etc) are automatically generated with anchor tags so people can link
>> directly to a section or subsection?  (I believe MediaWiki has this
>> functionality by default.)
>
> What values do you want the anchor tags to have?

I think this functionality might come with the PageToC recipe?  IIRC, I 
implemented a recipe for "visible anchors" for this purpose, and these 
were later incorporated into the TOC. So have a look among the recipes.

http://www.pmwiki.org/wiki/Cookbook/PageTableOfContents

/C

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr


More information about the pmwiki-users mailing list