postyou / contao-wrapper_tags
Contao 开源内容管理系统 wrapper_tags 扩展
2.3.0
2024-07-31 12:16 UTC
Requires
- php: >=5.6
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ~4.13 || ~5.3
- menatwork/contao-multicolumnwizard-bundle: ~3.5 || ^3.6
README
Contao 开源内容管理系统的扩展
提供内容元素,用于在不使用模板的情况下构建文章中的任何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 postyou/contao-wrapper_tags
使用方法
只需点击即可。
使用 打开标签
元素一次性添加多个标签。
每个标签都可以有任何想要的属性。插入的标签可以形成属性名和值。
在文章列表视图中
前端显示的代码结果
<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>