File links

File links can be used to make content available for download .

If a visitor clicks on such a link, they can download this file.

First, the creation of download lists and then the creation offile collections is shown.

Example

DYNAMICALLY CREATE DOWNLOAD LISTS (WITH FILE LINKS)

Typo3 offers the content element "File links" so that lists for download links do not have to be maintained manually.

You can either transfer a selection of files directly to this element, for which it takes over the output of the list, or create a so-called file collection (dynamic download list), which is displayed by the "File links" content element.

The following video provides additional support when using "File links".

(with the kind permission of jweiland.net)

Instructions

1. create a folder within the file lists in the page tree and add the files you want to make available.

2. now navigate back to your page and create the "File links" element via "Typical page content".

3. within the file links content element, you can now select the files that you have previously uploaded via "Add files".

4. the added files now appear in the frontend and can be downloaded/opened by the site visitor. You can also use the "Appearance" grid to customize the view and, for example, display the file size, description and preview image (see video).

File collections

Advantages of file collections:

 

  • Can be dynamic
  • Can be integrated by third parties
  • With the combination of "file collection"and "file links" you can, for example, display all downloads from a directory in your "file list".
  • The use of file collections saves time and effort !

The following video provides additional support for the use of "file collections".

(with the kind permission of jweiland.net).

Instructions

1. file collections are data records that must first be created within a folder .

2. once you have created the folder , switch to the "List" module and create a new data set.

You will find the "File collection" under "System data records". Now create this.

3. now you can give your collection a title . Select the option "Folder from storage" as "Type", this selection allows you to include internal and external storage. By default, "fileadmin " is available as "File storage", select this. Now select the folder you created previously as the "Folder".

4. you must now insert the new file collection via the "File links" content element (see instructions above).

Within the "File links" element, however, do not select the "Add file" option, but "File collection".

5. in the opened selection window, navigate to the previously created file collection and select it using the plus symbol.

6.all files in the selected folder now appear in the frontend.

7. within the "Sort file list" field, you can sort your file list according to any criteria. In the "Target" field, you can select whether the file should be opened in a new window.

You are in self-study and would like to go to the training start page, then click on TYPO3 self-study for beginners part 2.

You are currently in self-training, then click on Exercise - File links to continue.

Exercise - File links