Add title et alt tag in the menu

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/9/2012 10:20:49 AM
Gravatar
Total Posts 3

Add title et alt tag in the menu

Hello,

I'm a recenly mojoportal user. Thanks for this great cms.

I would like to know how I can add the "title" and the "alt" in <a href> of the menu.

 

Regards

André

3/9/2012 2:29:06 PM
Gravatar
Total Posts 18439

Re: Add title et alt tag in the menu

Hi,

There is not a separate property in page settings for a tooltip (aka title) and if we used link text for the title it would be bad for accessibility because screen readers would read both the link text and the title and this double reading is annoying for users of screen readers. Even if the title is a little different from the link text its still pretty annnoying on a large menu to have it read both so we don't use it by default on the main menu.

We actually use the title property (since it is not used for title on menu items) to store a custom css class so that customer per item css classes on menu items are supported this way.

However you can change it to not use the title property for custom css class by setting

UseMenuTooltipForCustomCss="false" on the mojoMenu or mojoTreeView in theme.skin

Then "I think" it would use whatever you put for the custom menu css class in page settings as title (or alt if using images) but if it is blank it will not render a title.

I generally don't recommend using images in menu items for large menus unless you are doing it by css with css sprites and using the images as background so that only one image is needed for it. When you use spearate images with <img elements it makes the page have lots of extra http requests to load all those images which is bad for performance. Its ok maybe for small sites with only a few pages in the menu.

Hope that helps,

Joe

3/10/2012 9:47:30 AM
Gravatar
Total Posts 3

Re: Add title et alt tag in the menu

Thanks for your answer.

But for SEO, it's better to have this tag ?

3/10/2012 11:14:35 AM
Gravatar
Total Posts 18439

Re: Add title et alt tag in the menu

Not that I'm aware of.

3/11/2012 3:32:06 AM
Gravatar
Total Posts 3

Re: Add title et alt tag in the menu

Ok,

thank you for your help, you made good job with mojoportal.

You must sign in to post in the forums. This thread is closed to new posts.