zmyslny / contao-wrapper_tags
Contao 开源 CMS 的 wrapper_tags 扩展
2.1.0
2018-02-14 21:25 UTC
Requires
- php: ~5.6 || ~7.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ~3.5 || ~4.4
- menatwork/contao-multicolumnwizard: ~3.3.6
This package is not auto-updated.
Last update: 2023-11-06 08:41:11 UTC
README
Contao 开源 CMS 的一个扩展
提供内容元素,无需使用模板即可在文章中构建任何 HTML 结构。
系统要求
- Contao 3.2.x - 3.5.x, 4.4+
- PHP 5.6 - 7.x
未在 Contao 4.0 - 4.3 上测试,但可能与之兼容。未在 PHP < 5.6 上测试,但可能与一些早期版本兼容。
依赖项
安装
使用 composer(适用于 3.5 和 4.4+)
$ composer require zmyslny/contao-wrapper_tags
使用 Contao 扩展目录
手动安装
下载 MultiColumnWizard 和 Wrapper tags 的 zip 文件。解压缩下载的 MultiColumnWizard-master.zip
文件。在解压缩的目录中找到 multicolumnwizard
目录并将其移动到 /system/modules/
。解压缩下载的 contao-wrapper_tags-master.zip
文件。将解压缩的目录重命名为 wrapper_tags
并将其移动到 /system/modules/
。更新数据库即可。
使用方法
只需点击即可。
使用 开始标签
元素一次添加多个标签。
每个标签都可以有任意想要的属性。插入的标签可以形成属性的名称和值。
在文章列表视图中
前端显示的代码结果
<div class="big-font" id="container-1" data-person="chef-12" page-5="profile"> <span class="red">
使用 结束标签
内容元素来关闭 HTML 标签。
在文章列表视图中
前端显示的代码结果
</div> </span>
使用 完整标签
内容元素来添加完整的 HTML 标签。
在文章列表视图中
前端显示的代码结果
<div id="ajax-data"></div> <img src="files/website/1.jpg">
如果构建的结构中存在任何可能的错误,您将收到通知。
元素的行为类似于包装元素。
它们在更深层次缩进并特别着色。
前端显示的代码结果
<div id="container-1" data-person="chef-12" page-5="profile" class="big-font"> <div class="red"> <h1 class="ce_headline">Hello</h1> <div id="ajax-data"></div> <img src="files/website/1.jpg"> <article> <div> <span data-date="13/02/2018"> <h1 class="ce_headline">Very nice plugin</h1> </span> </div> </article> </div> </div>
缩进和颜色即使在分页模式下也会保留。
设置
版权
由 Mike 创建和维护。