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

Add a plugin for dynamic organizational chart

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.0
    • 4.4.0
    • None
    • None
    • 4.5 M7, 4.5 RC1

      sitemap.xmap

      <?xml version="1.0" encoding="UTF-8"?>
      <!--
         Copyright 2010 Anyware Services
      
         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
         You may obtain a copy of the License at
      
             http://www.apache.org/licenses/LICENSE-2.0
      
         Unless required by applicable law or agreed to in writing, software
         distributed under the License is distributed on an "AS IS" BASIS,
         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         See the License for the specific language governing permissions and
         limitations under the License.
         -->
      <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
      	<map:components>
      		<map:actions>
                  <map:action name="get-content" src="org.ametys.cms.content.GetContentAction"/>
                  <map:action name="get-site" src="org.ametys.web.content.GetSiteAction"/>
      		</map:actions>
      	</map:components>
      
          <map:pipelines>
              <map:pipeline>
      			<map:match pattern="_content.*">
                      <map:act type="get-content">
                          <map:parameter name="id" value="{request-param:contentId}"/>
                          <map:parameter name="versionLabel" value="{request-param:versionLabel}"/>
                          <map:parameter name="contentVersion" value="{request-param:contentVersion}"/>
                          
                          <map:act type="get-site" src="{request-param:site}">
                          	<map:generate src="cocoon://_plugins/{../plugin}/{../contentType}.{../../1}"/>
                          	<map:transform src="pages/body.xsl"/>
                          	<map:serialize type="xml"/>
                          </map:act>
                      </map:act>
                  </map:match>
              </map:pipeline>
          </map:pipelines>
      
      </map:sitemap>
      

          [CMS-10877] Add a plugin for dynamic organizational chart

          Cédric Damioli added a comment - - edited

          the new pipeline */_content.* is cacheable despite the id passed as request parameter.
          To be cacheable, the id should be encoded in the URL

          Cédric Damioli added a comment - - edited the new pipeline */_content.* is cacheable despite the id passed as request parameter. To be cacheable, the id should be encoded in the URL

          A pipeline for <site>/_content.html?contentId=xxx&siteName=xxx&viewName=xxxx has been added to web workspaces.

          This pipeline can be used from site to get the html view of a content.

          Laurence Aumeunier added a comment - A pipeline for  <site>/_content.html?contentId=xxx&siteName=xxx&viewName=xxxx has been added to web workspaces. This pipeline can be used from site to get the html view of a content.

            laurence Laurence Aumeunier
            lbouziat Léa Bouziat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: