DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:indexeverywhere

indexeverywhere Plugin

Compatible with DokuWiki

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

plugin Adds the index to any page/sidebar

Last updated on
2014-09-10
Provides
Syntax

Similar to indexmenu

Tagged with !broken, index, navigation

Installation

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

Examples/Usage

Just put

~~INDEXEVERYWHERE~~

whereever you want the page you know from ?do=index without the

Sitemap

This is a sitemap over all available pages ordered by namespaces.“ text.

I created this plugin to use it in a sidebar as main navigation tree.

Hint: You should also add

~~NOCACHE~~

wherever you use this.

Syntax

~~INDEXEVERYWHERE~~

Configuration and Settings

No configuration. For better styling access, the tree has the same id as the index itself (”#index__tree“) and also the class indexeverywhere. I will look if the ID can cause issues and add a style.css if needed in the future.

Development

Should be compatible to any possible version, I created and tested it under Ponder Stibbons

Change Log

  • 2014-09-10
    • Initial release

Known Bugs and Issues

None yet, please use github for issues

FAQ

Didn't hear any questions yet.

I found this plugin very useful as a quick way to get a Sitemap. But a client had multiple-word file names and namespaces. This removed the underscores so that the names could be wrapped on more than one line in a sidebar; otherwise they are broken by length based on the width of the sidebar.

        $index = preg_replace_callback(
        "/>\s*([\w_]+)(?!\")\s*<\/a>/ms",
        create_function(
            '$matches',
              'return ">".str_replace("_"," ",$matches[1]) ."</a>";'
         ), $index);
 
       $index = preg_replace_callback(
       "/<(strong|b)>(.*?)<\/(strong|b)>/ms",
        create_function(
          '$matches',
          'return str_replace("_"," ",$matches[0]);'
        ),$index);       
 

The sitemap in sidebar can start from specific Namespace?

plugin/indexeverywhere.txt · Last modified: 2020-10-05 15:27 by desbest

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