sitemap.xmap

来自「Hippo CMS是一个以信息为中心的开源内容管理系统。Hippo CMS目标是」· XMAP 代码 · 共 362 行 · 第 1/2 页

XMAP
362
字号
            <map:call function="{globalconstants:cms-startup-function}">
              <map:parameter name="browserSupport" value="full"/>
              <map:parameter name="editUri" value="{request-param:editUri}"/>
              <map:parameter name="editType" value="{request-param:editType}"/>
              <map:parameter name="username" value="{request:cookies[name='username']/@value}"/>
              <map:parameter name="pwd" value="{request:cookies[name='pwd']/@value}"/>
              <map:parameter name="project" value="{request:cookies[name='project']/@value}"/>
              <map:parameter name="locale" value="{request:cookies[name='locale']/@value}"/>
            </map:call>
          </map:when>
          <map:when test="safari">
            <map:call function="{globalconstants:cms-startup-function}">
              <map:parameter name="browserSupport" value="partial"/>
              <map:parameter name="editUri" value="{request-param:editUri}"/>
              <map:parameter name="editType" value="{request-param:editType}"/>
              <map:parameter name="username" value="{request:cookies[name='username']/@value}"/>
              <map:parameter name="pwd" value="{request:cookies[name='pwd']/@value}"/>
              <map:parameter name="project" value="{request:cookies[name='project']/@value}"/>
              <map:parameter name="locale" value="{request:cookies[name='locale']/@value}"/>
            </map:call>
          </map:when>
          <map:when test="opera">
            <map:call function="{globalconstants:cms-startup-function}">
              <map:parameter name="browserSupport" value="partial"/>
              <map:parameter name="editUri" value="{request-param:editUri}"/>
              <map:parameter name="editType" value="{request-param:editType}"/>
              <map:parameter name="username" value="{request:cookies[name='username']/@value}"/>
              <map:parameter name="pwd" value="{request:cookies[name='pwd']/@value}"/>
              <map:parameter name="project" value="{request:cookies[name='project']/@value}"/>
              <map:parameter name="locale" value="{request:cookies[name='locale']/@value}"/>
            </map:call>
          </map:when>
          <map:when test="mozilla5">
            <map:call function="{globalconstants:cms-startup-function}">
              <map:parameter name="browserSupport" value="full"/>
              <map:parameter name="editUri" value="{request-param:editUri}"/>
              <map:parameter name="editType" value="{request-param:editType}"/>
              <map:parameter name="username" value="{request:cookies[name='username']/@value}"/>
              <map:parameter name="pwd" value="{request:cookies[name='pwd']/@value}"/>
              <map:parameter name="project" value="{request:cookies[name='project']/@value}"/>
              <map:parameter name="locale" value="{request:cookies[name='locale']/@value}"/>
            </map:call>
          </map:when>
          <map:otherwise>
            <map:call function="{globalconstants:cms-startup-function}">
              <map:parameter name="browserSupport" value="none"/>
            </map:call>
          </map:otherwise>
        </map:select>

      </map:match>

      <map:match pattern="login_popup">
        <map:call function="login_popup">
          <map:parameter name="users" value="{repository:users}"/>
          <map:parameter name="host" value="{repository:host}"/>
        </map:call>
      </map:match>

      <map:match pattern="logincontinue">
        <map:call continuation="{request-param:continuation}"/>
      </map:match>
      
      
      <map:match pattern="cforms/resources/mattkruse-lib/PopupWindow.js">
        <map:act type="set-header">
          <map:parameter name="Pragma" value="no-cache"/>
          <map:parameter name="Cache-Control" value="max-age=0, no-cache, must-revalidate"/>
          <map:parameter name="Expires" value="Thu, 9 Nov 1989 22:00:00 GMT"/>
        </map:act>
        <map:select type="browser">
          <map:when test="ie6">
            <map:read src="cforms/resources/mattkruse-lib/PopupWindow_ie6.js"/>
          </map:when>
          <map:otherwise>
            <map:read src="cforms/resources/mattkruse-lib/PopupWindow.js"/>
          </map:otherwise>
        </map:select>
      </map:match>
      
      <map:match pattern="cocoon-cform-xmleditor/**">
        <map:redirect-to uri="cocoon://editing/cf2/cocoon-cform-xmleditor/{1}"/>
      </map:match>
      
      <!-- for performance reasons en.js and en_GB.js should return empty
           otherwise a 404 is send
        -->
      <map:match pattern="cforms/resources/**/lang/en_*.js">
        <map:read src="resources/js/empty.js"/>
      </map:match>
       <map:match pattern="cforms/resources/**/lang/en.js">
        <map:read src="resources/js/empty.js"/>
      </map:match>
      
      <map:match pattern="cforms/resources/**">
        <map:read src="cforms/resources/{1}"/>
      </map:match>
      
      <!-- skin -->
      <map:match pattern="skin/**">
        <map:mount uri-prefix="skin" src="skins/sitemap.xmap" />
      </map:match>

      <!-- extensions -->
      <map:match pattern="extensions/**">
        <map:mount uri-prefix="extensions" src="{globalconstants:cms-extensionspath}" />
      </map:match>
      
      <!-- Hippo Community Apps -->
      <map:match pattern="hcamanager/**">
        <map:select type="resource-exists">
          <!-- check if custom hcamanager sitemap exists -->
          <map:when test="extensions://hcamanager/override.xmap">
            <map:mount uri-prefix="hcamanager"
              src="extensions://hcamanager/override.xmap"/>
          </map:when>
          <map:otherwise>
            <map:mount uri-prefix="hcamanager"
              src="{globalconstants:cms-hcamanagerpath}"/>
          </map:otherwise>
        </map:select>
      </map:match>

      <!-- general javascript -->
      <map:match pattern="js/**.js">
        <map:read type="resource" src="resources/js/{1}.js"/>
      </map:match>
      
      <!-- application images -->
      <map:match pattern="images/**">
        <map:match pattern="images/**.jpg">
          <map:read type="resource" src="resources/images/{1}.jpg" mime-type="image/jpeg"/>
        </map:match>  
        <map:match pattern="images/**.gif">
          <map:read type="resource" src="resources/images/{1}.gif" mime-type="image/gif"/>
        </map:match>  
      </map:match>
      
      <!-- application css -->
      <map:match pattern="css/**.css">
        <map:read src="resources/css/{1}.css" mime-type="text/css"/>
      </map:match>

      <map:match pattern="favicon.ico">
        <map:read src="context://resources/icons/hippo.ico" mime-type="image/x-icon"/>
      </map:match>

      <!-- mount project-specific subsitemap -->
      <map:match pattern="project-specific/**">
        <map:select type="resource-exists">
          <map:when test="{projectconstants:sitemap}">
            <map:mount uri-prefix="project-specific" src="{projectconstants:sitemap}" />
          </map:when>
          <map:when test="repository://configuration/project-specific/sitemap.xmap">
            <map:mount uri-prefix="project-specific" src="repository://configuration/project-specific/sitemap.xmap" />
          </map:when>
          <map:otherwise>
            <map:generate src="site://explorer/resources/xml/empty.xhtml"/>
            <map:serialize type="html"/>
          </map:otherwise>
        </map:select>
      </map:match>

      <!-- mount subsitemaps -->
      <map:match pattern="*/**">
        <map:select type="resource-exists">
          <map:when test="extensions://{1}/override.xmap">
            <map:mount uri-prefix="{1}" src="extensions://{1}/override.xmap" />
          </map:when>
          <map:otherwise>
            <map:mount uri-prefix="{1}" src="{1}/" />
          </map:otherwise>
        </map:select>
      </map:match>

    </map:pipeline>

  </map:pipelines>

</map:sitemap>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?