[PAGES-687] Port templating annotations endpoint to Norsu Created: 11/Jul/22  Updated: 11/Aug/22  Resolved: 28/Jul/22

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Task Priority: Neutral
Reporter: Aleksandr Pchelintcev Assignee: Andrei Ichimescu
Resolution: Done Votes: 0
Labels: None
Σ Remaining Estimate: 0d Remaining Estimate: 0d
Σ Time Spent: 5h 50m Time Spent: 5h 50m
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by PAGES-676 [SaaS] Reimplement TemplateAnnotation... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
PAGES-722 QA Sub-task Closed Lam Nguyen Bao  
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: TPR SaaS Norsu Pages
Sprint: AuthX 14
Story Points: 3
Team: AuthorX

 Description   

Exhaustive List of attributes can be found here: config.yaml
The value of the ElementAttributes are computed against different implementations of `info.magnolia.templating.elements.AbstractContentTemplatingElement`

The react frontend-helpers project is using only a subset of the attributes (see TemplateAnnotation.js )

const PAGE_MAP = {
content: ['@path', ''],
dialog: ['dialog', '', getValueFromObject]
};
const AREA_MAP = {
name: ['@name', ''],
content: PAGE_MAP.content,
dialog: PAGE_MAP.dialog,
availableComponents: ['availableComponents', []],
type: ['type', 'list', getValueFromObject],
label: ['title', '', getValueFromObject],
inherit: ['inheritance', false, getValueFromObject],
optional: ['optional', false, getValueFromObject],
createdAreaNode: ['createAreaNode', true, getValueFromObject],
showAddButton: ['maxComponents', true],
showNewComponentArea: [null, true],
description: ['description', '', getValueFromObject],
activationStatus: [null, 0]
};

const COMPONENT_MAP = {
content: PAGE_MAP.content,
dialog: PAGE_MAP.dialog,
label: ['title', '', getValueFromObject],
description: ['description', '', getValueFromObject],
activationStatus: [null, 0]
};

Generated at Mon Feb 12 06:21:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.