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

ContentView: Calculated source URIs with inherit types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.9, 4.6.0
    • 4.5.8, 4.6.0
    • None
    • None
    • 4.6 M5

      ssume you have a content type name content-type.MyContentType in plugin my-plugin, it extends content-type.MyInheritedContentType1 from plugin my-plugin and content-type.MyInheritedContentType2 from plugin my-plugin-inherit.

      We get this list of possible source URIs (without Web, more complete with web plugin):

      • content://WEB-INF/param/content-types/my-plugin/stylesheets/MyContentType/MyContentType-main.xsl
      • content://WEB-INF/param/content-types/my-plugin/stylesheets/MyContentType/MyContentType.xsl
      • plugin:my-plugin://stylesheets/MyContentType/MyContentType-main.xsl
      • plugin:my-plugin://stylesheets/MyContentType/MyContentType.xsl
      • content://WEB-INF/param/content-types/my-plugin/stylesheets/content-type.MyInheritedContentType1/content-type.MyInheritedContentType1-main.xsl
      • content://WEB-INF/param/content-types/my-plugin/stylesheets/content-type.MyInheritedContentType1/content-type.MyInheritedContentType1.xsl
      • plugin:my-plugin://stylesheets/content-type.MyInheritedContentType1-main.xsl
      • plugin:my-plugin://stylesheets/content-type.MyInheritedContentType1.xsl
      • content://WEB-INF/param/content-types/my-plugin-inherit/stylesheets/content-type.MyInheritedContentType2/content-type.MyInheritedContentType2-main.xsl
      • content://WEB-INF/param/content-types/my-plugin-inherit/stylesheets/content-type.MyInheritedContentType2/content-type.MyInheritedContentType2.xsl
      • plugin:my-plugin-inherit://stylesheets/content-type.MyInheritedContentType2-main.xsl
        plugin:my-plugin-inherit://stylesheets/content-type.MyInheritedContentType2.xsl
      • plugin:my-plugin://stylesheets/default-content.xsl,
        plugin:cms://stylesheets/default-content.xsl,
      • cocoon://_plugins/cms/default-content/html-main.xsl

      We can see that first content type is called with it alias, and the inherit content types are called with their complete name. So if a content type has contents as final type and other as inherit type, we have to declare two stylesheets at least.

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

              Created:
              Updated:
              Resolved: