-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from netgen/readme
Add readme file
- Loading branch information
Showing
2 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
# ibexa-fieldtype-html-text | ||
|
||
# TODO | ||
[![Downloads](https://img.shields.io/packagist/dt/netgen/ibexa-fieldtype-html-text.svg)](https://packagist.org/packages/netgen/ibexa-fieldtype-html-text) | ||
[![Latest stable](https://img.shields.io/packagist/v/netgen/ibexa-fieldtype-html-text.svg)](https://packagist.org/packages/netgen/ibexa-fieldtype-html-text) | ||
[![PHP](https://img.shields.io/badge/PHP-%E2%89%A5%208.1-%238892BF.svg)](https://www.php.net) | ||
[![Ibexa](https://img.shields.io/badge/Ibexa-%E2%89%A5%204.0-orange.svg)](https://www.ibexa.co) | ||
|
||
Html text field type for Ibexa CMS offers the possibility to render WYSIWYG field both on the frontend and in Ibexa administration. | ||
|
||
Installation steps | ||
----------- | ||
### Use Composer | ||
Run composer require: | ||
``` | ||
composer require netgen/ibexa-fieldtype-html-text | ||
``` | ||
|
||
### Activate the bundle | ||
Activate the bundle in `config/bundles.php` file. | ||
|
||
```php | ||
<?php | ||
|
||
return [ | ||
..., | ||
|
||
Netgen\IbexaFieldTypeHtmlTextBundle\NetgenIbexaFieldTypeHtmlTextBundle::class => ['all' => true],, | ||
|
||
... | ||
]; | ||
``` | ||
|
||
### Include the javascript file on the frontend | ||
Inside the base twig file for your frontend siteaccess, include the built `app.js` file: | ||
``` | ||
<script src="{{ asset('bundles/netgenibexafieldtypehtmltext/build/app.js') }}"></script> | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters