×

Notice

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

TOPIC: Customizing InfoWindow

Customizing InfoWindow 12 years 9 months ago #12945

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

I would like to modify the way infowindow is showing the information to something like this:



I am not using the regular 'insert image' option, I am using the 'Short Description' field. For example:



because I need to include a link to that image.

Can you guide me to the code I have to modify?


Thanks in advance.

Customizing InfoWindow 12 years 9 months ago #12955

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Float your image to the left and it should work.

Customizing InfoWindow 12 years 9 months ago #12961

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
I tried that but the address remains on top of the image.

Customizing InfoWindow 12 years 9 months ago #12962

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
What code I have to modify to decrease the width of the infowindow?

Customizing InfoWindow 12 years 9 months ago #12976

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
line 375 in Hotspots.js (media/com_hotspots/js) - you have width: 300px.

And about the address - either you have the image first in the code and you float it left, then you float left the paragraph with the text. Or you first float right the paragraph with the text and after that float left the image. (search a tutorial about css float on the web)

Customizing InfoWindow 12 years 9 months ago #12985

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
I will decrease the width of the infowindow, because If I decrease the size of the image, the images from the search results will be affected as well.

Thanks for the info man !!!

Customizing InfoWindow 12 years 9 months ago #13055

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
I changed line 375 in Hotspots.js (media/com_hotspots/js) - from width: 300px to width: 200px.

Infowindow is showing a size of width: 248px

:/

Any other section to change the width of the infowindow?

Customizing InfoWindow 12 years 9 months ago #13067

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
well, that is width...
I assume that the additional 48px are 24px padding on the left and right....

Use firebug or chrome's console to show you what is being calculated by the browser.

Customizing InfoWindow 12 years 9 months ago #13068

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
fixed.
  • Page:
  • 1
Time to create page: 0.199 seconds