[Zope-CMF] Different view actions

Florent Guillaume fg@nuxeo.com
Tue, 10 Sep 2002 14:23:42 +0000 (UTC)


Magnus Heino  <magnus.heino@pleon.sigma.se> wrote:
> Lets say I have a CMF site with 10 Documents. Using the type tool, I can set
> the view action of the type.
>
> Now, what if i want different view actions for each and every Document. Do I
> have to add it as 10 different types, or has someone come up with a better
> solution?

The simplest way I can think of would be to have one type, with a
default view that examines a property on the document to decide what
real view to display.

In any case I'd never create 10 different types for the problem you describe.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com