Integration of a footer menu in a Joomla! template? - joomla

I didn't find the answer of my question in stackoverflow, so excuse me if this is a duplicate.
I need a step by step guide on How to create a footer menu in Joomla!, and HOW TO USE THIS MENU LATER. I actually created the menu but I don't know how to use it in a template. Please note that I'm new to Joomla! and just use it for the SEO it has.
Thanks in advance! :)

A footer menu is just like any other menu, same concept.
First of all, you need to create the markup in your index.php in your template folder like so:
<div id="footer">
<jdoc:include type="modules" name="footer" />
</div>
Then, in the Joomla backend, create a new Menu type and call it something like "Footer Menu". Once done, start creating a few menu items and assign them to the menu type you created before.
Then:
Create a new module,
Set the type to menu
Open the module in the Module Manager and on the right hand side in the parameters, there will be an option to select which menu you wish to use. Choose the one you have created.
Set the position to footer (assuming that is the name of the position you're using for the footer. If not then use whatever is required)
Publish the module and assign to all menu items
Save
On your website you will see the menu you have created, it will look rather bad but you can now start styling it using CSS to make it look better
Hope this helps

Related

How to attach ItemID to joomla footermenu

I am don't know joomla, but familiar with wordpress & PHP & wants to change some links in my clients existing project.
I have a menu which is a link like http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6&Itemid=107 while calling it from top navigation menu.
developer has taken same link in footer but it redirects to
http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6
Now i want ItemID in footer link also.
My Site URL is http://www.smarti.com.sa/
In that please Products > Microsoft.
Please give solution
As per your post, Your menu link for now is : http://www.smarti.com.sa/index.php?option=com_content&view=article&id=6 .
But, you want to use this like : http://www.smarti.com.sa/index.php/your_menu_name.
You can use aliases of menu links.
You can find aliases here, When you create/edit a menu link from backend of joomla you can see an alias associated with it. You can also find Aliases of menu link from grid screen of you menu type.
For showing Menu in front end you have to create CUSTOM HTML module, You can find how to create Custom HTML module here : http://vinaora.com/2012/09/how-to-add-custom-html-to-your-joomla-site-2/
Now, How can you find HTML to write in thst Custom HTML Module? So, for this you can go the page of front-end where that menu is visible. Now prss CTRL+U, you will see the HTML of that page. Here, you have to find the HTML of those menus.
In this HTML, you will find the links like : index.php?option=com_content&view=article&id=6
Now, you have to replace these links with index.php/alias_of_your_menu.
Now paste the edited HTML in Custom HTML module and save it by selecting a proper Position.
You can use joomla menu module in the footer.
Joomla also has the option to display second level menu items in a menu module.
To do this:
Set the Start Level to "1" and the End Level to "1".
That's all. Good Luck.

How can I add PHP to a Joomla menu item?

Here's what I'm trying to do:
In Joomla 3.1, I'm using the K2 component to build a full content-driven news website.
All is well, but I just don't like the K2 Login module, and therein lies the rub. That module automatically generates two key links:
• Add Item
• My Page
I want to unpublish the login module and add both of these links to a standard Joomla menu. It's easy to add the "add item" link because it's essentially static.
But the "My Page" link is dynamic. I've found the PHP code that generates it:
<?php echo JText::_('My Page'); ?>
But I don't know how to make a plain old Joomla menu item -- as in, one that I add through the menu manager -- to generate that code.
Note: It's important that I be able to use the Joomla menu structure because I'm also using Joomla's access control to hide or show these buttons. Meaning, I've added a "contributor" usergroup, and I only want them to see these links.
Any bright ideas would be much appreciated! Thank you!
You should go to the template you are currently using, in their you create a html folder.
In that folder you create a mod_menu folder.
Than you got your Joomla root > modules > mod_menu.
And copy files which are inside and drop them in the html > mod_menu folder.
Now you can edit the mod_menu to your favors with a rewrite.
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
Hope this helps you.

Altering the position of an article in Joomla 1

I am currently updating a web page for a company who are still using the very old Joomla 1. When creating a new menu item, I have found that an article is needed in order to create the page.
My problem is the fact that there is no option to alter the location on the page of the article. For modules, this is not a problem as there is an option which can be used to choose the specific location. For articles there is no such option, which has been of grave annoyance as they simply crop up here, there and everywhere!
If it is of any assistance the theme which is being used is contained here: http://demo.rockettheme.com/?template=versatility4
Regards,
Chri3
I dont think this has changed in any version of Joomla, but it has been so long since I have looked at a Joomla 1 installation, I could be way off. Additionally, I dont have one to look at for reference.
So here goes my scientific wild &^#%! guess. When you create a menu from the menu manager in Joomla, you have to select a "menu item type". This could be a single article layout, category layout, blog layout, or link to another installed component, ect... I think its one of the first options in the menu item manager.
Then once you select "single article" there should be a dialog box that allows you to select or manually enter the article you would like to display for that menu item. Hope this helps!
Open up your templates index.php file and look for the following code...
<jdoc:include type="component" />
This is the call to the "main component" in your case would be the content component. You can move this anywhere within index.php and your article will display there

joomla 2.5 - removing frontpage content block for joomlaxtc website

I have tried to look around all over the place to edit the joomla frontpage. Im using a template from joomlaxtc which is another reason why I believe im having trouble as the coding is a little different.
What I'm trying to achieve is remove the component or article area for my Joomla 2.5 front page.
here is the website
http://colmandesigns.123abc.co.nz/tyrelink/
as you can see the 'coming soon' white text box I want to remove however I only want to remove it for the front page not the rest of the pages.
I can't get your site to come up, but the home page of a joomla site is generally determined by the default item on your main menu.
From the admin Control Panel:
Choose Menu->Main Menu
Locate the menu item on the list that has a star in the "Home" column
Click on the menu item, and from what you see, determine what the article is
Go to that article, and edit there.
This presumes that your home page is an article, as is the case in a standard Joomla site, and doesn't account for anything your template may do in terms of features or settings,
Simply go to the template manager and go to the advanced parameters and see the show component on home page and select NONE
If you want to remove the "coming soon" bit, then go to the module that holds the "coming soon" bit. On the left, you should see "Module assignment." Click that, and choose "no" for Home Page: assign to.
This video may also be helpful.
Your template may have configuration to hide main content block from frontpage but if not then it can be hidden by using code block below on index.php or your php file which will define template layout.
<?php if (JRequest::getVar('view') != 'featured'): ?>
<div id="maincontentdiv"><jdoc:include type="component" /></div>
<?php endif; ?>

How to edit a footer in joomla: using media manager image folder?

I am trying to include a footer on a joomla website and need to reference an image. Ideally it would be editable by the client.
At the moment I have a template which has an index.php file, but if I reference the img src to be in the images folder, it does not reference the template images, but the media manager folder.
What is the best way to approach this please, for maintinability and also to be safe from updates and overwriting them.
You need to create a new "CUSTOM HTML" module and place following code in it. You can even use editor to modify it and upload new pics. I recommend using JCE editor, makes things much simpler.
<div style="text-align:center">
<img src="/path/to/your/images.jpg" />
</div>
So you need to do the following:
Login to Back-End
Go to Extensions->Module Manager
Click "New" button
Click on "Custom HTML"
Configure you module the way you like it. Set "Show Title" to "NO". Make sure you position it in the right spot, most likely you need to use "footer" or "bottom"... this depends on template.

Resources