I'd like to create a page template. Call it showMe. I want showMe to format/pretty a structured text document. I would like to use shoeMe to create meta tags for the a subset of the dublin core, add navigation elements to the output .. may add something later. However, I'm running rings around myself with terminology. Let's say I have a folder called /infoSource/ within /infoSource/ I have my showMe template. then within /infoSource/ I have a folder object called docStore. It is docStore that 'holds' all my structured text documents. So I could theoretically use /infoSource/docStore/coolFile/showMe and rely on aquistion to find showMe? but then how do I pass the 'coolFile' into the showMe template? any TALES and other advice would be appreciated. -- David Bear College of Public Programs/ASU Mail Code 0803
David Bear wrote at 2003-1-28 14:58 -0700:
I'd like to create a page template. Call it showMe. .... /infoSource/docStore/coolFile/showMe
and rely on aquistion to find showMe? but then how do I pass the 'coolFile' into the showMe template? It is available inside "showMe" as the predefined variable "here".
Please read the PageTemplate section in the Zope Book (2.6 edition). It is found on Zope.org. Dieter
On Wed, Jan 29, 2003 at 09:02:38PM +0100, Dieter Maurer wrote:
David Bear wrote at 2003-1-28 14:58 -0700:
I'd like to create a page template. Call it showMe. .... /infoSource/docStore/coolFile/showMe
and rely on aquistion to find showMe? but then how do I pass the 'coolFile' into the showMe template? It is available inside "showMe" as the predefined variable "here".
Please read the PageTemplate section in the Zope Book (2.6 edition). It is found on Zope.org.
Thanks for all the comments. it was far easier than I though <div tal:replace='structure here'> replaced content </div> did it. so if the above tal is in a showMe template, and a structured text doc is called theDoc, I can view it via /zope/is/cool/theDoc/showMe sometimes, things are WAY TOO simple.. -- David Bear College of Public Programs/ASU Mail Code 0803
participants (2)
-
David Bear -
Dieter Maurer