Re: "include" Reference-Object?
Hartmut Goebel <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Organization | Goebel Consult |
| Message-ID | <[email protected]> |
Hallo Stefan,
Danke für den Tipp!
> Ich mache das oft so:
[... Beispiel ...]
Ich habe es jetzt etwas anders gelöst:
PageTemplate myContentType_view (default-View des CT):
<html metal:use-macro="here/main_template/macros/master">
<div metal:fill-slot="main">
<div metal:define-macro="main"
tal:define="object nocall:object | nocall:here"> <<< Trick!
<!-- Hier der HTML-Code für das Rendern des Objektes,
es statt "here" wird immer auf "object" verwendet
-->
</div>
</div>
</html>
In dem Page-Template, in dem ich den Content-Type einbauen will verwende
ich:
.... tal:define="object ..."
<div metal:use-macro="object/myContentType_view/macros/main" />
Ich spare mir damit das zusätzliche Pagetemplate.
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
smime.p7s
(application/x-pkcs7-signature, 4.6 KB) - not displayed