I have a working concept for this but won't polish it and submit a PR until I know people's thought.
This is basically a proposal for a small feature that allows users to add badges to modules.
To add a badge, you would simply have to add something like the following in the Module Class Suffix input:
badge-success[Text Here]
This would result in the following:
The badges you currently see in the bottom modules are hardcoded HTML in the custom module editor, so this feature would allow you to add badges to ANY module.
Thoughts
Labels |
Added:
?
|
modChrome's are template specific and seeing as Aurora is based on BS4 so this would be coupled to BS4. If other template providers wish to use the same code in their own modChrome's, they can change the badge
class to whatever matches their framework.
Not sure we need this in core.
Can it not be achieved with existing module classes
On 8 May 2017 4:43 p.m., "Lodder" notifications@github.com wrote:
Well as Aurora is based on BS4, this would be couple to BS4. If other
template providers wish to use the same code in their own modChrome's, they
can change the badge class to whatever matches their framework—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#15895 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8R2VcYqlJh2bbO8kZP31OnYfpJFNks5r3zgVgaJpZM4NUH_f
.
@brianteeman - Can only be achieved if you create a custom module and hardcode the HTML in the editor
That sounds odd as I used to do something similar years ago.
Even so I don't really see the use case myself
yeah, I think it was on the old Yootheme templates that I used to use them.
Category | ⇒ | com_modules External Library Layout Templates (site) |
In my case I did it myself as I have never used a template club
I don't think this needs to be in core.
It's easy to do with custom CSS if someone needs it for their use case.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-08 21:17:55 |
Closed_By | ⇒ | C-Lodder |
We really need an override creator that's tightly connected to the CSS framework. Hardcoding is not an option.
My 2c