Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Titles for links in html code
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Titles for links in html code
#11488
Titles for links in html code 13 Years, 9 Months ago Karma: 0
Hello!

Sorry, My english isn't good.

I have problem with showing titles in html code.
Now I have that soure code:
Code:

<li class="ux-menu-item-main ux-menu-item-parent ux-menu-item101 ux-menu-item-parent-pos0"><a href="/" class="ux-menu-link-first current ux-menu-link-parent">INDEX</a>


and I want get that result:
Code:

<li class="ux-menu-item-main ux-menu-item-parent ux-menu-item101 ux-menu-item-parent-pos0"><a href="/" class="ux-menu-link-first current ux-menu-link-parent" title="MY CUSTOM TITLE">INDEX</a>


In My "Menu Manager" I written "MY CUSTOM TITLE" to "Link Title Attribute" but that isn't show it.

I have no idea how to get this. Please, help me


My 2nd question. It's possible to change classes for Ext Menu? Oryginal classes is so long, I want shorter classes like this "menuParent pos0". If it's possible where i can change this? and maybe how?
The administrator has disabled public write access.
 
#11490
Re:Titles for links in html code 13 Years, 9 Months ago Karma: 760
Hello,

The following file contains menu template:

<joomla_directory>/modules/mod_ariextmenu/mod_ariextmenu/templates/menu.html.php

you can edit it that adapt menu for you needs.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#11503
Re:Titles for links in html code 13 Years, 9 Months ago Karma: 0
Thank you for reply,

I know now how to change names of classes, but I don't know whats I must change for title anchor work good.


I found in /modules/mod_menu/tmpl/default_url.php code like this:
Code:

// Note. It is important to remove spaces between elements.
$class = $item->anchor_css ? 'class="'.$item->anchor_css.'" ' : '';
$title = $item->anchor_title ? 'title="'.$item->anchor_title.'" ' : '';
if ($item->menu_image) {
$item->params->get('menu_text', 1 ) ? 
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
$linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';

else { $linktype = $item->title;
}

switch ($item->browserNav) :
default:
case 0:
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
break;
case 1:
// _blank
?><a <?php echo $class; ?>href="<?php echo $item->flink; ?>" target="_blank" <?php echo $title; ?>><?php echo $linktype; ?></a><?php
break;



I think is code for show title anchor, but I'm not sure...
I'm totaly newbie in php and I don't know how to change this code for ARI FRAMEWORK.

Can you help me again, please?


Edit:
Thank You very much for help
Last Edit: 2011/03/02 18:40 By Seifer.
The administrator has disabled public write access.
 
#11508
Re:Titles for links in html code 13 Years, 9 Months ago Karma: 760
Add the following code:

Code:


if ($menuParams->get('menu-anchor_title'))
  $aAttr['title'] = $menuParams->get('menu-anchor_title');



after this code:

Code:


if ($aClass)
  $aAttr['class'] = $aClass;



in menu.html.php file.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1