?
avatar C-Lodder
C-Lodder
8 May 2017

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:

untitled

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

avatar C-Lodder C-Lodder - open - 8 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 May 2017
avatar C-Lodder C-Lodder - edited - 8 May 2017
avatar dgt41
dgt41 - comment - 8 May 2017

We really need an override creator that's tightly connected to the CSS framework. Hardcoding is not an option.
My 2c

avatar C-Lodder
C-Lodder - comment - 8 May 2017

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.

avatar brianteeman
brianteeman - comment - 8 May 2017

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
.

avatar C-Lodder
C-Lodder - comment - 8 May 2017

@brianteeman - Can only be achieved if you create a custom module and hardcode the HTML in the editor

avatar brianteeman
brianteeman - comment - 8 May 2017

That sounds odd as I used to do something similar years ago.

Even so I don't really see the use case myself

avatar C-Lodder
C-Lodder - comment - 8 May 2017

yeah, I think it was on the old Yootheme templates that I used to use them.

avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 May 2017
Category com_modules External Library Layout Templates (site)
avatar brianteeman
brianteeman - comment - 8 May 2017

In my case I did it myself as I have never used a template club

avatar Bakual
Bakual - comment - 8 May 2017

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.

avatar C-Lodder C-Lodder - change - 8 May 2017
The description was changed
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-05-08 21:17:55
Closed_By C-Lodder
avatar C-Lodder C-Lodder - close - 8 May 2017

Add a Comment

Login with GitHub to post a comment