Smarty permission link parameters don't seem to allow a plain btn-link button
- Status
- Open
- Subject
- Smarty permission link parameters don't seem to allow a plain btn-link button
- Version
- 27.x
28.x - Category
- Bug
- Developer Training
- Less than 30-minutes fix
- Feature
- UI / UX (User interface and experience)
- Resolution status
- New
- Submitted by
- Gary Cunningham-Lee
- Lastmod by
- Gary Cunningham-Lee
- Rating
- Description
I'm trying to configure an instance of a "Permissions" link in a dropdown so that it matches the other dropdown items.
On wiki pages, in the page bar, activated by clicking the "More" button, there's a dropdown with links. The only one with an icon is "Permissions", and I wanted to try removing the icon by editing templates/tiki-page_bar.tpl. I can remove the icon with these parameters:
{permission_link mode="button" . . . addclass="dropdown-item" . . . . }but then the link is given thebtn-primaryclass. To get rid of that class, I can us these parameters:{permission_link mode="button_link" . . . addclass="dropdown-item" . . . . }but then the "key" icon displays, so the choice seems to be between the correct button classes plus an icon that can't be removed, or the icon removed but an unwanted button class added.I think it would be best if the
btn-primaryclass wasn't forced withmode="button". If the situation calls for a primary button, that class can be added withaddclass.(It's also possible that I'm missing some configuration detail so maybe user error on my part. 😉 )
By the way, I tried changing the key icon to something else just for a test, and neither
glyph=noricon=had any effect in my experimenting.- Importance
- 4
- Easy to solve?
- 6
- Priority
- 24
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8638
- Created
- Friday 07 June, 2024 13:29:30 UTC
by Gary Cunningham-Lee - LastModif
- Friday 07 June, 2024 13:29:30 UTC