×

Notice

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

TOPIC: Is possible Override in hotspot?

Is possible Override in hotspot? 7 years 6 months ago #35845

  • MC Virtuox
  • MC Virtuox's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
Hello good morning!

Is possible add a id="" as override in hotspot view (read more)? You have a id for each hotspot in menu side bar id="hs-hotspot-id-16", it is great. How can I add a Id="" like it in read more view? I this moment have only the id="hotspots" in this view for all hotspot. How can I do a override for it be id="hotspots-id-16"?
I will be very grateful for your help!

Thanks so much

Is possible Override in hotspot? 7 years 6 months ago #35846

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You could do this with an override. You already have the id in the hotspots template, so just place it in the id tag and you should have what you want.

Regards,
Daniel

Is possible Override in hotspot? 7 years 6 months ago #35849

  • MC Virtuox
  • MC Virtuox's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0

Daniel Dimitrov wrote: You could do this with an override. You already have the id in the hotspots template, so just place it in the id tag and you should have what you want.

Regards,
Daniel


Thanks for reply Daniel!
I can find a id for each hotspot only in first view, in the side bar. I can not find a id="" for each hotspot in read more view, in this view I only see a id for all hotspot, a iqual id="hotspots" for all. It is because I need customize each hotspot view (read more) that view when we click in read more. sorry, how can I do this override, you can help me please?
I ll be very grateful!

Is possible Override in hotspot? 7 years 6 months ago #35851

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I don't understand what you mean? Are you talking about this page?
demo.compojoom.com/hotspots#49.0068901/8...527/5/hotspot/100610

Every item in the menu on the right has an id?

Is possible Override in hotspot? 7 years 6 months ago #35852

  • MC Virtuox
  • MC Virtuox's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0

Daniel Dimitrov wrote: I don't understand what you mean? Are you talking about this page?
demo.compojoom.com/hotspots#49.0068901/8...527/5/hotspot/100610

Every item in the menu on the right has an id?


Good Idea Daniel I will show you the link for the view I am talk to: Need a id="" for each this view

https://demo.compojoom.com/hotspots/87-parks/10677-10441-lorem-ipsum
https://demo.compojoom.com/hotspots/87-parks/10677-10441-lorem-ipsum

Is possible Override in hotspot? 7 years 6 months ago #35853

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
As I said you can create a template override for this.
docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

And add the hotspot id to that div.

components/com_hotspots/views/hotspot/tmpl/default.php - this is the file you need to craete an override for.

Regards,
Daniel

Is possible Override in hotspot? 7 years 6 months ago #35856

  • MC Virtuox
  • MC Virtuox's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0

Daniel Dimitrov wrote: As I said you can create a template override for this.
docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core
And add the hotspot id to that div.
components/com_hotspots/views/hotspot/tmpl/default.php - this is the file you need to craete an override for.
Regards,
Daniel


Thanks Daniel for this instrution, So I try it, I find in the line 339 this div I need the override:
<div id="hotspots" class="hotspots compojoom-bootstrap">

But i can not know how I add a number for each ID from each hotspot in the existent id="". I need that div work with this override i ll show under, but I can know what, sorry

Note for this increment "id-01":
<div id="hotspots-id-01" class="hotspots compojoom-bootstrap">
<div id="hotspots-id-02" class="hotspots compojoom-bootstrap">
<div id="hotspots-id-03" class="hotspots compojoom-bootstrap">

<div id="hotspots-id-04"... ID from hotspot marker

Need it work this way with each ID from each hotspot.

What I need is.
Add custon CSS for each hotspot in this view. Different backgroud-color, different color, font. Each hotspot will have your custom css.

Can you help me. I will be bery grateful

Is possible Override in hotspot? 7 years 6 months ago #35861

  • MC Virtuox
  • MC Virtuox's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0

Daniel Dimitrov wrote: I don't understand what you mean? Are you talking about this page?
demo.compojoom.com/hotspots#49.0068901/8...527/5/hotspot/100610


Hello Daniel, good mornig!
Please, let me know if you undastand my override! I think it is no too difficult to do, but I can not get a way to do it. In the before post habe some more explications. It is possible?! If you can help me know I ll be very grateful!

Is possible Override in hotspot? 7 years 6 months ago #35864

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
change it to:
<div id="hotspots-id-<?php echo $this->hotspot->id; ?>" class="hotspots compojoom-bootstrap">

Kind regards,
Daniel

Is possible Override in hotspot? 7 years 6 months ago #35865

  • MC Virtuox
  • MC Virtuox's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0

Daniel Dimitrov wrote: change it to:

<div id="hotspots-id-<?php echo $this->hotspot->id; ?>" class="hotspots compojoom-bootstrap">
Kind regards,
Daniel


Thanks so much for all your help and attention Daniel.
It work very well !!! Now i can say YES ..hotspot is for my project and I ll upgrate for PRO! nice!
Thanks
  • Page:
  • 1
Time to create page: 0.116 seconds