Page 1 of 1

access image assets when populating a list

Posted: Fri Mar 30, 2012 4:31 pm
by Mark Dahmke

Hi - I have a database that includes names of images for each item. I need to be able to reference those photos when populating a list in a custom javascript function, so I can display title and photo and URL to click on. If I upload images as assets how do I reference those or can I create my own folder and add that to the project, retaining the original image filenames? thanks


access image assets when populating a list

Posted: Fri Mar 30, 2012 6:19 pm
by maxkatz

Are the images coming from a database or static (uploaded)?


access image assets when populating a list

Posted: Fri Mar 30, 2012 6:27 pm
by Mark Dahmke

Eventually it'll be a list with photos taken with device camera and stored in a database along with title, etc.
But for the demo version, I was going to put static photos in assets and put the image filenames in a database field, then build my list from the database.


access image assets when populating a list

Posted: Fri Mar 30, 2012 7:05 pm
by maxkatz

It's a little bit tricky right now but we are changing it very soon.

When you upload an image, its name in the builder becomes 'assetxxxxx'. A quick way to get all the names, is to put images on a page, test the page in browser and get the names (URL) from the source. I know it's a lot more involved than it should be and we are working to fix it. You will upload an image, and the name will stay.


access image assets when populating a list

Posted: Fri May 11, 2012 12:33 am
by RogerDavis

I uploaded a picture called me.jpg, and when I get the SRC from the browser, it's http://tiggzi.com/views/assets/asset-...

This is totally different than assetxxxx, where xxxx is the original image name.

My next question is: When I compile the project for iOS or Android, does Tiggzi automatically change the path to be correct?


access image assets when populating a list

Posted: Fri May 11, 2012 12:37 am
by maxkatz

Yes, the path will be correct when you build the binary. Next week - we are releasing an update where image names will be kept.