-
Notifications
You must be signed in to change notification settings - Fork 5
Template: Wiki Special Upload Form
robinsowell edited this page Nov 3, 2015
·
1 revision
This template displays the wiki's upload form as outlined below:
In addition to the variables in the Wiki Page template, the Special Upload Form template has:
form_declaration:wiki:uploads
{form_declaration:wiki:uploads}
This creates the opening
tag and hidden fields needed for the upload form.{file_types}
This displays the allowed file types that can be uploaded. The value is determined by the settings of the File Upload Directory that the wiki is using, which is set from the Wiki's Control Panel.
{if file_types == 'images'}
This checks to see if the Upload Directory specified in the Wiki's Control Panel allows only images to be uploaded. This is used in combination with the {file_types} variable to display what kind of files can be uploaded. Please see the default theme file for an example (search for {if file_types == 'images'}).