[z3-five] Question about skins usage

Maciej Wiśniowski maciej.wisniowski at coig.katowice.pl
Tue Jul 25 10:19:26 CEST 2006


Hi

I've written product that defines my skin (named Skintest) but as far as 
I found I
can use this in two ways only:

1. by writing ++skin++Skintest/ in url
2. by defining my skin as defaultSkin with overrides.zcml

I based on Web Component Development with Zope3 from
Philipp von Weitershausen, althouht I'm using Zope 2.9.4 and
Five 1.4 now.

Say, I would like to have few skins used in few different products.
Is there a way to define which view uses which skin?
Or how should I define URLs in my application to take care
about skins? So far I'm using something like

'%s/@@some_view.html' % (context.absolute_url())

do I have to write:

'%s/++skin++Skintest/@@some_view.html' % (context.absolute_url())

or implement something as a skin chooser like:

'%s/%s/@@some_view.html' % (context.getCurrentSkin(), 
context.absolute_url())

What is the preffered way of doing such things?

-- 
Maciej Wisniowski


More information about the z3-five mailing list