cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [C2]Access control using sitemap
Date Sat, 09 Sep 2000 21:03:39 GMT
Giacomo Pati wrote:

> > > Do you seriously think that something like this
> > >
> > >  <page>
> > >   <sitebar xinclude:href="/sitebar"/>
> > >   <body>
> > >    blah blah
> > >   </body>
> > >  </page>
> > >
> > > is too hard to use?
> >
> > now make that include variable depending on what *mode* you
> > are in. ie Admins have different sitebar, people outside
> > company have different colors/skinning, and admins outside
> > company have both applied. ALso make it variable content
> > depending on time of day etc etc .
> 
> If you need logic to determine which sitebar to choose use an XSP page
> instead of the above to create the xinclude.

Naaah, *much* easier than this.

Look closer: href="/sitebar"... does it specify "which flavor" of
sitemap do I want?

No, it uses proper separation of concerns so this page author doesn't
"care" nor should have to care about which sitebar to use, just that it
will be served by the resource named "/sitebar".

It's up to the logic that drives the "/sitebar" resource (included into
the sitemap or programmed directly into the generator) to match eventual
run-time parameters that effect the outcome.

No need to place scripting or anything inside this page.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message