[pmwiki-users] Re: (:toc) on another page
John Rankin
john.rankin at affinity.co.nz
Tue Mar 29 19:27:38 CST 2005
On Friday, 25 March 2005 3:53 PM, Eric Appleton <ecappleton at yahoo.com> wrote:
>Sorry. I figured it out. I needed to download the new
>version of pagetoc.php. Thanks for the help.
>
>Eric
>
If you use the Markup Extensions, you may wish to install the
latest version, which tidies up the tool tips over the links
which toc-page generates. See
http://www.pmwiki.org/wiki/Cookbook/MarkupExtensions
>Just a suggestion, but what about using (:toc page=NewsPage:) instead?
>Then all the other parameters for a (:toc:) might be kept as they are?
Yes, I dithered over which way to go. I eventually plumped for
(:toc-page PageName:) over (:toc page=PageName:) for these reasons:
- other directives, such as include and redirect are of the form
(:directive PageName:) so I followed this convention, although
I suspect there are exceptions
- it made sense to me that (:toc-page Page Name:) with a space
would just work, whereas to be consistent with other directives
one would probably write (:toc page='Page Name':) which didn't
seem quite as tidy
- I chose to take the other parameters from the (:toc:) on
PageName, rather than making (:toc-page PageName:) deal
with them -- this made implementation a *lot* simpler
However, I don't feel strongly either way and will change it
if page=PageName is preferred :)
>/Christian
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list