[pmwiki-users] display toc on another page

John Rankin john.rankin at affinity.co.nz
Wed Mar 23 15:15:23 CST 2005


On Wednesday, 23 March 2005 3:46 PM, Eric Appleton <ecappleton at yahoo.com> wrote:
>Hello everyone,
>
>I just learned how to use (:toc:) to display a table
>of contents at the top of a page based on the levels
>defined by !! or !!!. Is it possible to display the
>same table of contents on a different page? 
>
>I would like to have a news page with a number of
>stories, each with its own header, and then display
>each story header as a link on my home page. The table
>of contents would be perfect if I could tell it which
>page to pull the contents from.
>
>Thanks for the help,
>Eric

Yes, this feature should be fairly easy to add.
However, you will still need to have a (:toc:)
directive on the news page itself, as this is what 
causes the toc script to create anchors on headings.

I'll have a look at this over the weekend. You will
write something like

    (:toc-page NewsPage:)

to tell it to go to another page for the headings.


-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list