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

Content with multiple types only use the 1st

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 4.2.0
    • None
    • None
    • 1 - Middle term
    • 2 - Normal

      I created a content of type "org.ametys.plugins.news.Content.news" and went in the repository to add another content type : "org.ametys.web.default.Content.article"

      When I go in the CMS and hover the type, I only got the 1st one

      When using the templates zone-item-before (and other that use the type), only the 1st type is passed.

       

      After a quick debug in page.xsl I found that the information about the content only store the 1st

          <information>
              <type>CONTENT</type>
              <contentId>defaultWebContent://81cb7359-18ed-4406-9286-56fb9db3cf25</contentId>
              <contentName>nouvelle-actualite-3</contentName>
              <metadataSetName>main</metadataSetName>
              <type-information id="org.ametys.plugins.news.Content.news">
                  <label>Actualit&eacute;</label>
                  <description>Contenu structur&eacute; repr&eacute;sentant une actualit&eacute;, un &eacute;v&eacute;nement.</description>
                  <iconGlyph>ametysicon-newspaper1</iconGlyph>
                  <smallIcon>/plugins/news/resources/img/news_16.png</smallIcon>
                  <mediumIcon>/plugins/news/resources/img/news_32.png</mediumIcon>
                  <largeIcon>/plugins/news/resources/img/news_48.png</largeIcon>
                  <css>
                      <file>/plugins/core-ui/resources/font/ametys/AmetysIcon.css</file>
                  </css>
              </type-information>
          </information>
      

      The second type seems to be unavailable.

            Unassigned Unassigned
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: