Sitemap | Developers | Print
Link to filestype=fileSource/fileTargetWhen the user right-clicks on the SOURCE tag they will get a simple pop up to allow them to select one of their uploaded files. When the site is published, the file will be copied to the target website. Example: Filtering the files listTo make life easier for clients (and reduce support calls) you can filter the list of files produced by the filesource tag. Include the parameter filter, followed by a comma separated list of filters. The list of files will be restricted to files that contain any of the filter strings.Example 1: <cms type=filesource id=my_file scope=page filter=.swf> This will only show files with the extension '.swf'.Example 2: <cms type="filesource" filter="offers,specials" id="my_file" scope="section"> This will only show files containing the string 'offers' or the string 'specials'. Example 3: <cms type=filesource filter=stylesheet,.css id=my_file scope=page> This will only show files containing the string 'stylesheet' or the string '.css'. Setting a default fileA common use of the CMS FILE TAG is to allow users to select a banner image for a page or a folder. This is easy enough to do, but users don't always remember to select the banner image when they create a page. You can set a default file using the following code: ... |