page template, acquistion and/or fill-slot problem
Hello, me again So I've managed to use multiple templates with acquisition in order to have different look'n'feel. One problem I've got is the following. 1) I call the macros from the page templates in that way : <HTML metal:use-macro="here/page_template.pt/macros/page"> 2) I defined a folder, with another page_template.pt in it. This folder is called different_template 3) To have a different look I call the pages with this url html://somesite/different_template And that works ! But, only for the first page when I access somesite/folderA/different_template I keep getting the front page (that's logic since zope acquire the index_html from the root folder not the one from folderA). Do you have any ideas on how I could do that ? (I already tried to pass the whole path (folderA/different_template/page_template.pt) and it works but then I've got a problem with the slots in the template that are not overriden). Do you have any ideas on how I can achieve the comportement I want ? -- (°> Nicolas Évrard / ) Liège - Belgique ^^
Nicolas Évrard wrote at 2003-7-10 13:04 +0200:
So I've managed to use multiple templates with acquisition in order to have different look'n'feel.
I would use the CMF and its skins. An AccessRule would change the selected skin when a folder is entered. Dieter
* Dieter Maurer [20:21 10/07/03 CEST]:
Nicolas Évrard wrote at 2003-7-10 13:04 +0200:
So I've managed to use multiple templates with acquisition in order to have different look'n'feel.
I would use the CMF and its skins.
Yep I know, but I've already coded everything in plain old zope. So I was wondering if there was a solution in zope.
An AccessRule would change the selected skin when a folder is entered.
Is it possible to do such things in zope. I know there is access rules but I never used them. -- (°> Nicolas Évrard / ) Liège - Belgique ^^
Nicolas Évrard wrote at 2003-7-10 23:09 +0200:
* Dieter Maurer [20:21 10/07/03 CEST]:
Nicolas Évrard wrote at 2003-7-10 13:04 +0200:
So I've managed to use multiple templates with acquisition in order to have different look'n'feel.
I would use the CMF and its skins.
Yep I know, but I've already coded everything in plain old zope. So I was wondering if there was a solution in zope.
There is probably... But, it will probably be more difficult than to integrate the skins tool. I will do this within the next two weeks. I expect it to be easy (something like 1 day of work). Dieter
participants (2)
-
Dieter Maurer -
Nicolas Évrard