Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-04-11 17:27:55
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Associate images with download files
I hope this is not a dumb question, but I couldn’t find any info:
I want to manually associate uploaded images (respectively thumbnails) to my download files
and have them presented in the output of a file_download_list.
At the moment I tried to place an image tag in the description field. But that doesn’t really do what I want, for I’d like to have the image on another place within the HTML and the description text separate from it.
So it should be something which lets you specify the image in the file tab and then let it place in the file-form.
Is there any way to do that? A plugin?
Last edited by saccade (2008-04-11 17:29:14)
Offline
Re: Associate images with download files
Perhaps use an article for each image, putting the image ID and file ID in the advanced options (article_image and custom fields) to link them.
Offline
#3 2008-04-11 22:08:35
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: Associate images with download files
Thanks for the idea, but so – as far as I see – I would have to construct an own way of managing download files and completely omit the file-tab?
Maybe my english didn’t point that precisely out:
I want to manage my download files with textpattern’s file tab and file categories. Then use file_download_list for listing the adequate downloads – for example within articles, e.g. “Project XY Downloads”, “Project AB Downloads”.
These download lists should output small images which show, what will be downloaded.
(Edit: Example removed for it should be an internal site and links attract robots, if you want to have a look, no problem, mail me.)
So I planned to have my preview images as normal images managed by txp and my download files managed within the “files” tab. Then in the files properties (category, description) there should be some field like file_image (similar to article_image).
And for its use in the file-form there needs to be a tag, e.g. txp_file_download_image, which places the image at the provided place in the form/code.
So far my idea.
I thought for sure someone already has coded something like that or there is a plugin, working this way.
Last edited by saccade (2008-04-12 11:48:09)
Offline
Re: Associate images with download files
saccade wrote:
These download lists should output small images which show, what will be downloaded…. I thought for sure someone already has coded something like that or there is a plugin
There is :-) smd_remote_file. While you won’t necessarily need the ‘remote’ bit, it does come with <txp:smd_file_download_image />
which you can use in your files
form to look for an image with the same name as the file in question and show it.
Despite the plugin’s name you can use it on ‘local’ and ‘remote’ files alike, and it works with the existing file_download suite of tags.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Offline
#6 2008-04-12 11:45:37
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: Associate images with download files
Wow, very good. Thanks! I will try that now.
Offline
#7 2008-04-15 08:37:40
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: Associate images with download files
Works wonderfully! Thank You Bloke!
Offline
Pages: 1