-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
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.
- is depended upon by
-
MGNLCAT-158 Update uses of renamed TemplatingFunctions methods
- Closed
-
MGNLRES-157 Update uses of renamed TemplatingFunctions methods
- Closed
-
MGNLRSSAGG-200 Update uses of renamed TemplatingFunctions methods
- Closed
-
MGNLSTK-1483 Update uses of renamed TemplatingFunctions methods
- Closed
-
MGNLDEMO-47 Update uses of renamed TemplatingFunctions methods
- Closed
-
MGNLSITE-21 Update uses of renamed TemplatingFunctions methods
- Closed
-
MTE-30 Update uses of renamed TemplatingFunctions methods
- Closed
- is related to
-
MAGNOLIA-7007 Counterpart methods accepting content maps for methods in templating functions to get referenced content from any workspace
- Closed
- relates to
-
MAGNOLIA-6230 Reorder methods in TemplatingFunctions
- Closed