User Tools

Site Tools


wmanager:dummy_attachment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wmanager:dummy_attachment [2018/04/26 12:42]
raghav naik
wmanager:dummy_attachment [2018/04/26 13:15] (current)
Gianluca Pelliccioli
Line 1: Line 1:
 ======Attachment Directive====== ======Attachment Directive======
 +
 +
 +==== Summary ====
 +^ Objective | Handle attachments and attachments types |
 +^ Name | attachments |
 +^ Script | /applications/controller/attachment.php |
 +^ Tables | setup_attachments; attachments; list_ambits |
 +^ Configurations | $upload_dir |
 +^ Dependency | nothing in particular |
 +
 +
 +
 +==== What are we talking about ====
 +
 +   * Attachment is the feature that allows the user to upload attachmnts to the system after having selected a certain attachment type and description;
 +   * We handle a dedicated admin page to conifugure the attachment types;
 +   * Attachments can be referred to any entity (activities, threads, troubles, etc);
 +   * To do so we have a simple html tag that can be included in the view to show the attachment form;
 +   * All attachments are saved in local folder after $upload_dir;
 +   * All attachment metadata are saved in the attachments table where we have customer_id (compulsory), be_id (not compulsory) and entity_key and entity_id (both compulsory).
 +
 +
 +==== How does is work ====
 +
 +
  
 Attachment in WManager can be handled through a simple html tag that allows you to add attachments sections to yours web pages where you can add,delete or download attachments. It is handled through a angular directive that be used all around the application. The syntax to use it is. Attachment in WManager can be handled through a simple html tag that allows you to add attachments sections to yours web pages where you can add,delete or download attachments. It is handled through a angular directive that be used all around the application. The syntax to use it is.
Line 6: Line 31:
 <div attachment attachment-refid='REF_ID' attachment-refkey="AMBIT_KEY" custid='YOUR_CL_ID' beid='BE_ID'></div> <div attachment attachment-refid='REF_ID' attachment-refkey="AMBIT_KEY" custid='YOUR_CL_ID' beid='BE_ID'></div>
 </code> </code>
 +
 +**What are ambits?** 
 +Ambits are nothing but the entity to be which attachment will be added for eg. Activity,troubles etc.
  
  
wmanager/dummy_attachment.1524746573.txt.gz ยท Last modified: 2018/04/26 12:42 by raghav naik