heimrichhannot/contao-inserttag_download

This package is abandoned and no longer maintained. The author suggests using the heimrichhannot/contao-inserttagcollection-bundle package instead.

Contao download inserttag, to provide downloadable files inside paragraphs, etc.

1.0.2 2016-07-07 06:45 UTC

This package is auto-updated.

Last update: 2019-10-08 06:43:31 UTC


README

Contao download inserttag, to provide downloadable files inside paragraphs, etc.

This repository is not maintained anymore. For Contao 4 users, please use our Inserttags Collection Bundle instead.

Usage & Examples

''' {{download::b93b1802-ae7a-11e3-9888-6c626d57edad::My Portfolio::CSS-Class::CSS-ID}} - return den download element with linktext set to "my portfolio" and a given css classname and id {{download_link::b93b1802-ae7a-11e3-9888-6c626d57edad}} - return the download link {{download_size::b93b1802-ae7a-11e3-9888-6c626d57edad}} - return the download filesize '''

Contao 4.x install

Install via composer, add requirement and run composer update.

composer.json
"require": {
....
	"heimrichhannot/contao-inserttag_download": "~1.0"
}

Register module in app/AppKernel.php.


$bundles = [
...

new Contao\CoreBundle\HttpKernel\Bundle\ContaoModuleBundle(('inserttag_download'), $this->getRootDir()),
...
]

Clear caches app/cache.