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

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.

Related

Cannot find registration form in Joomla

I have created new Login module and linked to the login menu in Joomla 3.4.1. Also created registration menu as described in docs and tutorials. The login form is showing - I have assigned the position to show in the template from module manager but I cannot view registration form - since there is no registration module. The registration page is showing empty with header and footer but with no body. Is there any way to solve this?
Is the module position valid for your template?
You van check this by enabling the "preview Module Position" under the template options. To view the module position go to your home page e.g. hhtp://www.myhomepage.com/index.php?tp=1. Please note the tp=1 ..
Now you can check if the module positions exists on your site.
Just let me know.
kind regards.

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.

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

In a custom Joomla! template, how can I determine whether I am on the home page?

I am trying to create a custom template, but I want the template to look a little different for my Joomla! homepage/frontpage. Is there a easy boolean-type expression I can use to determine whether I am on my site's homepage?
That way, I can just say if ($on_homepage) { [custom homepage html] } else { [regular template] }
Thanks in advance!
You can create a separate template for your homepage. More details here.
This is very easy, just create 2 templates. One for your homepage and one for the rest of your site. Then install both, make sure you give them a descriptive name in their xml file so you know the difference.
Once they are installed you can set a default template that would be site wide. Then choose/click on your homepage template and it's options will load up. On the bottom left you can select the menu items where this template will be visible. This setup is very much like the way in which you define where modules are shown.

How do I create a Magento module or widget that will appear on the shopping cart page?

I’m having a lot of trouble understanding how to create a module that will add an extra button to the shopping cart page. I found lots of info on payment modules and stand-a-lone page modules, but nothing for this.
I simply need to add a button underneath the regular “Checkout” button that can post item data to another website. I’ve created a module but can’t get Magento to recognize it and display the button on that spot. Any help would be greatly appreciated, even just sending me to an existing tutorial that I haven’t been able to find. Thanks.
A custom module is probably overkill for this. Module means a very specific thing in Magento. It's a mechanism for inserting custom code into Magento's standard operations. All you want to do is add a button to the cart page. Editing the file at
./base/default/template/checkout/cart.phtml
(substitute your theme/site name if not using base or default)
is the place you'll want to start looking. Just find the phtml file that corresponds to the place you want to insert your custom HTML and have at it.

Resources