Loading...
 
Skip to main content

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
(0)
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 the btn-primary class. 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-primary class wasn't forced with mode="button". If the situation calls for a primary button, that class can be added with addclass .

(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= nor icon= had any effect in my experimenting.

Importance
4
Easy to solve?
6
Priority
24
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
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


Show PHP error messages