[DOCU-2667] Existing content app decoration does not work if it does get applied the latest one Created: 01/Mar/23 Updated: 02/Mar/23 Resolved: 02/Mar/23 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Sergio Marino | Assignee: | Martin Drápela |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Documentation page URL: | https://docs.magnolia-cms.com/product-docs/6.2/Modules/List-of-modules/Workflow-module/Enabling-workflow-in-content-apps.html#_existing_content_apps | ||||
| Description |
|
So if we directly create a light-module and we add a decoration as it is explained here: This will not work unless our decoration comes the latest one. By default it gets applied the first one and there are later decorations that makes our not being applied and get 4 warnings at the Definitions tab. How to fix it? We just basically need to mention that this decoration should come the last one. How to do that? We need to see the latest decoration being applied, so far it is "content-tags-integration" but this could change in the future. From our module descriptor we can just specify:
version: 1.0
dependencies:
content-tags-integration:
version: "*"
And that makes our decoration be the last one. |
| Comments |
| Comment by Martin Drápela [ 02/Mar/23 ] |
|
"When two decorators are decorating the same part of a definition, the last decoration applied wins." Let's make it more prominent and spread it also to Enabling workflow. |