Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2806

cmsfn children method with arguments content + type +block does not exist anymore

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None

    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="#"

       

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdrapela Martin Drápela
              mevelt Michael Evelt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: