Chris G wrote on 23.02.2010 18:45: > On Tue, Feb 23, 2010 at 01:53:30PM -0300, Luis Machuca wrote: >> Chris G escribió: >>> On Tue, Feb 23, 2010 at 11:49:05AM +0100, Michael Klier wrote: >>>> On Tue, Feb 23, 2010 at 10:44:48AM +0000, Chris G wrote: >>>>> Is there some easy way of making a section heading also a link? It >>>>> would seem that this is a pretty normal requirement but I can't see >>>>> any obvious way to do it? >>>> No this is not possible due to how the parser works because headlines are >>>> "special" - also this has been asked and answered a gazillion of times here >>>> on the mailinglist as well as the forum - and sursprise surprise - it's >>>> even >>>> a faq entry: >>>> >>>> http://www.dokuwiki.org/faq:headerlinks >>>> >>> Oops, sorry! Doesn't actually help much though as the tips it points >>> to show lots of ways of changing the style of a heading but no way to >>> get a link in a different style. >>> >>> There is a workaround if you do it in HTML though:- >>> >>> <html><h3><a href="http://www.somewhere.com";>Heading >>> Text</a></h3></html> >>> >>> Maybe this could go in the FAQ? I'm quite happy to add it if it's >>> thought reasonable. (It needs htmlok to be ticked of course) >>> >> That's understandable -- no links or any other sort of content in headers is >> *wanted behaviour*, since titles are titles, and also a god thing >> accesibility >> wise. >> > Well I wanted it! :-) > >> A link in a / as a header, IMHO, essentially says: "sorry, what goes below >> here should go into its own page instead, but can't get myself to move it". >> It strongly deviates attention from the current content, and what is linked >> in >> a header may not even be in sync with what the encompassing article says. >> > I agree with you that in many/most cases one doesn't want a link as a > header but it can be sensible sometimes. > > In the case in point it's on a page which is a collection of > information about businesses and such, the headers would be links to > the business' own web sites and the text underneath is extra > information that I have collected. It feels very logical to me in > this case to have the header being a link. It's a very commonly used > approach, I found an example very quickly:- http://www.htmlhelp.com/ > >> The practical way to solve the issue is, of course, not a link in a header, >> but a link right below a header with some indication such as "See also" or >> "Main article". > > IMHO that's a bodge working around something you want to do but can't do. Hi Chris! Like it was already mentioned, you can achieve this functionality by implementing a custom plugin. The tricky thing is how to create page TOC. You may play with the following plugin, which I use right now [1] in my installation, but keep in mind, that it may cause unexpected bugs in TOC and (I suppose) may impact your sidebar index menu (option 'useheading' [2] in particular may not work). [1] http://wiki.jalakai.co.uk/dokuwiki/doku.php/tutorials/header [2] http://www.dokuwiki.org/config:useheading -- With best regards, Dmitry -- DokuWiki mailing list - more info at http://www.dokuwiki.org/mailinglist