Download the PHP package hypejunction/hypeattachments without Composer
On this page you can find all versions of the php package hypejunction/hypeattachments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hypejunction/hypeattachments
More information about hypejunction/hypeattachments
Files in hypejunction/hypeattachments
Package hypeattachments
Short Description File attachments for Elgg
License proprietary
Homepage http://hypejunction.com
Informations about the package hypeattachments
Attachments for Elgg
Features
- API and UI for attaching files and other entities
- Form input for uploading file attachments
- Views for displaying attachments
Usage
Magic
If you add your entity subtype to a list of entities supporting attachments, the plugin will attempt to create all of the UI, necessary to upload and display attachments:
Note that this generic approach might not work with all plugins, and may require additional customizations on your side.
Display an attachment input
To add an attachments input to your comment and discussion replies forms, use the following code. You will not need to add any code to your save action.
To add an attachments input to your personal messages and replies forms, use the following code. You will not need to add any code to your save action.
Note that if you are not using hypeDropzone, your form must have it's encoding set to multipart/form-data
.
Attach uploaded files in an action
Attach an object
Display attachments
php echo elgg_view('output/attachments', [ 'entity' => $entity, ]);
## Acknowledgements
* Early version of the plugin development has been partially sponsored by [Social Business World](https://socialbusinessworld.org/)
All versions of hypeattachments with dependencies
composer/installers Version ~1.0
hypejunction/acl_builder_api Version ~1.0