I’m not sure how to phrase my question, so bare with me.
I’m building a entry that uses a field that has a type of “file”. In that field, an admin can upload an image, a video, or a Flash file. In my template that renders this entry, instead of displaying that file, I would prefer to have a reference to that file (not the full URL of that file’s location) that I could use as a variable to pass to another page that would actually be the viewer for that file.
I’m not sure that’s clear enough, but I want to create a link like this:
<a href="http://site.com/flashviewer/1234/800/600">http://site.com/flashviewer/1234/800/600</a>In that case the 1234 would be a reference to the file that’s managed by EE because I don’t want a link that looks like this:
<a href="http://site.com/flashviewer/http://site.com/uploads/flashfile.swf/800/600">http://site.com/flashviewer/http://site.com/uploads/flashfile.swf/800/600</a>Any thoughts? (I could break out PHP and a regular expression to do this, but I thought there might be a much simpler thing I’m overlooking.)
Thanks.
-John