Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [07-2005 Date Index] [Date Next] || [Thread Prev] [07-2005 Thread Index] [Thread Next]

[dokuwiki] backlinks & useheading and others

  • From: "Chris Smith" <chris@xxxxxxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Sat, 9 Jul 2005 00:25:08 +0100
Hi,

Currently the backlinks link doesn't support 'useheading' settings.  Also, I
think there are a number of things missing from the template functions,
functions/options not included as they aren't used in the default template
or no wrapper has been provided necessitating the use of core functions
rather than tpl interface ones.


- tpl_button & tpl_actionlink don't have a 'backlink' option.  The default
template doesn't use such a button, but it makes sense to me to allow
template creators easy access to the function in the same way that they can
generate other dokuwiki buttons/links.

- wl() is used in the template, but it isn't included in template.php and so
its documentation isn't easily accessed (when compared to the tpl_*
functions). Add a tpl_wikiurl() wrapper for wl() in template.php. Similar to
tpl_button and tpl_actionlink, tpl_wikiurl wrapper to support dokuwiki
actions without needing "?do=".

tpl_wikiurl  (
  $id='',      // wiki page id, default to $conf['start'] page if empty
string
  $action='',  // do action, default to none if empty string
  $query=''    // any additional query string, should not be prefixed by "?,
& or &amp;
)

- if using $conf['useheading'] and wanting to access the page header for the
page name requires calling p_get_firstheading() function.  Provide a tpl_
wrapper for this function so its included in the easy accessed tpl_*
documentation

tpl_pagename(
  $id          // wiki page id
)

Apart from the above changes to template.php, the template file, main.php
and the language file, lang.php, would need amendments.

Any thoughts?

I can prepare a patch for the above if needed.

Cheers,

Chris



-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.