×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: category icon image alt text box

category icon image alt text box 11 years 10 months ago #19231

  • Tabitha Gallman
  • Tabitha Gallman's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Daniel,

I recently asked about the pop up text box that displays for each hotspot, and you explained about that being a Google style. Now I am wondering (and hoping) that I can customize the code for each category image icon so that the alt text doesn't show all the detail that I input for each category. I would love to be able to just have the alt text for the category image icons (at the top of map) to only display the name of each category when I hover my mouse over them.

category icon image alt text box 11 years 9 months ago #19243

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey there,
Why are you entering all this description text if you don't want it to be visible for the user?
Daniel

category icon image alt text box 11 years 9 months ago #19258

  • Tabitha Gallman
  • Tabitha Gallman's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hi Daniel,

:) good point. Actually I would like for the text to show up on the slide out window on the map for each category - just not when you hover over the icons at the top. Is that possible?

Thanks.

category icon image alt text box 11 years 9 months ago #19277

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You'll need to create a template override of the following file:
components/com_hotspots/views/hotspots/default.php

here on line 190 you have this code:
                    <span data-id="<?php echo $cat['id']; ?>" id="cat<?php echo $cat['id']; ?>"
                          class="hotspots-category-item hasTip "
                          title="<?php echo $cat['text'] ?>::<?php echo ($cat['cat_description']) ? $cat['cat_description'] : ' '; ?>">
                                <img border="0" alt="Tooltip" src="<?php echo $path; ?>"/>
                            </span>
change it to
                    <span data-id="<?php echo $cat['id']; ?>" id="cat<?php echo $cat['id']; ?>"
                          class="hotspots-category-item hasTip "
                          title="<?php echo $cat['text'] ?>::">
                                <img border="0" alt="Tooltip" src="<?php echo $path; ?>"/>
                            </span>

That should do the trick :)
Regards,
Daniel

category icon image alt text box 11 years 9 months ago #19291

  • Tabitha Gallman
  • Tabitha Gallman's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Thank you! Thank you Daniel...that did it - it's exactly the way I wanted it.

category icon image alt text box 11 years 9 months ago #19293

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Awesome! don't forget to leave a review over here:
extensions.joomla.org/extensions/maps-a-...-locations/maps/9468

Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.116 seconds