PHPackages                             keyteqlabs/keymedia-ezpublish - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. keyteqlabs/keymedia-ezpublish

ActiveEzpublish-legacy-extension[Utility &amp; Helpers](/categories/utility)

keyteqlabs/keymedia-ezpublish
=============================

eZ Publish KeyMedia connectivity

v2.3.1(11y ago)22803JavaScript

Since Sep 23Pushed 9y ago3 watchersCompare

[ Source](https://github.com/KeyteqLabs/keymedia-extension)[ Packagist](https://packagist.org/packages/keyteqlabs/keymedia-ezpublish)[ RSS](/packages/keyteqlabs-keymedia-ezpublish/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (5)Versions (16)Used By (0)

KeyMedia integration for eZ Publish
===================================

[](#keymedia-integration-for-ez-publish)

Installation
------------

[](#installation)

### Using composer

[](#using-composer)

`composer.phar require keyteqlabs/keymedia-ezpublish`

### Navigate to the extension.

[](#navigate-to-the-extension)

`cd /my/ez/extension/keymedia`

### Install sql

[](#install-sql)

`mysql -u username -p -h host databasename < sql/mysql/install.sql`

### Regenerate autoloads and clear cache

[](#regenerate-autoloads-and-clear-cache)

`php bin/php/ezpgenerateautoloads.php; php bin/php/ezcache.php --clear-all --purge`

### Connect to KeyMedia

[](#connect-to-keymedia)

Head over to *Admin Dashboard* -&gt; *KeyMedia* and add your KeyMedia API connection information.

### Make keymedia available in eZOe

[](#make-keymedia-available-in-ezoe)

In your ezoe.ini in settings/override you must add the following:

```
[EditorSettings]
Plugins[]=keymedia

[EditorLayout]
Buttons[]=keymedia
```

The keymedia button could be placed anywhere in the editor. See the eZOe doc on how to arrange buttons.

Setting up versions the user should be able to produce, is done in the keymedia.ini file. Make a keymedia.ini.append.php in the siteacces or the override folder. This is the possible settings with examples:

```
# Disable using focal point scaler strategy
[Scaler]
FocalPoint=false

[Brightcove]
PlayerId=98234987523
PlayerKey=OM932489MGXCV009CXVOM3

# Defines what backend to use for tinymce integration
DefaultBackend=1

[EditorVersion]
# Defines a list of versions that are available in ezoe editor to crop. Must at least have one version
VersionList[]
VersionList[]=small
VersionList[]=medium
VersionList[]=large

# Defines a list of css classes that are available for user in editor
# Separate actual css class and readable name with "|"
ClassList[]
ClassList[]=left|Left adjusted
ClassList[]=right|Right adjusted
ClassList[]=center

# Defines a list of view modes that are available for user in editor.
# The mode name is the same as template file-name. E.g. design/standard/templates/content/datatype/view/ezxmltags/keymedia-embed.tpl
# Separate actual css class and readable name with "|"
ViewModes[]
ViewModes[]=keymedia-embed|Embeded view

# Size definition of each version.
# 0 means that it's unbound. Only one dimension can have an unbound size (means 0x0 is not allowed)

[small]
Size=160x120

[medium]
Size=300x100

[large]
Size=500x0
```

Developing
----------

[](#developing)

Install dev dependencies and run tests:

```
composer.phar install
phpunit tests/

```

In order to run all unit tests the repo need to be placed under `ezpublish/extension/keymedia`, it will then use the underlying ezpublish installation for extending `eZPersistentObject`

Usage
-----

[](#usage)

### Lookup on tags

[](#lookup-on-tags)

```
