Plugin Files
Use this wiki plugin, introduced in Tiki3, to display a list of files like in a file gallery listing. You can also create a link to a slideshow of images in a file gallery.
The files can identified by their:
- ID
- gallery
- category
- gallery and category
Requirements
Regarding permissions:
- The file gallery must be visible by the user in order for the file to be listed or displayed
- A category with a permission on a file has no effect
Parameters
Tiki Doc From Code error: files not found
Additional notes
- If you give only
categId
, all the files that are in a gallery with this category and all the files of this category (after Tiki version 2) will be returned. - If you give only
galleryId
, all the files of this gallery will be returned - If you give
galleryId
andcategId
, all the files of the gallery that have this category will be returned - The fields that are displayed are those specified in one of the galleries
- If you specify
title
, you will see this text as title instead of the category name or the gallery name as title
Examples
All files in a gallery
This code:
Copy to clipboard
{files galleryId="4" max="5"}
Would produce on this site:
File Gallery: Documentation temporarily in PDF
ID | Filename | Name | Description | Size | Last modified | Last modified by |
---|---|---|---|---|---|---|
60 | AulaWiki_documentation_Castellano_090520.pdf | 1.74 MB | Xavier de Pedro | |||
61 | AulaWiki_documentation_Catala_090520.pdf | 1.73 MB | Xavier de Pedro | |||
62 | AulaWiki_documentation_English_090520.pdf | 1.80 MB | Xavier de Pedro | |||
99 | Picture 70.png | 152.60 KB | mrjcleaver | |||
122 | Picture 74.png | Simple invocation, just using one named parameter | 32.38 KB | mrjcleaver |
All files in a category
This code:
Copy to clipboard
{files categId="13"}
Would produce on this site:
Category: Files example
ID | Filename | Name | Description | Size | Last modified | Last modified by |
---|---|---|---|---|---|---|
No records found. |
Select files
This code:
Copy to clipboard
{files fileId="60:61:62" showgallery="n"}
Would produce on this site:
Slideshow
This code:
Copy to clipboard
{FILES(galleryId="6" slideshow="y")}Slideshow for file gallery 6{FILES}
Would produce on this site:
Slideshow for file gallery 6