From: Ian B. <ia...@co...> - 2002-11-12 06:22:14
|
On Mon, 2002-11-11 at 11:44, Luis Castro wrote: > the problem here is that the call > includeURL('header.html') > when we are in a page from the directory application1 will actually look for 'header.html' inside application1, and if we use includeURL('/header.html') will not have the desired effect of including the file from mycontext. I would encourage you to make a servlet class for each application (usually it's called SitePage), and you can add headers and footers in there. You can also read the file like: self.write(open('header.html').read()) Look to Page.writeBodyParts for overriding and adding your header/footer. Ian |