[DOCU-2806] cmsfn children method with arguments content + type +block does not exist anymore Created: 15/Aug/23  Updated: 17/Aug/23  Resolved: 15/Aug/23

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

Type: Improvement Priority: Neutral
Reporter: Michael Evelt Assignee: Martin Drápela
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-08-15-12-47-09-141.png     PNG File image-2023-08-17-09-57-09-254.png    
Documentation page URL: https://docs.magnolia-cms.com/product-docs/6.2/Developing/Templating/Template-scripts/Templating-functions/cmsfn.html
Reporter Name: Michael Evelt
Email: m.evelt@lvm.de

 Description   

1) In the documentation of the cmsfn a method is referenced that can select children of a given contentMap, a given nodeType and the blockIntermediateNodeName:
https://docs.magnolia-cms.com/product-docs/6.2/Developing/Templating/Template-scripts/Templating-functions/cmsfn.html

It seems that this method is no longer present (or never was) in Magnolia 6.2.37 in 
info.magnolia.templating.functions.TemplatingFunctions.

This is quite unfortunate, since it seems pretty useful for extracting children from a component or page with multiple areas. i.e. an area named 'cards':

cmsfn.children(content, "mgnl:component", "cards")

 
If this method is not intended to be used it should be removed from the documentation.
 
 
2) The link to the JavaDoc of the TemplatingFunctions is referencing to href="#"

 



 Comments   
Comment by Martin Drápela [ 15/Aug/23 ]

Thanks mevelt for the ticket.

Re part 2 "The link to the JavaDoc of the TemplatingFunctions is referencing to href="#"",
we are currently fixing many issues connected with our javadoc links, thanks for pointing this out to us, we'll have to fix this one too.

Unfortunately, at this moment it looks like we won't be providing generated html javadocs for templating functions, but this might change in the future.

 

Re 1 "method is referenced that can select children of a given contentMap, a given nodeType and the blockIntermediateNodeName:"

I think it does exist, HOWEVeR, I ll kindly ask here dai.ha for a re-verification. If I read the code correctly:

Once again, I think dai.ha could confirm or correct this, or add further thoughts.

Thanks to both of you.

Comment by Dai Ha [ 16/Aug/23 ]

Its quite a journey to recall what has been done, we can see the new usage of content-editor templating function here: https://jira.magnolia-cms.com/browse/MGNLDEMO-384. It is updated on nightly instance so we can also check it there. One thing that can be the problem is that I dont see the new rendererType: content-editor-freemarker which is essential to run the templating function in the DOC section, maybe we can add it?

Comment by Martin Drápela [ 16/Aug/23 ]

A new DOC ticket for CONTEDIT renderers: https://jira.magnolia-cms.com/browse/CONTEDIT-573

Comment by Martin Drápela [ 17/Aug/23 ]

added a NOTE:

Comment by Michael Evelt [ 17/Aug/23 ]

Thank you for the information and adjustments

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