Hi Michael,
can you do me a favour an post diffs (best would be against trunk).
That helps to integrate them.
I take this kind of list is a new feature and not a bug fix?
Ralf
kwizl schrieb:
Hello everyone,
The following code snippet creates a reference list from from numbered
references entered as [http://www.php.net].
Paul Davey aka Mattahan[1]
Postfix[2]
Cyrus IMAP[3]
eGroupWare[4]
Entering [[Reflist]] yields:
- http://mattahan.deviantart.com
- http://www.postfix.org
- http://cyrusimap.web.cmu.edu
- http://www.egroupware.org
wiki/lib/defaults.php
234 $DisplayEngine = array(
…
272 ‘diff_delete’ => ‘html_diff_delete’,
273 ‘reflist’ => 'html_reflist’
274 );
279 $ViewMacroEngine = array(
…
288 ‘PageRefs’ => ‘view_macro_refs’,
289 ‘RefList’ => 'view_macro_reflist’
290 );
wiki/lib/init.php
024 function wiki_check_anon_access(&$anon_account)
…
105 $Entity = array(); // Global parser entity list.
106 $RefList = array(); // Array of referenced links,
see view_macro_reflist
wiki/parse/html.php
472 function html_reflist()
473 {
474 global $RefList;
475 if (!empty($RefList)) {
476 $str = ‘
’;
477 $str .= ‘’;
478 foreach ($RefList as $ref) {
479 $str .= ’- '. $ref. ’ ‘. $ref .’
';
480 }
481 $str .= ‘
’;
482 return $str;
483 }
484 else
485 { return “”; }
486
487 }
488 ?>
wiki/parse/macros.php
282 function view_macro_reflist($args)
283 {
284 return parse_elements(new_entity(array(“reflist”, $args)));
285 }
286 ?>
wiki/parse/transforms.php
236 function url_token($value, $display)
237 {
238 global $RefList;
239 static $count = 1;
240
241 if($display == ‘’)
242 { $display = ‘[’ . $count++ . ‘]’;
243 $RefList[] = $value; }
244
245 return new_entity(array(‘url’, $value, $display));
246 }
Peace,
Michael Adair
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
cell +49 (0) 170 7815917
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller, Nigel John Vickers,
Gudrun K. Müller und Ralf Becker
Registergericht Kaiserslautern HRB 12087
This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers