×

Notice

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

TOPIC: second image for markers

second image for markers 12 years 8 months ago #15388

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

I am planning to create another field in hotspots database containing a link to a marker image. What I wanna do is create a conditional: if that field is empty, then use the marker image from the category, otherwise use the image from that field.

I really need a second image, and if this can not be done from hotspots interface, i will have to do it manually.

What code I need to change to achieve my goal?

Re: second image for markers 12 years 8 months ago #15390

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm actually planning to have a parameters field and store the marker icon in there...

You can add a new field to the db. And then in the json/tmpl/default view you will need to change the url to the image - it is setting the cat image there, so you will need to change it to marker one.

Daniel

Re: second image for markers 12 years 8 months ago #15392

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Not too helpful but thanks anyway.

Re: second image for markers 12 years 8 months ago #15409

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Eliecer,
The first dev release is a fact:
compojoom.com/about/blog/entry/hotspots3...ew-release-available

Why is this important? Well, I've setup everything so that I can now release new versions with the press of a button - everything is automated. So, once I add a feature, I open the command prompt, type:
phing -f component.xml dev-release

Phing creates a zip package, uploads it to the server. The release system creates a release and I'm really happy because I don't need 1 hour to publish something new. Now is the time for you to help if you want to - this release is far away from stable and there are a lot of things that don't work properly.. But I'll most probably create a daily builds, that will fix bugs and add the features you wanted.

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