Not logged in. · Lost password · Register
Forum: General Help and Support Plugins Plugin Wishlist RSS
[Request] Enable to specify header ID
Avatar
hokkaidoperson #1
Member since Apr 2018 · 54 posts · Location: Sapporo, Hokkaido, Japan
Group memberships: Members
Show profile · Link to this post
Subject: [Request] Enable to specify header ID
Currently it seems that it is impossible to specify the header ID, automatically generated with the header text.
It'll be so grate if I can name the header ID not depending on the header text.
For example:
====== Supercalifragilisticexpialidocious [#song1] ======

<h1 class="sectionedit1 page-header" id="song1">Supercalifragilisticexpialidocious</h1>

Then it can be linked with more simple ID: [[#song1]] instead of [[#supercalifragilisticexpialidocious]]
This post was edited on 2018-12-19, 16:02 by hokkaidoperson.
Avatar
Michaelsy #2
Member since Jun 2015 · 665 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
I would also welcome such a possibility. Especially, because then you could easily modify the text of the headings.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
This post was edited on 2019-01-09, 09:47 by Michaelsy.
Avatar
zioth #3
Member since Jul 2011 · 77 posts
Group memberships: Members
Show profile · Link to this post
You can't force an id in a header, but you can create an id before the header, which links to the same place. Try the Anchor plugin (https://www.dokuwiki.org/plugin:anchor), or if you have HTML enabled, you can do this:

<html><a name="song1" id="song1"></a></html>
Avatar
zioth #4
Member since Jul 2011 · 77 posts
Group memberships: Members
Show profile · Link to this post
If anchor doesn't work for you, you can try https://www.dokuwiki.org/plugin:hiddenheader . That one works well with https://www.dokuwiki.org/plugin:include , letting you include sections that don't look like sections.
This post was edited on 2018-12-21, 14:29 by zioth.
Avatar
hokkaidoperson #5
Member since Apr 2018 · 54 posts · Location: Sapporo, Hokkaido, Japan
Group memberships: Members
Show profile · Link to this post
Thank you, zioth.  I'll do that.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-01-17, 05:57:01 (UTC +01:00)