[MAGNOLIA-7837] DOC: Correct property IDs for cmsfn metadata Created: 25/Jun/20  Updated: 07/May/21  Resolved: 07/May/21

Status: Closed
Project: Magnolia
Component/s: core, templating components
Affects Version/s: 6.2
Fix Version/s: None

Type: Improvement Priority: Medium
Reporter: Chris Jennings Assignee: Ashraf Khamis
Resolution: Done Votes: 0
Labels: templating
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Sprint: UI FW 27
Story Points: 3

 Description   

The cmsfn documentation lists IDs used to access node metadata: https://documentation.magnolia-cms.com/display/DOCS62/cmsfn#cmsfn-Metadata

At least one of these is incorrect. Using "ACTIVATION_STATUS" as directed produces a null pointer exception as it is not a property included in the map of names -> node properties.

See: https://git.magnolia-cms.com/projects/PLATFORM/repos/main/browse/magnolia-core/src/main/java/info/magnolia/cms/core/MetaData.java#171

Can this please be corrected? "activated" should be used instead of "ACTIVATION_STATUS". I am not sure about the rest.



 Comments   
Comment by Ashraf Khamis [ 07/May/21 ]

Updated the template IDs and metadata properties at https://docs.magnolia-cms.com/product-docs/Templating/Template-scripts/Templating-functions/cmsfn.html#_metadata. Reinstated all code examples and fixed all broken links and formatting issues on the page.

Reviewed by Roman.

Generated at Mon Feb 12 04:27:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.