It would be great to allow multiple images and documents for each property.

It would be great to save the images and documents in a folder specific to the property.

You've been so helpful and I really appreciate your time and don't want to impose more than I already have done and will do with other questions. However, if you have any suggestions as to how to go about those I'm all ears.

Thinking about the multiple images and files some more... The uploader allows multiple uploads, but I don't think it allows multiple selections. Not sure what the best approach is -- maybe a link to the file manager and somehow auto-create a folder for the current property?

In my home-made CMS I used related tables, but I'm not sure how well that would work with elefant.

Thanks for all the suggestions, this definitely got me thinking! I broke things down by point to keep organized :) Here we go:

I've added an issue on Github to auto-select an image/file after upload. Good suggestion!

I think we should keep resizing out of the scope of the dialog window, although there are two things you can do for image resizing currently:

Use Image::resize($file, $width, $height) to resize programmatically. This is found in apps/filemanager/lib. You can even use it as a filter in a template via {{my_image|Image::resize (%s, 50, 30)}}.

If you add an aviary.com key to apps/filemanager/conf/config.php, you can use their image editor on any image in Elefant.

To save images/files to a folder specific to that property, you could have the backend auto-create a folder, say /files/properties/$id/ for each property and move or duplicate the files there when the properties form is submitted.

Adding multiple file selection to the dialog seems like opening a can of worms usability-wise, so I'm holding off on that, but below is a workaround to that. For cases where the images would need associated data (caption, etc.), a related table would be best, but for simple cases this could work.

I was playing with this idea a bit more and thought it could be made into more reusable components, so I just added filemanager/util/multi-file and filemanager/util/multi-image helpers to the master branch:

Right now you'll either need to be using git to clone the master repository (or fork it on Github, then you can pull new changes into your copy and keep a history of your own changes too), or download the files individually if you're not using git.

We're close to a new beta release that will include all this stuff, but there are a couple things left to finish up before then.

Still playing; looks good so far. With the auto-select, will it be possible to auto-select all the files uploaded, if more than one are uploaded at a time? That would make the lack of ability to choose multiple less of an issue.

Are there filemanager utilities to move files/create directories or should I just do that in straight php?

Thinking about the caption issue... The file manager has an option to add a description to an image. How is that stored?

Nice-to: I like the way you can click on the image to remove it. Could the cursor change to an X or similar, possibly red or purple to match the file-multi X, to make it clear that clicking will remove the image?

OK, so I got the images moved to their own folders and I would like to show a gallery for each property. Is it possible to do something like this? {! filemanager/gallery?path=properties/{{ name|none }}&order=desc&desc=yes&style=embedded !} I'm having trouble getting it to parse correctly. That turns into this: <?php echo $this->controller->run ('filemanager/gallery', array ('path' => 'properties/<?php echo $data->name;?>', 'order' => 'desc', 'desc' => 'yes', 'style' => 'embedded')); ?

Back to the multi-image field: It would be great if there was some way to let the user sort it. I added a single image "Main image" field above it, but that wouldn't be necessary if they could drag the images around. The trick in either case will be telling the gallery what order the user has chosen, since it goes by directory contents not db info.

Sorting the images/files is a good idea. I think we can add that via drag and drop to the multi-file/image preview box.

For showing an X to say "Click to remove", I tried adding a CSS :after block that would hover the "Click to remove" text, but couldn't get it showing here for some reason. I'll have to play with changing the cursor instead. For now, the title text does show "Click to remove" but that always takes a second or two to appear.

And to answer your question about the gallery paths, here's the syntax you're looking for:

Except you'll need to include the full path in the name value, because sub-expressions in includes only match the whole property value. It looks for the [ and ] characters at the very start and end of the value, otherwise it takes it as an ordinary expression.

Sorting the Images would be awesome. I don't know if it's possible, but what do you think about, organizing the files similar to the Navigation admin menu. There could be an edit and an delete button on the draggables, similar to the Folder Icon on the navigationadmin.. Edit for renaming and editing Description. Then all the Files would be on one Screen...
What do you think about this?

If the original images doesn't have the same ratio as the resized image there are three options to deal with it. Cover and contain keep the ratio and work similar to the CSS property: background-size (http://www.w3schools.com/cssref/css3_pr_background-size.asp) stretch doesn't maintain the ratio and distorts the image.