giterlizzi / dokuwiki-plugin-bootswrapper

Bootstrap Wrapper for DokuWiki
GNU General Public License v2.0
35 stars 22 forks source link

Pills no longer drop down #122

Open suedunham opened 4 years ago

suedunham commented 4 years ago

After installing the new update (2020-08-06), my pills no longer display the dropdown contents. These do work with Hogfather 3 and Bootstrap Wrapper 2017-04-07. I am using the nspages plugin (2020-07-09) to populate the dropdowns.

Wiki: Release 2020-07-29 "Hogfather" Bootstrap3: Template v2020-07-29 (stable/20200729)

Juergen-aus-Zuendorf commented 4 years ago

I have the same problem under "Release 2018-04-22b Greebo"

suedunham commented 4 years ago

I found a solution. The problem seems to be from using nspages here, as items listed manually work fine. With nspages, the ‑simpleList option no longer works in the pill; an empty list drops down with a bit of shading, but that's it. However, ‑simpleLineBreak does. ‑numberedList will work too, as it happens, but ‑tree will not.

suedunham commented 4 years ago

Reopened in case there is something that changed in Bootstrap Wrapper that could be addressed. Though the functionality can be preserved with ‑simpleLineBreak, the text formatting and line spacing is changed with that option. Maybe the problem is on the nspages end, but it did work with the previous Bootstrap Wrapper.

suedunham commented 4 years ago

Here's a more full example of what I'm trying to do. Alas, the wiki is not public. The following code makes pills at the top of the page. An explicit list is given, and the same list is generated with the current version of nspages in three different ways, for the sake of comparison.

Wiki: Release 2020-07-29 "Hogfather" Bootstrap3: Template v2020-07-29 (stable/20200729) nspages: 2020-07-09

<pills justified="true">
  * Explicit
    * [[caleme]]
    * [[esenor]]
    * [[gardiren]]
    * [[heru]]
    * [[kaldor]]
    * [[kaldor_overview]]
    * [[minarsas]]
    * [[olokand]]
    * [[oselbridge]]
    * [[qualdris]]
    * [[tashal]]
  * SimpleList
    * <nspages -h1 -textPages="" -sortId -simpleList -exclude -exclude:start>
  * LineBreak
    * <nspages -h1 -textPages="" -sortId -simpleLineBreak -exclude -exclude:start>
  * Numbered
    * <nspages -h1 -textPages="" -sortId -numberedList -exclude -exclude:start>
</pills>

Here is a composite image of how these dropdowns are rendered in the previous version of Bootstrap Wrapper. The simpleList matches the explicit, for the most part, and this is what I am interested in using. old_composite

Here are the same menus rendered by the new Bootstrap Wrapper. The simpleList is empty, and the others look like links rather than dropdown items. new_composite