"File Loader" plugin is used to embed files into Joomla! content. Can be used to create a basic template system, it is possible to use variables in files.

Features

  • Possible to use variables in files
  • Easy to use

Documentation

Documentation for the extension is here.

Examples

If use the code below for this file:

{file path="data/sample_file.txt"}
  {var name="name"}John{/var}
  {var name="surname"}Doe{/var}
{/file}

{$name} and {$surname} variables will be replaced with the defined values and the following content will be embedded:

Hello, John Doe!