Re: Template per section

Jock Coats <jock.coats-+bkrO7OXlTBZut5cgo8xMlpr/1R2p/[email protected]>
Newsgroups gmane.comp.web.zope.plone.design
Message-ID <[email protected]>
Okay, I'll bite, as a complete newbie...

On 10 Mar 2004, at 16:27, Michael Zeltner wrote:

> Jock Coats wrote:
>> And would like to load a completely different template for each.
>
> just a small note: template changes for designs/layout are *bad* ;)

Why?  If there is another way to do it I would be very pleased to know. 
  I read the various documents about the Plone site and one or two other 
places and have tinkered, for example, with CSS to make some changes.  
And I would probably be able to get some more mileage out of CSS 
changes, so that different sections of the site took on different 
colours and so on.

But what we really want are different layouts per section.  We have 
some nice photos of our members on stage performing, and they won't all 
allow content in the same places - some photos are of a person down one 
side of a photo so the content would go in a large box to the one side, 
others have an artiste in the middle of the photo and we would want to 
put menu down one side and content down the other.  Some only have 
space for content along the top or bottom of a photo.

Some of these may indeed be static introductory pages with links 
manually coded into the database backed content areas, but if I can 
make reasonable 'templates' (well that's what I am calling them - it 
looks like I really mean 'layouts') to fit onto the photos themselves, 
we would like to use them for database backed content if we can.

But if I am making life uber-complex for myself, let me know and I will 
look at different options.  But I really would like to stay with 
Zope/Plone, and I assume that as I learn a little more I'll be able to 
find workarounds.  But I'll give your suggestion a go anyway (if I can 
work out the python script bit - that'll be my first one of those!).

Thanks,

Jock

>
>> Is such a thing possible?  I'm guessing that it has something to do 
>> with
>> 'acquisition' in the skinning system, but cannot seem to see how or 
>> where
>> I would do it.
>
> create different skins which have all different version of the files 
> you need on the section.
>
> and then switch the skin for a folder with an access rule (create a 
> python script and then an access rule that uses it) that uses 
> context.changeSkin('super_bloated_skin')
>
> please send us a not if it worked ;) then i'll set up a howto
>
> regards, michael
>
> PS: <sarcasm>seems like we can remove this list and point everyone to 
> my inbox</sarcasm> ;P ;)
> -- 
> </gro.jiin//:ptth> °jiin
>
--
J1e Morrell Hall, OXFORD, OX3 0BP, United Kingdom
T: +44 1865 485019 F: +44 845 1275714 M: +44 7769 695767



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.