DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:secedit2head

secedit2head Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" yes
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" unknown

plugin Relocate section edit buttons to the header of the corresponding section

Last updated on
2024-03-30
Provides
CSS/JS-only
Repository
Source

Tagged with page, section

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples/Usage

Before After

Configuration and Settings

None. The edit button elements keep the class names as before. So you may adjust userstyle.css or template styles as needed.

Note: Since the button - text/icon - will now be inside an h1, h2, h… you may want to at least set a specific font size for consistency. For my use, I set a specific font size and adjust the margin from the default CSS:

#dokuwiki__content.main-content .secedit:not([class*="plugin"]):not([class*="table"]) form div.no button {
  font-size: 1.2rem;
  margin-top: 0 !important;
}

Changelog

plugin/secedit2head.txt · Last modified: 2024-03-30 21:31 by 2603:6010:8200:fd:b083:76f3:f2ad:b5d7

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki