giterlizzi / dokuwiki-template-bootstrap3

Bootstrap-based template for DokuWiki
https://dokuwiki.org/template:bootstrap3
GNU General Public License v2.0
219 stars 77 forks source link

Highlighting of the current page in the sidebar does not work with TAG Plugin #586

Closed t0ben closed 1 year ago

t0ben commented 1 year ago

Highlighting of the current page in the sidebar does not work with generated lists.

See: https://integraleyemovementtherapy.wiki/iemt

Code: ====Integral Eye Movement Therapy====

[[iemt|]]
{{topic>IEMT -M&simplelist}}

The first link works, the autogenerated not. Using NOCACHE macro to prevent [caching] does not make any difference. I tried to understand what's going but i don't get it. AFAI understand this the template removes the dokuwiki way to handle this and does some of its own magic. Dokuwiki uses jquery now https://github.com/splitbrain/dokuwiki/pull/3003/commits/bbac148918bb6e6d2251a64bd20ef5d67f834cf8#diff-e53c97c638e4843aff90a574f2bc95a659bdba8db49e29205e623d7561aae907 but he template removes the data-wiki-id? I don't really understand what's going on.

Is there a way to get this working ?

Thanks !

t0ben commented 1 year ago

The pagelist Plugin doesnt add the data wiki id.

Line 412 in the pagelist plugin must add the data wiki id

-  $content = '<a href="' . wl($id) . '" class="' . $class . '" title="' . $id . '">' . $title . '</a>';
+ $content = '<a href="' . wl($id) . '" class="' . $class . '" data-wiki-id="' . $id . '">' . $title . '</a>';