Re: [Perchpole] Linking to Uploads Across Multiple Documents?
Hi Perch,
Interesting idea.
What you could do is have your list field link directly to the uploads table. When creating your list field, for "List Options" select "Get Options from MySQL Query).
Then use this query:
SELECT num, urlPath
FROM `<?php echo $TABLE_PREFIX ?>uploads`
You can change the second field if you like, but urlPath would probably be the most descriptive. So, this would mean that you'd be storing a list of record numbers from the uploads table that you could then retrieve. An added benefit is that you'd be able to use the ":labels" pseudo field to get the urlPaths of your select uploads without a second query.
Hope this gets you started. Let me know if you run into any other issues.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/