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
- 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:
{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 |
---|---|---|---|---|---|---|
151 | teetree_categ_perms_00.png | 26.30 KB | Xavier de Pedro | |||
122 | Picture 74.png | Simple invocation, just using one named parameter | 32.38 KB | mrjcleaver | ||
162 | backlinks_example.png | Example page showing backlinks | 42.78 KB | Rick Sapir / Tiki for Smarties | ||
123 | Picture 75.png | 75.49 KB | mrjcleaver | |||
120 | Picture 71.png | Create a plugin alias | 81.39 KB | mrjcleaver |
All files in a category
This code:
{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:
{files fileId="60:61:62" showgallery="n"}
Would produce on this site:
Slideshow
This code:
{FILES(galleryId="6" slideshow="y")}Slideshow for file gallery 6{FILES}
Would produce on this site:
Slideshow for file gallery 6