Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-inserttagcollection-bundle
A collection of additional inserttags for contao cms.
https://github.com/heimrichhannot/contao-inserttagcollection-bundle
Last synced: about 1 month ago
JSON representation
A collection of additional inserttags for contao cms.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-inserttagcollection-bundle
- Owner: heimrichhannot
- License: other
- Created: 2018-08-01T12:32:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-01T08:34:06.000Z (over 3 years ago)
- Last Synced: 2024-08-08T16:12:23.756Z (5 months ago)
- Language: PHP
- Size: 48.8 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Contao Inserttags Collection Bundle
[![Latest Stable Version](https://poser.pugx.org/heimrichhannot/contao-inserttagcollection-bundle/v/stable)](https://packagist.org/packages/heimrichhannot/contao-inserttagcollection-bundle)
[![Total Downloads](https://poser.pugx.org/heimrichhannot/contao-inserttagcollection-bundle/downloads)](https://packagist.org/packages/heimrichhannot/contao-inserttagcollection-bundle)
![CI](https://github.com/heimrichhannot/contao-inserttagcollection-bundle/workflows/CI/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/heimrichhannot/contao-inserttagcollection-bundle/badge.svg?branch=master)](https://coveralls.io/github/heimrichhannot/contao-inserttagcollection-bundle?branch=master)This bundle provides some additional inserttags for contao CMS.
The download inserttag template is already prepared for [AMP Bundle](https://github.com/heimrichhannot/contao-amp-bundle).
## Inserttags
### Functionality
Inserttag | Example | Description
--------------|----------------------|-------------
strtotime | `{{strtotime::midnight}}` | Returns supported return values of strtotime() (see [php docs](https://www.php.net/manual/de/datetime.formats.relative.php)). Also possible: `{{strtotime::+ 1 day::::}}`
link_url_abs | `{{link_url_abs::92}}` | Get the absolute url of an page.
email_label | `{{email_label::[email protected]::E-Mail}}` | Generate an e-mail link with custom label. Custom classes and id are also possible: (`{{email_label::[email protected]::E-Mail::btn btn-default::my_custom_email_link}}`)
download | `{{download::9263228b-9577-11e8-abd4-a08cfddc0261}}` | Generate an download link to the file with file name as label and download size. File parameter can be file uuid or file path. Optional parameter for custom label, link css class and link css id.
download_link | `{{download_link::9263228b-9577-11e8-abd4-a08cfddc0261}}` | Get the download url. File parameter can be file uuid or file path.
download_size | `{{download_size::9263228b-9577-11e8-abd4-a08cfddc0261}}` | Get the formatted download size. File parameter can be file uuid or file path.### Html-tags
Inserttag | Example | Description
--------------|----------------------|-------------
small | `{{small}}` | Start small text (Outputs ``)
endsmall | `{{endsmall}}` | Stops small text (Outputs ``)
span | `{{span::class=product highlight&id=product5&title=Super Product}}` | Start span element text (Example outputs ``)
endspan | `{{endspan}}` | Stops small text (Outputs ``)## Technical introduction
### Install
```
composer require heimrichhannot/contao-inserttagcollection-bundle
```### Upgrade from module
This bundle replaces following modules:
* `heimrichhannot/contao-inserttags_absolute`
* `heimrichhannot/contao-inserttag_email`
* `heimrichhannot/contao-inserttag_download`See [upgrade notices](docs/upgrade.md) for more information.