Mark Dahmke
Posts: 0
Joined: Wed Mar 14, 2012 3:51 pm

access image assets when populating a list

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

access image assets when populating a list

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

Mark Dahmke
Posts: 0
Joined: Wed Mar 14, 2012 3:51 pm

access image assets when populating a list

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

access image assets when populating a list

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.

RogerDavis
Posts: 0
Joined: Wed May 09, 2012 10:53 am

access image assets when populating a list

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

access image assets when populating a list

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

Return to “Issues”