[dokuwiki] Re: Can one make a heading also a link?

  • From: Chris G <cl@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 23 Feb 2010 11:23:11 +0000

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)

-- 
Chris Green

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: