codeq/htmlwidget

Last activity on 1 January 2021
  • 7
  • 3
  • 2438
composer require codeq/htmlwidget

HTML Widget for the Neos CMS

v1.5.0

HTML Widget for the Neos CMS

Version
v1.5.0
Type
neos-package
Release Date
11.01.2021 22:07:22
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT
  • #flow
  • #html
  • #neos
  • #fusion
eae0386585268c2da30f49e53371b3460e4c9f4f

Latest Stable Version License

HTML Widget for Neos CMS

This package allows developers to create HTML widgets in the administration. Editors can reuse them across on the website.

Administrators and everyone with the role CodeQ.HtmlWidget:HtmlWidgetDefinitionEditor can create HTML Widget Definitions including HTML, CSS and JavaScript.

All editors can add those HTML Widgets as content NodeType without being able to change the content.

Features

  • Automatically removes JavaScript code in the backend, to not break the Neos Administration
  • Reference used media assets in your widget definition, so these assets can not be deleted.
  • Restricts editing of HTML widget definitions, while allowing editors to use those widgets

HTML Widget Demo

The development and the public-releases of this package are generously sponsored by Code Q Web Factory.

Installation

CodeQ.HtmlWidget is available via packagist. "codeq/htmlwidget" : "~1.3" to the require section of the composer.json or run:

composer require codeq/htmlwidget

We use semantic-versioning so every breaking change will increase the major-version number.

Use Case 1: Administrators create widgets, which can be used by editors

This is the default case and you just need to install the package.

If you are planning to create a whole widget library, we recommend creating a separate, hidden Widget Definition page for that.

Use Case 2: Developers can create HTML Widgets, no reuse planned

If you want to create HTML widgets, but don't want to reuse them you only need the CodeQ.HtmlWidget:Content.HtmlWidgetDefinition. Disable the reusing element in YAML:

'CodeQ.HtmlWidget:Content.HtmlWidget':
  abstract: true

If your Neos user has no admin privilege, add the role HtmlWidgetDefinitionEditor.

License

Licensed under MIT, see LICENSE

Contribution

We will gladly accept contributions. Please send us pull requests.

The content of the readme is provided by Github
The same vendor provides 17 package(s).