Problem/Motivation

- When adding a pagedesigner field to a content type with existing content, the existing nodes have to be resaved. This should be automated.
- When making a pagedesigner field translatable, existing content translations need to be resaved to add the language specific link to the container. This should be automated.

Steps to reproduce

Adding field:
- Create a node type without pagedesigner field, add some content
- Add the pagedesigner field to the node type
- The container is only created and set on the existing content when you resave the existing nodes.

Translations:
- Enable translations on the node type but not the pagedesigner field
- Add translations to the nodes and add pagedesigner content (pagedesigner takes care of translating the container).
- Then make the field translatable. The existing node translations lose the link to the container and show no pagedesigner content.

Proposed resolution

React to updates/inserts of pagedesigner fields and adjust the entities on the node type (adding the container to the default language and the translations if translatable).

Remaining tasks

- Implement described changes
- Testing

User interface changes

None.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pvbergen created an issue. See original summary.

pvbergen’s picture

Status: Active » Reviewed & tested by the community
pvbergen’s picture

Status: Reviewed & tested by the community » Fixed

  • pvbergen committed 04e2247a on 2.0.x
    Issue #3360949: Add container references on adding pagedesigner field
    
pvbergen’s picture

  • pvbergen committed 04e2247a on issue/3319981
    Issue #3360949: Add container references on adding pagedesigner field
    
pvbergen’s picture

Status: Fixed » Closed (fixed)