From: Joby W. <joby@u.washington.edu> - 2004-03-04 19:12:52
|
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 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |