dokuwiki-plugin-bootswrapper icon indicating copy to clipboard operation
dokuwiki-plugin-bootswrapper copied to clipboard

Pills no longer drop down

Open suedunham opened this issue 3 years ago • 4 comments

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)

suedunham avatar Aug 10 '20 00:08 suedunham

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

Juergen-aus-Zuendorf avatar Aug 10 '20 09:08 Juergen-aus-Zuendorf

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 avatar Aug 13 '20 18:08 suedunham

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 avatar Aug 13 '20 19:08 suedunham

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

suedunham avatar Aug 14 '20 08:08 suedunham