[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: |
|
||||||||||
| Sub-Tasks: |
|
||||||||||
| Template: | |||||||||||
| Acceptance criteria: |
Empty
|
||||||||||
| Task DoR: |
Empty
|
||||||||||
| Epic Link: | TPR SaaS Norsu Pages | ||||||||||
| Sprint: | AuthX 14 | ||||||||||
| Story Points: | 3 | ||||||||||
| Team: | |||||||||||
| Description |
|
Exhaustive List of attributes can be found here: config.yaml 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] }; |