Theme per folder overwrite / path traversal

2 messages Options
Embed this post
Permalink
C. Handel () Theme per folder overwrite / path traversal
Reply Threaded More More options
Print post
Permalink
   hi list,

in plone 2.X i used path traversal to overwrite components of the
theme on a folder basis. If i wanted to replace the logo in one folder
and all its sub-fodlers, i simply placed a new logo.jpg into the
folder and was done.

How can i do this with plone 3.X? If i got i right, theme related
images are first searched in the folders registered with portal_skins.
For Sections on the top level i could go for a CSS and use .section-xy
in the style selector to overwrite. But doing this for nested folders
or more then a few  gets ugly pretty fast.

Any Hints welcome

  Christoph

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Nate Aune () Re: Theme per folder overwrite / path traversal
Reply Threaded More More options
Print post
Permalink
What you are describing is *very* easy to do with Deliverance.
You would simply define different page classes for different sections of
the site.

For example, if you had an "applications" area, you could use this
expression in your rules.xml file:

     <match path="/applications" class="applications" />

and then define a page class:

   <rule class="applications">
         <theme href="/static/applications.html" />

        ... (your rules go here) ...

   </rule>

Then you could make an applications.html file which could have it's own
CSS, images, etc.

In order to give the frontpage of your website a different look-n-feel,
you would use this match path expression:

     <match path="exact:/" class="frontpage" />

You simple put your files into a /static folder, and point Deliverance
at this directory.

Nate

C. Handel wrote:

>    hi list,
>
> in plone 2.X i used path traversal to overwrite components of the
> theme on a folder basis. If i wanted to replace the logo in one folder
> and all its sub-fodlers, i simply placed a new logo.jpg into the
> folder and was done.
>
> How can i do this with plone 3.X? If i got i right, theme related
> images are first searched in the folders registered with portal_skins.
> For Sections on the top level i could go for a CSS and use .section-xy
> in the style selector to overwrite. But doing this for nested folders
> or more then a few  gets ugly pretty fast.
>
> Any Hints welcome
>
>   Christoph
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users