...
The name CMS_FILELIST specifies which content type should be used and [1] is the index of headline. The index must be integer value.
Info | ||
---|---|---|
| ||
If you are using more then one CMS_FILELIST per article, you have to change/increment index of the next CMS_FILELIST . |
...
Code Block | ||
---|---|---|
| ||
echo "CMS_FILELIST[1]"; or echo "CMS_FILELIST[100]"; |
1.Configuration Configuration
The configuration of CMS_FILELIST is splitted in four different sections.
...
In the first tab Directories you can select one ore or multiple directories from the upload folder.
...
- file list title: here you can input title of your file list.
- file list style here you can define style of your filelist. By default you have default style, which is defined in cms_filelist_style_default.html template in templates folder.
Of course it is possible to define own templates. you can do it by client setting. The setting you have to set looks like: type -> cms_filelist_style. name -> some name, this name displayed in configuration drop down, value -> is the name of new template, it must begin with cms_filelist_style prefix, the rest can free defined.
Example: cms_filelist_style_mynewdefaultstyle.html could be a valid name.
After creation of client setting you have to create and fill new template in style -> html with the name. - file list sort: in this setting you can set given sort criteria.
- sort order: you can define here sord order ascending or descending.
- include subdirectories: check this option if you want include subdirectories with the files.
- include metadata: check this option if you want include file meta data.
In the third tab Filter you can define different filters.
...
Possible placeholder which you can use are:
- {TITLE}
- {FILEMETA_DESCRIPTION}
- {FILEMETA_MEDIANAME}
- {FILEMETA_KEYWORDS}
- {FILEMETA_INTERNAL_NOTICE}
- {FILEMETA_COPYRIGHT}
- {FILETHUMB}
- {FILENAME}
- {FILESIZE}
- {FILEEXTENSION}
- {FILECREATIONDATE}
- {FILEMODIFYDATE}
- {FILEDIRECTORY}
- {FILELINK}
Methods for CMS_FILELIST
List all methods for CMS_FILELIST at our API documentation.
Function name | Description |
---|---|
generateViewCode() | Generates the code which should be shown if this content type is shown in the frontend. |
generateFileListCode() | Function is called in edit- and viewmode in order to generate code for output. |
generateEditCode() | Generates the code which should be shown if this content type is edited. |
generateFileSelect() | Generate a select box containing all files for the manual tab. |