summaryrefslogtreecommitdiff
path: root/conf/dokuwiki.php
diff options
context:
space:
mode:
authorjan <jan@jandecaluwe.com>2005-03-26 14:05:57 +0100
committerjan <jan@jandecaluwe.com>2005-03-26 14:05:57 +0100
commita77f584692c01151a33d85c32b23f8866b021c7c (patch)
tree3f50605e6b4a7c4ba916b7884d5e5d6145e137b2 /conf/dokuwiki.php
parenteca0e1f9c70d33cd1e944fda5e8c7ac307588eef (diff)
downloadrpg-a77f584692c01151a33d85c32b23f8866b021c7c.tar.gz
rpg-a77f584692c01151a33d85c32b23f8866b021c7c.tar.bz2
Use first heading as page name in links.
I just read "Don't make me think!" by Steve Krug, about web usability, and I liked its common sense a lot. One message was that every page should have a title, and that it should literally match what you click to get there. This patch tries to automate that for Dokuwiki. In wiki page links, it will fetch the first heading (the title) and use it as the name in links (unless an explicit other name is defined in the link). The same is done for the breadcrumbs (at least the default ones). I believe all this should make navigation easier. The feature is enabled/disabled with a configuration variable called $conf['useheading']. TO DO: more testing. Check whether the first heading is at a unique high level (probably easier when true parsing will be used.) Check hierarchical breadcrumbs. Perhaps omit the title from the automatic table of contents, and perhaps adapt the toc intentation of the lower level headings. darcs-hash:20050326130557-45605-bf7fdaf29e61924f2631af1bb95177ee0415c24d.gz
Diffstat (limited to 'conf/dokuwiki.php')
-rw-r--r--conf/dokuwiki.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php
index bd9c4d4eb..444a18fdc 100644
--- a/conf/dokuwiki.php
+++ b/conf/dokuwiki.php
@@ -36,6 +36,7 @@ $conf['maxtoclevel'] = 3; //Up to which level include into AutoT
$conf['maxseclevel'] = 3; //Up to which level create editable sections (max. 5)
$conf['camelcase'] = 0; //Use CamelCase for linking? (I don't like it) 0|1
$conf['deaccent'] = 1; //convert accented chars to unaccented ones in pagenames?
+$conf['useheading'] = 0; //use the first heading in a page as its name
/* Antispam Features */