examples:builder:singe_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
examples:builder:singe_attachment [2020/09/15 10:12]
orville [Step 3: Upload media/files]
examples:builder:singe_attachment [2021/12/09 10:56] (current)
pdsci-admin
Line 2: Line 2:
  
 ====== Single media/file attachment: attachOne ====== ====== Single media/file attachment: attachOne ======
-With the //attachOne// function files like images, movies or documents can be attached to a record of a database table. Media attachments are using built-in relations of OctoberCMS. So it is very easy to implement them.+With the //attachOne// function files like images, movies or documents can be attached to a record of a database table. Media attachments are using built-in relations of WinterCMS. So it is very easy to implement them.
  
 <WRAP tip> <WRAP tip>
Line 21: Line 21:
 Prerequisites are\\ Prerequisites are\\
   * an installed [[https://octobercms.com/plugin/rainlab-builder|builder plugin]]   * an installed [[https://octobercms.com/plugin/rainlab-builder|builder plugin]]
-  * any source code editor or e.g. the [[https://octobercms.com/plugin/indikator-devtools|Developer Tools]] plugin with built-in Code editor like in the screenshoots+  * any source code editor or e.g. the [[https://octobercms.com/plugin/indikator-devtools|Developer Tools]] plugin with built-in Code editor like to be seen on the screenshoots
   * a database table for records to attach the media to   * a database table for records to attach the media to
   * a form (at least in backend) to display the media   * a form (at least in backend) to display the media
Line 64: Line 64:
 Finally, in the backend form view of the plugin, a file can be uploaded by clicking on the //file upload symbol// - the area below the 'Cover Image' title in the example:\\ Finally, in the backend form view of the plugin, a file can be uploaded by clicking on the //file upload symbol// - the area below the 'Cover Image' title in the example:\\
 {{:examples:builder:attachone.5.final-upload.jpg?direct&960 |}} {{:examples:builder:attachone.5.final-upload.jpg?direct&960 |}}
-\\+<WRAP clear />
 \\ \\
 Now the form is ready to attach images and/or files to each record.\\ Now the form is ready to attach images and/or files to each record.\\
 ---- ----
 +\\ 
 +Back to [[:start|Start Page]]