Joomla 3: Advanced Options for modules not working - joomla

In Module Manager, when I go to the module settings, in the second tab called "Options" there is "Advanced Options" section. Inside Advanced Options, there are some fields such as Module Tag, Header Tag and Header Class. When I update these fields, I cannot see any update in the module's html. Do I need to call these functions in the module template using code something like this $params->get('header_class')? I thought this would work without having to make changes to the template code. Just wanted to clarify.

I believe you should reference those items via $params such as $params->get('header_tag', 'h2') in the module chrome. If the module chrome does not make use of that parameter(s), then you won't see any change. You can create an override in your template /html/modules.php to use them.

Related

Prestashop 1.7 - display module without hook

Can i display module (for example - language switcher) inside template directly, without hook?
I seem to have problem with custom hook, every i add (using theme.yml of current theme) wont output anything inside template.
I know these hooks are added to database, they appear in "position" site in admin panel (only when i select "Display non-positionable hooks"), but wont output any module in frontend (i add them into template of course - like this {hook h='coolkid'}).
If your module implements the WidgetInterface then you can call the module directly without using a hook.
In the template instead of
{hook h='coolkid'}
You'd call it using
{widget name='coolkid'}
You can read more about it here.

Why isn't loadposition working to load a module within a custom HTML module in Joomla 3.2?

I am developing a website with Joomla 3.2. I want to put a search box inside a custom HTML module. I have the module loading plugin enabled, a module position defined for the search box ('searchbox'), created the module instance, assigned it to the correct position, enabled it, and made sure it was assigned to all pages.
Inside my custom HTML module I inserted the following:
{loadposition searchbox}
As you can see here - http://ojospa.webez.net/ - it isn't working (look in the upper right hand corner).
Why isn't it working? I've looked over everything to make sure there were no typos and everything looks fine.
Any help would be appreciated.
Thanks!
Cynthia
You need to enable the "Prepare Content" parameter in the options of the module. Then it should work.

Template not displaying correctly

I've just had to reinstall Joomla as the template didn't seem to display correctly.
It should look like this demo
http://demo.joomla-monster.com/190-jm-lifestyle
But it looks like this.
www.ultimatemuscleperformance.co.uk
Does anyone have any idea why?
I'm really new to Joomla but I thought all of that would be displayed by default
*strong text*The template you've installed probably uses different named module positions to the template you were using before.
For example, lets say you assigned a login module to "position-7" (right sidebar) on your first template, you then install this new template. The module won't show because the new template uses the name "right-column" instead.
Here is a map of the module positions your template provides:
http://www.joomla-monster.com/knowledge-base-area/templates-documentation/templates-for-joomla-3-0/jm-lifestyle/template-layout
So all you need to do is assign the modules that aren't showing to a position shown on the link above
Hope this helps

Add a module to a component , but not every page of the component

i'm working on a joomla 1.5 for a university project (when it started 2.5 wasn't out :D). What i'm trying to do is to assign a module to my custom component , but not every page of it.
The 2 different pages of my component is a page that shows every product , but the other one needs an id to work. In order to assign the module just to a page i think i need to assign every page my component has to a menu item.
But my problem is that i don't know how to assign my page that shows a specific product the variable id to make it work.
The Joorthodox way, i guess, would be to control the module availability from the module manager in administator page, where you can assign it to certain pages/menu items only.
Thus summarizing, create a menu item type for that page assign it to a menu item which in turn will be your module control switch for that page.
Another approach could be a control directly to the joomla module renderer. An example can be found here: joomla-is-there-a-module-render-plugin-event
One method would be to set the module to be hidden on that page using CSS.
Go to views/view_name/tmpl/default.php and within the tags at the top, add the following code in:
$doc = JFactory::getDocument();
$doc->addStyleDeclaration(" #element_id { display: none; } ");
You will need to inspect the module using a tool such as Firebug, Chrome Dev Tools or another tool depending on which browser you're using, and change element_id to whatever suits your needs.
Hope this helps
Just use Advanced Module Manager and assign your module by URL's not just by the menu link, it works for me to hide and show a module inside the different pages of the same component

How to add a menu to login form module in Joomla 1.7?

I am intrested in changing the joomla default Login module to show a menu as a greeting in the login module,
so that menu will contain links for profile management and stuff from that sort.
I have tried to add a module position inside the module (dawg!)
But that went down the drain.
And i'm not intrested in adding manual links to pages because they might change.
Any ideas guys?
Thanks in advance,
Eric
put this code in login module template where you want to show the menu
$module = JModuleHelper::getModules('xxxx');
// xxxx is any virtual position, no need to create it anywhere.
echo JModuleHelper::renderModule($module[0]);
and enable a menu module at position 'xxxx'.
I hope this will work.
You are going to have to create a custom module to do that. There is no way to do it with the parameters you have given. You could use the module alternative layout to add in some links to the login module, but you can't add a menu to it without rewriting the entire module.

Resources