contributte / fileupload

🆙 File uploads on steroids for Nette Framework (@nette). Implements blueimp/jquery-file-upload.
https://contributte.org/packages/contributte/fileupload.html
MIT License
28 stars 23 forks source link

Custom template #9

Closed milsorm closed 8 years ago

milsorm commented 8 years ago

I add $templates array passed to addFileUpload() which is passed to model UploadController.

In this array I have pairs "ui mode" => "pathname for template".

When control file is searched for controller rendering and uiMode is different that your originals, I try to search in this array and use custom template (absolute/relative filename checking).

Works fine. I am not attaching pull request because this is very naive representation, but custom templates are very important in some projects so please add it to your roadmap.

JZechy commented 8 years ago

Done. Templates can be altered by setUiTemplate($uiMode, $filePath).