×

Notice

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

TOPIC: Show all categories/icons on the map by default

Show all categories/icons on the map by default 13 years 3 months ago #13264

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1

Show all categories/icons on the map by default 13 years 3 months ago #13269

  • Eliecer Marchante
  • Eliecer Marchante's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
That feature is coming in future releases. We will be able to configure hotspots to show all categories on the map by default.

Show all categories/icons on the map by default 13 years 3 months ago #13270

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
ok thank you

Show all categories/icons on the map by default 13 years 3 months ago #13319

  • Drew Kraus
  • Drew Kraus's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Yes. Defaulting to show all categories by default would be a VERY welcome feature. I am making a tourism site for a city and they want a master map that visitors will see with everything shown and then can go through the categories. Or, perhaps, a way to show groups of categories? Say.. 1, 2, 4-6, 9, etc?

Show all categories/icons on the map by default 13 years 3 months ago #13321

  • Don Moore
  • Don Moore's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0

Alex wrote: Is there a way to configure hotspots to show all categories on the map by default? Right now you either have to click the icon of the category to show its locations on the map, or click the slide out menu from the right and hit the checkbox to show all categories. Is there a way to enable this by default so when people come to the map it automatically shows them all?

When visiting your site it seems as though you have figured out how to do this. Would you mind sharing your solution?

Show all categories/icons on the map by default 13 years 3 months ago #13365

  • Carst Komdeur
  • Carst Komdeur's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
I'm curious to about this. Anyone knows how to do this?

Show all categories/icons on the map by default 13 years 3 months ago #13368

  • Drew Kraus
  • Drew Kraus's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I contacted the original creator of this thread and yes.. his programmer came up with a solution. He replied to me this weekend and said he'd try to get his programmer to post a follow up to this thread on how to achieve this goal.

Show all categories/icons on the map by default 13 years 3 months ago #13369

  • Bruce Hatton
  • Bruce Hatton's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 62
  • Thank you received: 0
Me too.

Show all categories/icons on the map by default 13 years 3 months ago #13370

  • Alex
  • Alex's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
Hi guys,

Talked to our programmer and here is what he gave me:

views/hotspots/tmpl/default_menu.php

add in beginning:
<script type="text/javascript" src=" ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js "></script>
<script type="text/javascript">
//<![CDATA[
jQuery.noConflict();

jQuery(function($) {
$("#toggle-menu").click();
$("#all-hotspots").click();
});
//]]>
</script>
The following user(s) said Thank You: Fokke Zijlstra

Show all categories/icons on the map by default 13 years 3 months ago #13371

  • Bruce Hatton
  • Bruce Hatton's Avatar
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 62
  • Thank you received: 0
Thanks Alex!

Show all categories/icons on the map by default 13 years 3 months ago #13372

  • Carst Komdeur
  • Carst Komdeur's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
Works great, but it is possible to leave the slide panel closed?

Show all categories/icons on the map by default 13 years 3 months ago #13428

  • leanne
  • leanne's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
When is this going to be in a released version of Hotspots, i dont want to hack the code if at all avoidable !

THANKS

Show all categories/icons on the map by default 13 years 3 months ago #13468

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Leanne,
Hack it for now... It won't work as the guy did, but anyway. And loading jquery just to fire a simple click event.... :/

Show all categories/icons on the map by default 13 years 3 months ago #13489

  • scudy nick
  • scudy nick's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
i'm very interested to this function to ! especially choose thedefaut category :

- all or 1-5-8 ...

Show all categories/icons on the map by default 13 years 2 months ago #13861

  • Gregory S.
  • Gregory S.'s Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
I know it's a hack, but this really saved me. I look forward to this being an option in a future release. Thanks guys!

Show all categories/icons on the map by default 13 years 2 months ago #13951

  • Vincenzo Mecucci
  • Vincenzo Mecucci's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi everybody!
Thanks Alex for your advice. I would like to display only the list of hotspots that are part of the class that I set as default in the menu. Basically I need to simulate the event click on a category.
Can you help me?
Thanks and excuse me for my poor english!
Vincenzo

Show all categories/icons on the map by default 13 years 2 months ago #13953

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
What do you mean with a class? In the menu you can select which category you want to show first. Is this what you want?
Daniel

Show all categories/icons on the map by default 13 years 2 months ago #13954

  • Vincenzo Mecucci
  • Vincenzo Mecucci's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Yes, I write the first category that I want, and it's ok, but I would like to see the details list of the hotspots in the right panel. I want to simulate the click on icon category.
I hope you understand what I mean!
Thanks

Show all categories/icons on the map by default 13 years 2 months ago #13957

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well this is the code:
window.fireEvent('hotspots.category', 3);

try to put in media/com_hotspots/js/views/hotspots/init.js

just before the closing }); line

Cheers,
Daniel

P.S. 3 - is the number of the category - replace it with the category that should show in the menu.

Show all categories/icons on the map by default 13 years 2 months ago #13958

  • Vincenzo Mecucci
  • Vincenzo Mecucci's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Yes! good! but... the last thing: how can I change the number "3" to get the number of the category that I write in the menu setup?
I try to explain: I have 2 menu items for 2 categories. Now when I click one of this the map shows the hotspot of that categories, but I would like to list the hotspot too.
thanks too much for the patient
  • Page:
  • 1
  • 2
Time to create page: 0.147 seconds