[Zope] ZPT issues
Tom Deprez
tom.deprez@uz.kuleuven.ac.be
Wed, 6 Nov 2002 13:34:35 +0100
Hi,
I'm not sure how to implement something with ZPT and need your advice:
I'll do my best to explain the problem, but I'm not sure if I will succeed,
since it is not easy to show.
I've a site which has several folders, they all follow the same strategy.
Basicly what you have is a page with the top half some general information.
The bottom half is split in two 'panes': the left contains a list of items,
the right contains more information of the selected item. People can
delete/edit/look a selected item. Depending on what people want to do, the
right bottom 'pane' has to be different. Every action is in a different
folder, so the layout looks like:
Root
...
Lists
Flowers
Delete
Edit
Insert
Boats
Delete
Edit
Insert
...
Now, I'm implementing this in PT, but I'm a little stuck here, since it
seems ZPT can't stack. eg I've a master PT which defines the general layout
(menus) and contains slots, situated in the root. The slots are toppane (to
fill in the toppane) and bottompane (to fill in the bottompane). To be
correct, I should create a new master page for the 'Flowers' & 'Boats'
folders, because they have a different layout, namely 'top pane', 'bottom
left pane', 'bottom right pane'.
But when I do this, aren't I then overruling the way for what PT were
designed? If I now want to change the layout of my site, I have to change 2
pages (and who know how much more if we go further into detail). Changing 2
isn't that bad, however, most of the parts are in fact the same! The menu
handling etc is the same...
I was wondering if it is possible to have PT which can inherit from another
PT, but can extend it with new slots/macros. Which is at the moment not
possible, I think.
Thanks in advance,
Tom.