Problem/Motivation

The current 8.x port uses config entities for the HTML templates. A co-worker of mine is working on a submodule to this that would use content entities. The advantage of config entities is that they are readily deployable via git (eg, CMI). The disadvantage is they cannot use some of the more advanced features of the content entity system such as bundles (eg, categories of templates), and permissions around CRUD operations.

Proposed resolution

Split the core functionality of this module into a base module (wysiwyg_template_core perhaps), have wysiwyg_template depend on the new module, and then in the near future, add wysiwyg_template_content module that would support templates that are content-entity-based.

Remaining tasks

Review, discuss.

User interface changes

None for now.

API changes

Data model changes

Comments

jhedstrom created an issue. See original summary.

jhedstrom’s picture

Category: Plan » Task
Status: Active » Needs review
StatusFileSize
new7.66 KB

Not ready for merge yet, put a proof-of-concept.

Additional functionality that would be common to both config and content based templates:

  • The CKEDitor plugin definition
  • The ability to select a default content template for content types
  • ...

Status: Needs review » Needs work

The last submitted patch, 2: 2735305-02.patch, failed testing.

jhedstrom’s picture

Assigned: jurgenhaas » jhedstrom
Status: Needs work » Needs review
StatusFileSize
new7.18 KB
new9.09 KB

This additionally moves the interface into the common core module, as it will be used both by the config-based entity, and the content-based entity.

david.gil’s picture

StatusFileSize
new1.23 KB

Send again to test bot

david.gil’s picture

ups sorry last patch no correspond to this issue

  • jurgenhaas committed 85bf505 on 8.x-2.x
    Issue #2735305 by jhedstrom, jurgenhaas: Consider supporting both config...
jurgenhaas’s picture

Status: Needs review » Fixed

Reviewed and pushed to dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.