Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6213

Standardize TemplatingFunctions

XMLWordPrintable

      TemplatingFunctions should be updated to adhere to the new standard:
      https://wiki.magnolia-cms.com/display/PDNOTES/TemplatingFunctions+Style+Guide

      For 5.4, in this ticket - all new functions should have names standardized, work with both nodes & contentMaps, and have good comments.

      Older functions deprecated and new versions created:

      getQueryStringAndFragment

      New functions in 5.4 renamed:

      getLinkPrefix
      getReferencedContent
      findParentWithTemplateType
      getTemplateType
      getTemplateSubType
      getContentListByTemplateTypeAndSubType
      getContentListByTemplateId
      getContentListByTemplateIds
      getFileExtension
      getDisplayFileSize

      Additionally

      TemplateTypeHelper#getContentListByTemplateTypeAndSubType

      method is renamed to be in synch with the version in TemplatingFunctions:
      "andSubType" is removed from the name.

        Acceptance criteria

              czimmermann Christopher Zimmermann
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD