[MAGNOLIA-5103] Templating function - add methods working with ContentMap Created: 12/Jun/13  Updated: 12/Jun/13  Resolved: 12/Jun/13

Status: Closed
Project: Magnolia
Component/s: templating
Affects Version/s: None
Fix Version/s: 4.5.10

Type: Improvement Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

http://wiki.magnolia-cms.com/display/DEV/Templating+function+-+add+possibility+get+ContentMap+for+the+given+path+or+identifier%2C+add+i18n+wrapperProposal

Deprecate methods:

  • content(String path),
  • content(String path, String repository),
  • contentByIdentifier(String id),
  • contentByIdentifier(String repository, String id).

Add explicit:

  • ContentMap contentByPath(String path, String workspace)
  • ContentMap contentById(..)
  • Node nodeByPath(..)
  • Node nodeById(..)

Add:

  • ContentMap encode(ContentMap)


 Comments   
Comment by Jan Haderka [ 12/Jun/13 ]

Please turn the parameters around id/path should be first, workspace second.

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