[pmwiki-users] wikipublisher (pagetoc)
noskule at gmx.net
Wed Mar 8 05:13:59 CST 2006
John Rankin schrieb:
>On Wednesday, 8 March 2006 12:56 PM, John Rankin <john.rankin at affinity.co.nz> wrote:
>>On Wednesday, 8 March 2006 11:00 AM, noskule at gmx.net wrote:
>>>* I cant get toc-page to work. I would like to put it in the right
>>>sidebar . Is this somhow possiblewithout to put the pagetoc into the
>>>target page. (See:
>>No. toc-page only works when the target page includes a toc directive,
>>because that's how it decides where to start generating the
>>I might be able to change this, I think.
>On further reflection, this is tricky. The toc-page directive
>generates references to anchors on the target page; click on one
>and it takes you to the page in question. But now, when generating
>that page, we need to have an anchor to act as the target of the
>link. That's what the toc directive does. Without the toc, there
>are no anchors, unless you insert them manually.
>So what we need is a "silent toc" directive -- it generates
>anchors but no toc list. This needs a suitable markup
>variant, such as (:^toc:) for "not toc", in contrast to
>(:*toc:) and (:#toc:).
>More reflection needed, I think.
This seams a good approach. IMO anchors for heading shouldnt require a
(visible) table of content. Cause I'maby like to link a arbitary heading
in an arbitary page but the target page I do not need a table of
content. So to make autmatic anchors independend from a toc seams a good
thing. It would be nice if a silent toc could be put into the
groupheader to assign them automaticly to every page.
One question is the nameconvention. Numbers have the problem, if the
content changes(additional heading), referenves maby point to the wrong
anchor. Anchors with the same name as the heading(underscores instead of
space) have the problem that there could exists multiple times. So it
seams need some thinking to get a solution . ..
More information about the pmwiki-users