hum…not currently, but it’s something to think about for the future. If you’re into hacking your own version you’d want to place some code at the top of the publish() function. Something to this effect:
if($row['field_ta_rows'] == 1)
{
$this->settings['allow_multiple'] = 'yes';
}
else
{
$this->settings['allow_multiple'] = 'no';
}
Then when setting your file field, before saving, switch it to a text area and set the rows to 1 if you want multiple uploads or anything else if you don’t. Oh, and don’t forget to switch it back to a file field before saving.
Helmi_xisnet, I’m wary to do this because it takes away the simplicity of the extension. If you need to name files there’s a good chance that you’ll need additional information, which probably means the file deserves it’s own weblog and an associated “relationship” to the calling entry. Also if you’re looking for just a title, why not add another text field above or below the file upload to hold the title.
I use a workaround for what you want to do smallbeer. In the “File” settings I use the multiple images selection which displays multiple upload fields in the entry form even though I do not use the multiple image tags in the template.
You can then upload a secondary image and delete the original choice at the same time and then resave your entry without having to do multiple entry saves and essentially swapping one image for the next without having an image disappear in your HTML output in the template.
Alright, I’m trying something out here: I’ve uploaded a 2.0 version of the file extension to the top of this thread. Most things are the same, except it should alert you if there’s a problem uploading and you should be able to remove/add a file without saving the entry in-between. This isn’t a ‘beta’ release, it’s a final release of 2.0, however because there was some concurrent development of the two versions, I’m a little worried I forgot something in 2.0. So if you’re having trouble with the 1.x version or are looking for those error messages try out 2.x and let me know what you think!
Thanks everyone.
I just installed ext.file_210.zip files and love the additions!! Nice work. I especially like the preview thumb - very handy. I did notice in the settings it takes a server path and site url. What does it use these for if the settings piggy back on EE’s directory settings when creating custom fields? Is this for the thumbnail directory creation/storing thumbs in a seperate folder?
Thanks Mark!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.