cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gelo1234 <gelo1...@gmail.com>
Subject Cocoon 3.0 components
Date Wed, 19 Jun 2013 18:46:20 GMT
Hi all,

I wonder if C3 still supports:

1. matchers in sitemap.xmap ?

e.g.
<map:matchers default="wildcard">
                        <map:matcher logger="sitemap.matcher.wildcard"
name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcher"/>
                        <map:matcher logger="sitemap.matcher.regexp"
name="regexp" src="org.apache.cocoon.matching.RegexpURIMatcher"/>

2. selectors in sitemap.xmap ?

e.g.
<map:selectors default="browser">
                        <map:selector logger="sitemap.selector.browser"
name="browser" src="org.apache.cocoon.selection.BrowserSelector">


3. Is it possible to define cutom matchers/selectors ? Any examples ?

4. actions in sitemap.xmap ?

e.g.
<map:actions>
                        <map:action logger="sitemap.action.request"
name="request" src="org.apache.cocoon.acting.RequestParamAction"/>


5.  <map:mount uri-prefix="" src="..." check-reload="yes"/>   ?


I've got Cocoon site that hosts multiple www domains, all based on the same
sitemap.xmap with <map:mount uri-prefix="" src="domain_X"
check-reload="yes"/>

so the configuration is as follows:

<map:pipeline>
              <map:select type="cutomDomainSelector">
                       <map:when test="domainA">
                            <map:mount uri-prefix="" src="./domaina"
check-reload="yes"/>
                       </map:when>
                       <map:when test="domainB">
                             <map:mount uri-prefix="" src="./domainb"
check-reload="yes"/>
                       </map:when>
               </map:select>
</map:pipeline>

Is it still possible with C3 ? Or should I use some separate blocks config
?
The problem with separate blocks config is that I want to use empty URI
(not different) for each site

So
site1: http://www.domainA.org/
site2: http://www.domainB.org/

NOT

http://www.some.org/domainA/
http://www.some.org/domainB/

under one C3 war (sitemap.xmap config). And I would like to have a common
block accessible from each site.

Greetings,
Greg

Mime
View raw message