From: Micki K. <mic...@co...> - 2004-03-06 01:41:03
|
Absolutely - a unique ID in each anchor and href is critical, to differentiate form from function... Rocking Job, Folks! Micki At 8:05 PM -0800 3/4/04, php...@li... wrote: >From: Joby Walker <joby@u.washington.edu> >To: Whit Blauvelt <wh...@tr...> >CC: Reini Urban <ru...@x-...>, php...@li... >Subject: Re: [Phpwiki-talk] Re: feature idea - TOC (de facto IncludeHeadings) > >Nice catch. > >This could be resolved by appending an (invisible) index number to every TOC >link/anchor. > >jbw > >Whit Blauvelt wrote: > >> On Tue, Mar 02, 2004 at 07:24:12PM +0100, Reini Urban wrote: >> >>>I fixed now CreateToc to link to the headers and >>>optionally link back to the TOC. >> >> >> Nice addition. >> >> One thing the current scheme misses is when two different headings have the >> same subheading. So if you have a page with sections like: >> >> Category One >> Examples >> >> Categore Two >> Examples >> >> - the two Examples subcategories try to set up links to the headers like: >> >> <li><a href="InPage#Categoryx20.1" class="named-wiki" >>title="InPage">Category 1</a></li> >> <li><a href="InPage#Examples" class="named-wiki" >>title="InPage">Examples</a></li> >> <li><a href="InPage#Categoryx20.2" class="named-wiki" >>title="InPage">Category 2</a></li> >> <li><a href="InPage#Examples" class="named-wiki" >>title="InPage">Examples</a></li> >> >> which both assigns the same link to two locations, but throws an error: >> >> PHP Warnings >> >> lib/plugin/CreateToc.php (In template 'browse') (In template >>'savepage') (In template 'body') (In template 'html'):77: >>Notice[1024]: Heading <h3> Examples </h3> not found >> >> Whit -- Micki mailto:mic...@co... |