-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joomla Modules Custom classes #39806
Comments
make sure that the module chrome for that module position is one that uses the class. |
Its the same module.
What is a chrome?
Agamemnon Fakas
6 Φεβ 2023, 17:14, ο χρήστης «Brian Teeman ***@***.***>» έγραψε:
make sure that the module chrome for that module position is one that uses the class.
—
Reply to this email directly, view it on GitHub<#39806 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXC2UWFTSN6DUISYRME2HIDWWEIM3ANCNFSM6AAAAAAUSZHNJQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The Joomla module's advanced settings allow for adding a user-defined class. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/39806. |
@niosme asks "what is a chrome?" A chrome is the styling for the module - it relates to If you are using the Cassiopeia template, have a look in the index.php at line 135 where the 'topbar' menu module is. In that line it is In your module, go to the 'Advanced' tab and scroll to the bottom. There you'll see 'Module Style' where you can select various styles (chromes) including any that you design yourself. If you're not using Cassiopeia and want to design your own chrome, you'll need to create the /html/layouts/chromes directory path and copy either 'card' or 'noCard' into a new file with a different name to use as a starting point as there is currently no option to do so via a template override. |
First of all thanks for explanation. I use cassiopeia child template i made but i use no chrome in those template positions or the module. Its the mod_menu and mod_custom where the problem still exists. In your installation it adds the custom class on those two modules?
Agamemnon Fakas
14 Φεβ 2023, 19:30, ο χρήστης «Scrabble96 ***@***.***>» έγραψε:
@niosme<https://github.com/niosme> asks "what is a chrome?"
A chrome is the styling for the module - it relates to style="name-of-style" in the index.php where the code to insert a module position is placed.
If you are using the Cassiopeia template, have a look in the index.php at line 135 where the 'topbar' menu module is. In that line it is style="none". Look further down at the 'top-a' module and you'll see it says "style="card". 'card' is the name of a chrome, which you'll find in /templates/cassiopeia/html/layouts/chromes/ along with another called 'noCard'.
In your module, go to the 'Advanced' tab and scroll to the bottom. There you'll see 'Module Style' where you can select various styles (chromes) including any that you design yourself.
If you're not using Cassiopeia and want to design your own chrome, you'll need to create the /html/layouts/chromes directory path and copy either 'card' or 'noCard' into a new file with a different name to use as a starting point as there is currently no option to do so via a template override.
—
Reply to this email directly, view it on GitHub<#39806 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXC2UWEGSTTXKN4CWN7T5SLWXO6K3ANCNFSM6AAAAAAUSZHNJQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
As i checked in the menu module and in custom module the params we get are the following but the param [moduleclass_sfx] is never used inside the module. IMPORTANT ALSO: |
The solution is exactly what you have already beehn told by @Scrabble96. If you dont use a chrome/modulestyle then you will only get the content. You need to use a chrome/modulestyle @Hackwar there is no bug here and it should be closed. |
Yes. Using the html5 layout module looks like fixing the problem. The template cassiopeia in bottom and top positions have noCard or none witch not show the modules title and classes. |
closing |
Steps to reproduce the issue
Add Custom class to joomla module from advanced settings in a module at the field class module.
e.g. custom module
or menu module
Expected result
custom class added next to mod-custom for custom module
for menu module next to mod-menu
e.t.c.
Actual result
No class added
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: