Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11407

Content type view with metadata-ref tags

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 4.6.0
    • None
    • None
    • 2 - Long term
    • 1 - Easy

      I have a content type with a view defined like this:

      <cms:view name="main">
          <cms:attribute-ref name="title"/>
          <cms:metadata-ref name="code"/>
          <cms:group>
              <cms:label>Group 1</cms:label>
              <cms:attribute-ref name="group1-elt1"/>
              <cms:metadata-ref name="group1-elt2"/>
          </cms:group>
          <cms:attribute-ref name="repeater1">
              <cms:attribute-ref name="rpt1-elt1"/>
              <cms:metadata-ref name="rpt1-elt2"/>
          </cms:attribute-ref>
      </cms:view>

      cms:metadata-ref are not authorized at thes places. They are ignored.
      But even if they are ignored, only metadata-ref inside a repeater (I haven't tested with a composite) display an error (should it be an error if it's non blocking ? warning could be enough):

      The group 'repeater1' contains forbidden items @[myfile:line:column]

      Other cases do not display anything in errors.

      We should uniformize.

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: