I want to add the rel="nofollow" to the links on joomla menu item. This option is not available on administration backend. The robot add the attribute "nofollow" to the meta data of the page on that menu item not the actual link. Any help would be appreciated.
I'm using joomla 2.5
You have to override method that show your menu items. In website there is many articles about that.
Try these link:
http://forum.joomla.org/viewtopic.php?t=470383
http://extensions.joomla.org/extensions/structure-a-navigation/site-links/8733
You don't really need to add any parameters to your menu items, you can accomplish this by overriding your menu module. In the menu module, check for the value of the robots parameter then add the appropriate rel to the link it creates.
Related
I want to add an existing page to the header menu via backend. How can I do that? what functions are available to achieve this?
And I need to add it once to the link at the end of it.
Thanks.
Situation: I have old site Agroteplica based on Joomla 2.5. I need to add custom html-code to menu items (for example, icons, or bold). I need unic icon for each menu item, so it's no use to edit php-template of page.
If I try to use html-code in menu item header - Joomla clear it, only text remains. I tried to find some manuals, and added line filter="raw" to file modules.xml:
<field name="title" type="text"
description="COM_MODULES_FIELD_TITLE_DESC"
label="JGLOBAL_TITLE"
maxlength="100"
required="true"
filter="raw"
size="35"
/>
But it didn't give any effect either.
Question: what I need to do to make it work? :)
Here is what Joomla provides for cases like this:
In Menu Manager -> Menu Item Edit
Editing each menu item, you will see the "Link Type Options" section at the right column.
See screenshot:
As you see in the screenshot, this group of settings contains the follow options:
Link Title Attribute : You can add your custom Title attr to the menu item's a tag.
Link CSS Style : You can add a custom css class for this menu item's a tag.
Link Image : You can add a custom image for this menu item.
Add Menu Title : If you add an image, you can choose to hide the Title of the link (setting = No), or choose to show both Image and the title (setting = yes (default)).
For you case, you can either choose you custom images-icons that should be displayed next to your menu items title. If you want bolds or other styling options, you can add your custom css rules to the items you want, and then add your css styles at your template's css.
For example you have decided that for some of your menu-items you would want their text in bold. Then you could do as follow:
1 .Give them a css class to all of them, in the Link CSS Style field: e.g. 'bold-items' (without the '').
2. Open your template's css file with a plain text editor and add the following rule at the end of the document:
.bold-items {
font-weight:bold;
}
Notice: The above settings might have no effect at all, if you are using a 3rd party menu module, or your template contains overrides for the default menu module. In such case you will need to add further template overrides for the menu module in use, in order to implement the above settings.
*Not sure what you mean with menu item header and how you did try to add html-code to it.
*Update / Answer to your comment:
You never mentioned about video in your question. You asked about adding icons and making text bold. What do you mean with headers and what kind of code and where are you trying to insert it? Are you aware of what is involved in the process from the moment you create menu items in the menu manager till you see those in the front-end of your website?
Following my answer above and assuming you have basic knowledge of the workflow (menu module, template overrides, css) you will be able to add images/icons or custom styles for each menu item. If you want to have video inside your menu, then you...
... will need a more sophisticated menu module. These are called Mega Menus and allow the user to display various types of content inside their menus, like modules, in various ways. You should either install a such module or create one on your own.
i am working with Joomla 2.5 and K2, in a template i bought.
1st.
i got a an accordion module that display several items into the main page, when i click on any of its elements it redirects me to: http://uxmalrecordscom.ipower.com/index.php/component/k2/item/452-the-dream-master which is correct. (.../index.php/component/k2/item/...)
2nd.
I set this same module to appear into another page called Discography, and when i click in any of the accordion elements it sends me to: http://uxmalrecordscom.ipower.com/index.php/discography/item/452-the-dream-master this URL is different than the first one and is causing me issues to display the content of the Item. (.../index.php/discography/item/...)
My querstion is how can i change the URL for the second case the "Read more" links to avoid display the content of the item in the same page or main menu seccion? or how to make the 2nd to have this kind of URL (.../index.php/component/k2/item/...) instad of (.../index.php/discography/item/...)
Note: Its the same module used on 2 different pages.
Thanks!
The way to solve this is to create a new Main Menu item called "Digital" then select as menu type = "K2 categories" and select the "Digital" category, this will cause all the K2 items listed under "Digital" displays on a different URL so now the url is (.../index.php/digital/item/...) instad of (.../index.php/discography/item/...) and is working awesome!
Hope this can help someone, this solved the problem to me.
I have a situation where we have a "user menu" on the top of the page.This menu is shown on every page with a module.Now in order to set up breadcrumbs properly I need to have a menu item which is published but not visible to any type of user whether guest or registered..
Is it possible in Joomla to have a menu item published and hidden yet accesible via URL??
You will have to write a different module which had most of the functionality of your custom module. In the new module you can change the code in a way so that you dont show the required menu.
I think you should create a menu, setup user groups, view level. Create a menu item, and try to access via menu alis - link.
Good luck
Yes, Menu's are independent of the modules that display them, it's possible to create a menu and not create a menu module, how, depends on the version of Joomla you are using.
That's why there are so hits when you Google — "Joomla Hidden Menu" There is even an article on Joomla Doc's on "Menus" that discusses hidden menus briefly.
So, the normal approach is to create a new Menu with a name like "Hidden" or "Shortcuts" and have the menu items created in that menu, then don't assign a menu module for it.
I am trying to reorganize my navigation menu. I want it to have only one product page button and a couple of CMS pages. I don`t want any categories on it. I know how to put additional buttons to the menu, but if I try to remove the category the whole menu disappears. Any suggestion? I am runing the latest magento with a custom theme.
P.S. I tried to edit the top.phtml site but I am not very confident with coding.
Thanks
you can change menu as you want to customize and want to add your link
app\design\frontend\your_package\your_theme\template\page\html
add your link to topmenu.phtml
hope this will sure help you.
You can read this tutorial - Adding Page Links to the Main Menu