lolautruche/embedtag-bundle

为eZ Publish提供的自定义标签集合,用于嵌入外部内容,如YouTube、DailyMotion或Vimeo

v1.0.3 2019-03-18 09:21 UTC

This package is auto-updated.

Last update: 2024-09-18 20:27:41 UTC


README

eZ Publish 5扩展包,提供用于XmlText字段类型的自定义标签,允许嵌入外部内容。与eZ Publish 5.3 / 2014.03及更高版本兼容。

功能

当前实现提供了以下自定义标签的支持:

  • YouTube
  • Vimeo
  • DailyMotion

自定义标签可以在管理界面中编辑。

安装

此扩展包可在Packagist上找到。您可以使用Composer进行安装。

$ composer require lolautruche/embedtag-bundle:@stable

然后将扩展包添加到您的应用程序中

<?php
// ezpublish/EzPublishKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Lolart\Bundle\EmbedTagBundle\LolartEmbedTagBundle(),
        // ...
    );
}

使用方法

在管理界面中编辑您的富文本内容

eZ Online Editor custom tag

Provide the content's URL

享受结果吧!

Enjoy the result