×

Notice

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

TOPIC: Adding multiple picture for the hotspots?

Adding multiple picture for the hotspots? 12 years 4 months ago #14617

  • Pasapum Naonan
  • Pasapum Naonan's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi, just bought the scripts a few days. The component is really great.

However, I'm looking for the way to add multiple picture for the hotspots on the submitting page. (currently, there is only a single image to upload)
I believe, I would have to modify some code on the following file. Correct me if I'm wrong.
...\com_hotspots\views\hotspot\tmpl\form.php
And I will also have to add more fields to the table"hotspots_marker" in the database. (picture1, picture_thumb1 for example)

I would want the current picture upload to use as a logo picture of the hotspot and planning to be able to add about 10 - 15 more picture for the spots.
So when the user click to see a single spot, for example;
...index.php?option=com_hotspots&view=hotspot&catid=1:pubsbars&id=2:&Itemid=171
they will then be able to see all the picture in the image tab on the single view page.

Can you guide me which file need to be modify?
Thank you in advance.

Adding multiple picture for the hotspots? 12 years 4 months ago #14618

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Pasapum,
Well my plan for this actually is to create a new photo extension that will integrate with Hotspots and you could upload 20-30-100 images for a location or a video...

So for now if you want to modify the component you will need to modify the form and add the upload buttons for more images and then you will also need to modify the controller save function and add the logic for each image there. And yes - don't forget to add the db fields for the new images.

Kind regards,
Daniel
  • Page:
  • 1
Time to create page: 0.105 seconds