[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: |
|
| 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: It seems that this method is no longer present (or never was) in Magnolia 6.2.37 in 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") |
| 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="#"", 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 |