[DOCU-2690] More methods available than documented Created: 03/Apr/23  Updated: 13/Apr/23  Resolved: 13/Apr/23

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Tobias Kerschbaum Assignee: Alex Mansell
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-04-03-07-46-02-956.png    
Documentation page URL: https://docs.magnolia-cms.com/product-docs/6.2/Developing/Templating/Template-scripts/Templating-functions/cmsfn.html
Reporter Name: Tobias Kerschbaum
Email: Tobias.Kerschbaum@magnolia-cms.com

 Description   

I am not sure if this is intended or not but as a customer reported there are way more methods available in the cmsfn templating function than we have in the documentation. In their case they needed one of the not documented ones and searched very long for it. 

Code:
https://git.magnolia-cms.com/projects/PLATFORM/repos/main.pub/browse/magnolia-templating/src/main/java/info/magnolia/templating/functions/TemplatingFunctions.java

Documentation:
https://docs.magnolia-cms.com/product-docs/6.2/Developing/Templating/Template-scripts/Templating-functions/cmsfn.html

 

Missing examples: (there are more just to name some of them)

  • public Node inherit(Node content)
  • public Node inherit(Node content, String relPath)
  • public Node inherit(Node content, String relPath, String nodeTypes, String nodeInheritance, String propertyInheritance)
  • public boolean isInherited(Node content)

Generated at Mon Feb 12 01:29:23 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.