You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de> on 2002/10/01 15:39:31 UTC

Re: == Database driven website with Cocoon ==

On 30.Sep.2002 -- 01:02 PM, Christian Haul wrote:
>
> Another one would be to retrieve the path using one of the
> DatabaseSelectActions and use the InputModule-substitution in sitemap
> to read that file. (available in 2.1 (cvs) for interpreted sitemap and
> 2.0.4 (cvs) for compiled sitemap)

InputModule-substitution is not needed because the result will be
placed in sitemap parameters anyway.

So, this boils down to: Use anyone of the DatabaseSelectActions and
use the returned sitemap parameter for your path.

So, off my head:

<map:match pattern="*">
  <map:act type="findPath">
     <map:generate src="{documents.path[0]}"/>
     <map:serialize/>
  </map:act>
  <map:redirect-to uri="file-not-found"/>
</map:match>

given that everything is setup properly before.

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>