- Posts: 12
- Thank you received: 0
Module Class Suffix doesnt work
15 years 10 months ago #2323
by LAS_VEGAS
Module Class Suffix doesnt work was created by LAS_VEGAS
Hi,
I added shopping cart module to position 'left'. I set "Module Class Suffix" as "_menu". But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:
It should be:
This works fine with main menu module for example.
I added shopping cart module to position 'left'. I set "Module Class Suffix" as "_menu". But on the front end, this setting is not 'respected'. The module is put inside with wrong css class:
Code:
<div class="module">...</div>
It should be:
Code:
<div class="module_menu">...</div>
This works fine with main menu module for example.
Please Log in or Create an account to join the conversation.
15 years 10 months ago - 15 years 10 months ago #2325
by nicolas
Replied by nicolas on topic Re: Module Class Suffix doesnt work
That's interesting.
It actually works on our dev website but doesn't on our demo website. We will have to investigate...
It's actually a parameter which is handled automatically by joomla and since it was working on our dev website, we thought it would be working all the time.
I'll update that thread when we find the problem.
It actually works on our dev website but doesn't on our demo website. We will have to investigate...
It's actually a parameter which is handled automatically by joomla and since it was working on our dev website, we thought it would be working all the time.
I'll update that thread when we find the problem.
Last edit: 15 years 10 months ago by nicolas.
Please Log in or Create an account to join the conversation.
15 years 10 months ago #2326
by nicolas
Replied by nicolas on topic Re: Module Class Suffix doesnt work
You can edit the file modules/mod_hikashop/mod_hikashop.php and the file modules/mod_hikashop_cart/mod_hikashop_cart.php and change in each the code
to
Code:
foreach($module_options as $key => $option){
$params->set($key,$option);
}
Code:
foreach($module_options as $key => $option){
if($key !='moduleclass_sfx'){
$params->set($key,$option);
}
}
Please Log in or Create an account to join the conversation.
15 years 10 months ago #2329
by LAS_VEGAS
Replied by LAS_VEGAS on topic Re: Module Class Suffix doesnt work
Thanks, that code fixes the problem.
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2675
by reace
you Guys are Awesome and have excellent Support! Keep up the great Work!.
Replied by reace on topic Re: Module Class Suffix doesnt work
is it not better to use a preceeding space for module_suffix rather then '_' as the space should separate the new suffix from the old without losing formatting etc?
Ive not done much work with these as yet .
Ive not done much work with these as yet .
you Guys are Awesome and have excellent Support! Keep up the great Work!.
Please Log in or Create an account to join the conversation.
15 years 9 months ago #2685
by nicolas
Replied by nicolas on topic Re: Module Class Suffix doesnt work
If you use a space, that means that the module div will have two classes:
module new_class
But if you user an _, it will only have one class which is different from the default one:
module_new_class
Ususally, I used that option to set the suffix _menu which is defined for the menu module in order to add a chrome around the module when displayed on the left or right columns of the template. That's a standard way of doing it in joomla.
module new_class
But if you user an _, it will only have one class which is different from the default one:
module_new_class
Ususally, I used that option to set the suffix _menu which is defined for the menu module in order to add a chrome around the module when displayed on the left or right columns of the template. That's a standard way of doing it in joomla.
Please Log in or Create an account to join the conversation.
Time to create page: 0.268 seconds