File Collection

Instructions with an Exercise

Description

A file collection is a data set that references files in the file list—either an entire folder or individual, specifically selected files. It groups these files together and makes them available elsewhere, regardless of how they are later displayed or used.

Usage:

With a file collection, you can make files from the TYPO3 file repository available as a dynamic list. You can either link an entire folder—whose contents are automatically displayed—or select individual files one by one.

Using a file collection is particularly useful when

  • you need to make many files available
  • the same files are to appear on multiple pages
  • the file collection is expected to change in the future (e.g., new files are added or old ones are removed)
  • multiple people contribute files to a shared download area

Only in combination with the content element File Links and the file collection can you create download lists and dynamic download areas.


Step by step

Illustrated Instructions

File Collection

Step 1: Create a file collection

To create a file collection based on a folder in file storage, follow these steps:

Select a folder in your site tree where you want to save the file collection definition, or create a new folder for this purpose.

Switch to the List module and create a new record.

Select " File Collection " as the record type ( under " Content").

Under "Type," select either " Folder from Storage" or "Static File Selection ." This option allows you to mount internal and external storage. Confirm your selection in the pop-up window that appears by clicking "Save and Update."

Give your collection a title that is as descriptive and unique as possible.

Step 2: Add a link

Under " Folder ," select the folder icon on the far right to specify the folder that contains the files for this collection.

Select your folder. If you are already in your folder, use the "Link to /<folder name>" button.

Save your file collection.

Step 3: Use the File Collection

You can now use the file collection in a file link content element (see the File Links guide). As soon as files are added to or removed from the folder, the files offered for download on your website will change accordingly.

TYPO3 Self-Study for Beginners, Part 2

Exercise

You can practice this in the sandbox.

  1. Upload files to a folder you’ve created.
  2. Create a file collection that accesses this folder or individual files.
  3. Work through the instructions on file links and use them to create a download list.

Go to the Sandbox

Next:

 

Back to OverviewNext Topic