- Posts: 264
- Thank you received: 1
tootip for route option
- hagen_fenris
- Topic Author
- Offline
- Elite Member
is there a way i can set a tooltip to the route option?
I attached a image to show where i wanted a tooltip to show up.
Regards
Fenris
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
I added img tag, and alt tag.
You can try to add title tag (alter your page), and check, whether or not it will enough to you. If yes, I'll add alt text into title tag text.
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- hagen_fenris
- Topic Author
- Offline
- Elite Member
- Posts: 264
- Thank you received: 1
how should i add the title-tag?
i tried rereplacer from nonumber.
But that didn`t worked.
Which file do i need to edit?
Regards
Fenris
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
Find object for icon, and add title attriute into a tag, and or into img tag
Or the other very simple way.
Open my extension zip archive.
Folder: com_zhgooglemap\site\helpers
Open file placemarks.php
Find text "start.png"
You found the string, which I form for this toolbar
For test purposes add title attribute into a tag.
For example
was
$returnText .= 'setRouteDestination'.$currentArticleId.'(0);';
$returnText .= ' return false;"><img src="'.$imgpathUtils.'start.png" alt="'.JText::_('COM_ZHGOOGLEMAP_MAPMARKER_ACTION_START').'" /></a>\'+'."\n";
$returnText .= '\'</div>\'+'."\n";
and changed
$returnText .= 'setRouteDestination'.$currentArticleId.'(0);';
$returnText .= ' return false;"><img src="'.$imgpathUtils.'start.png" title="Hello world!" alt="'.JText::_('COM_ZHGOOGLEMAP_MAPMARKER_ACTION_START').'" /></a>\'+'."\n";
$returnText .= '\'</div>\'+'."\n";
And upload it.
Or change it on server by filezilla
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
Change to
$returnText .= '\'<a href="#" title="Hello world!" onclick="';
$returnText .= 'setRouteDestination'.$currentArticleId.'(0);';
$returnText .= ' return false;"><img src="'.$imgpathUtils.'start.png" alt="'.JText::_('COM_ZHGOOGLEMAP_MAPMARKER_ACTION_START').'" /></a>\'+'."\n";
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.