Apps and development tools - Basic App Kit

AppKit Modules

<tml:include ref="form-attachments@base">

Since version 2.1.0

Description :

This TML generated an editable list of attachments inside a form.tml. Attachments a presented in a table or as icon view depending on the option "view".

Attachments may be uploaded and sorted via drag&drop.

Options:

view:

Either "images" or "table" (default). Defines the way the attachments are presented.

label:

The label text to be displayed left to the attachment.

upload-processor-url:

An optional URL of a module that handles uploaded files via drag&drop.

emptytext:

A Hint-Text that is rendered to inform the user that filed may be droped here.

emptytext-upload:

A text that is diaplayed if uploads via drag&drop is not supported.

prepend

Optional HTML to be added before attachment list.

append

Optional HTML to be added after attachment list.

Examples:

This TML generated an editable list of attachments inside a form.tml.

<tml:[form-attachments@base] o_view="images" prepend="<hr>"/>

Attachments may be uploaded via drag&drop.