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

Impossible de do a nested view on itself

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      4.4 M4

      Description

      How to reproduce : 

      1/ On exhaustive content, declare following view : 

      <cms:view name="details">
       <cms:group> 
       <cms:label i18n="false">Label View Mag</cms:label> 
       <cms:description i18n="false">Description de la view Mag</cms:description> 
       <cms:attribute-ref name="title"/>
       <cms:attribute-ref name="owns">
         <cms:view name="details"/>
       </cms:attribute-ref>
       </cms:group>
       </cms:view>

      2/ When launching CMS, following error is diplayed : 
      Caused by: org.apache.avalon.framework.configuration.ConfigurationException: The view 'details' does not exist in content type 'org.ametys.test.Content.exhaustif' referenced by the attribute named 'owns'. @file:///D:/Dev/Ametys-1/templates/web/master/webapp/cms/plugins/exhaustif/content-types/exhaustif.xml:898:39Caused by: org.apache.avalon.framework.configuration.ConfigurationException: The view 'details' does not exist in content type 'org.ametys.test.Content.exhaustif' referenced by the attribute named 'owns'. @file:///D:/Dev/Ametys-1/templates/web/master/webapp/cms/plugins/exhaustif/content-types/exhaustif.xml:898:39 at org.ametys.cms.contenttype.ContentTypeViewParser._parseContentAttributeViewItem(ContentTypeViewParser.java:249) at org.ametys.cms.contenttype.ContentTypeViewParser._parseModelViewItem(ContentTypeViewParser.java:206) at org.ametys.cms.contenttype.ContentTypeViewParser._parseSimpleViewItemGroup(ContentTypeViewParser.java:384) at org.ametys.cms.contenttype.ContentTypeViewParser._fillViewItems(ContentTypeViewParser.java:157) at org.ametys.cms.contenttype.ContentTypeViewParser.parseView(ContentTypeViewParser.java:128) at org.ametys.cms.contenttype.DefaultContentType._parseViews(DefaultContentType.java:1140) ... 213 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mfranchet Magali Franchet
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: