From: Cliff B. <cb...@ac...> - 2002-07-30 12:48:32
|
We use phpwiki (v1.3.0-jeffhack) for an internal knowledge base and it wo= rks=20 well. One thing that is used quite a bit is footnotes. I would like to=20 upgrade to 1.3.3, but am not sure what to do about the footnotes. In 1.3= =2E3,=20 clicking on a footnote takes you to the home page. A few questions: * is phpwiki currently under active development? When is the next stable= =20 release expected? * Is there a plan to support footnotes in the future or some equivalent=20 functionality? Thanks, Cliff |
From: Reini U. <ru...@x-...> - 2002-07-30 13:04:58
|
Cliff Brake schrieb: > We use phpwiki (v1.3.0-jeffhack) for an internal knowledge base and it works > well. One thing that is used quite a bit is footnotes. I would like to > upgrade to 1.3.3, but am not sure what to do about the footnotes. In 1.3.3, > clicking on a footnote takes you to the home page. A few questions: > > * is phpwiki currently under active development? When is the next stable > release expected? I believe there's a break now that everything works fine. v1.3.3 is stable. The demo wiki is a MultiLingualWiki by Karsten. > * Is there a plan to support footnotes in the future or some equivalent > functionality? ? -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |
From: Joby W. <joby@u.washington.edu> - 2002-07-30 18:19:39
|
Yes this is a bug. I fixed it for markup 1.0 not 2.0 (not using so haven't tested). The problem is that the footnote functions do not include the page name. It would work also if the link was just #footnote, but by default WikiLinks include the proper full path. In transform.php replace function wtt_footnotes and wtt_footnoterefs: function wtt_footnotes($match, &$trfrm) { // Begin add by joby 7/18/2002 global $request; $page = $request->getArg('pagename'); // Begin add by joby 7/18/2002 // FIXME: should this set HTML mode? $ftnt = trim(substr($match,1,-1)) + 0; $fntext = "[$ftnt]"; $html = HTML(HTML::br()); $fnlist = $trfrm->user_data['footnotes'][$ftnt]; if (!is_array($fnlist)) { $html->pushContent($fntext); } else { $trfrm->user_data['footnotes'][$ftnt] = 'footnote_seen'; while (list($k, $anchor) = each($fnlist)) { $html->pushContent(HTML::a(array("name" => "footnote-$ftnt", // removed by joby "href" => "#$anchor", // begin add joby 7/18/02 "href" => "$page#$anchor", // end add joby 7/18/02 "class" => "footnote-rev"), $fntext)); $fntext = '+'; } } return $html; } function wtt_footnoterefs($match, &$trfrm) { // begin add joby 7/18/02 global $request; // end add joby 7/18/02 $ftnt = trim(substr($match,1,-1)) + 0; $footnote_definition_seen = false; if (empty($trfrm->user_data['footnotes'])) $trfrm->user_data['footnotes'] = array(); if (empty($trfrm->user_data['footnotes'][$ftnt])) $trfrm->user_data['footnotes'][$ftnt] = array(); else if (!is_array($trfrm->user_data['footnotes'][$ftnt])) $footnote_definition_seen = true; // removed by joby $link = HTML::a(array('href' => #footnote-$ftnt"), "[$ftnt]"); // begin add joby 7/18/02 $page = $request->getArg('pagename'); $link = HTML::a(array('href' => "$page#footnote-$ftnt"), "[$ftnt]"); // end add joby 7/18/02 if (!$footnote_definition_seen) { $name = "footrev-$ftnt-" . count($trfrm->user_data['footnotes'][$ftnt]); $link->setAttr('name', $name); $trfrm->user_data['footnotes'][$ftnt][] = $name; } return HTML::sup(array('class' => 'footnote'), $link); } Cliff Brake wrote: > We use phpwiki (v1.3.0-jeffhack) for an internal knowledge base and it works > well. One thing that is used quite a bit is footnotes. I would like to > upgrade to 1.3.3, but am not sure what to do about the footnotes. In 1.3.3, > clicking on a footnote takes you to the home page. A few questions: > > * is phpwiki currently under active development? When is the next stable > release expected? > * Is there a plan to support footnotes in the future or some equivalent > functionality? > > Thanks, > Cliff > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code1 > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |