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

Convenience methods in Content to deal with localized node data

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • core
    • None

    Description

      The introduction of i18n content support made dealing with node data a lot more cumbersome. What once was:

      node.getNodeData(name)
      

      became:

      I18nContentSupportFactory.getI18nSupport().getNodeData(node, name)
      

      my proposal is to reduce this to:

      node.getLocalizedNodeData(name)
      

      patch attached

      Checklists

        Acceptance criteria

        Attachments

          1. Content.java
            30 kB
          2. Content.java.patch
            3 kB
          3. DefaultContent.java
            36 kB
          4. DefaultContent.java.patch
            1 kB

          Activity

            People

              pbaerfuss Philipp Bärfuss
              pmm Philippe Marschall
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD