heimrichhannot/contao-inserttag_download

此包已被废弃,不再维护。作者建议使用 heimrichhannot/contao-inserttagcollection-bundle 包。

Contao下载插入标签,用于在段落中提供可下载文件等。

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下载插入标签,用于在段落中提供可下载文件等。

此仓库不再维护。对于Contao 4用户,请使用我们的 Inserttags Collection Bundle

用法与示例

''' {{download::b93b1802-ae7a-11e3-9888-6c626d57edad::我的作品集::CSS-类::CSS-ID}} - 返回带有设置为 "我的作品集" 的链接文本、给定 CSS 类名和 ID 的下载元素 {{download_link::b93b1802-ae7a-11e3-9888-6c626d57edad}} - 返回下载链接 {{download_size::b93b1802-ae7a-11e3-9888-6c626d57edad}} - 返回下载文件大小 '''

Contao 4.x 安装

通过composer安装,添加需求并运行 composer update

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

在app/AppKernel.php中注册模块。


$bundles = [
...

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

清除缓存 app/cache