On Tue, Feb 23, 2010 at 03:29:07PM -0500, Jerry Schwartz wrote: > > >-----Original Message----- > >From: dokuwiki-bounce@xxxxxxxxxxxxx [mailto:dokuwiki-bounce@xxxxxxxxxxxxx] On > >Behalf Of Chris G > >Sent: Tuesday, February 23, 2010 12:45 PM > >To: dokuwiki@xxxxxxxxxxxxx > >Subject: [dokuwiki] Re: Can one make a heading also a link? > > > >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. > > > [JS] I agree. In my particular case, I want the links to appear in the TOC; > but they can't. This requires redundant entries: > > ===== Publishers ===== > ==== Arrow ==== > [[arrow]] > ==== Bow ==== > [[bow]] > ==== Bullet ==== > [[bullet]] > > And so forth. It would be a lot cleaner if I could put the links themselves > in > the TOC, somehow. > OK, I'm persuaded that I'm not the only one who would like something along these lines. I'll go and put my thinking hat on and see if I can come up with a plugin that fulfils some of our requirements. -- Chris Green -- DokuWiki mailing list - more info at http://www.dokuwiki.org/mailinglist