Changes

Jump to: navigation, search

Web Page View Field Variables

775 bytes added, 18:45, 18 July 2017
Miscellaneous Variables
=Miscellaneous Variables=
 
==Adding an image from Upload fields==
Users can return image thumbnails or meta data from multiple file fields using the list syntax below":
 
* Show thumbnail image using thunbnailpath option:
<pre>
@multi file name.template[# <img src="~thumbnailpath~" width="240" /> #]@
</pre>
 
* Show thumbnail image and file name using filepath option:
<pre>
@multi file name.template[# <img src="~filepath~/thumbnail/?maxwidth=240" width="240" />~filename~#]@
</pre>
 
* Show thumbnail image and file name using compressedpath option:
<pre>
@multi file name.template[# <img src="~compressedpath~/thumbnail/?maxwidth=240" width="240" />~filename~#]@
</pre>
 
* Show file name, size and upload date:
<pre>
@multi file name.template[# ~filename~, ~filesize~, ~uploaddate~#]@
</pre>
 
 
==Adding a File Upload button==
To display a button to upload to a [[Single File]] or [[Multiple Files]] custom field:
Smartstaff, administrator
4,478
edits

Navigation menu