From: Geoffrey T. <gta...@na...> - 2002-11-18 19:53:10
|
Have you tried includeURL('../header.html')? - Geoff -----Original Message----- From: Luis Castro [mailto:lc...@ce...] Sent: Monday, November 11, 2002 12:45 PM To: web...@li... Subject: [Webware-discuss] includeURL and paths I've found the following behavior using includeURL: Suppose we have a directory structure as follows: /bla/mycontext /pageTemplates /application1 /application2 and inside pageTemplates we have a BasePage sub classed from Page. This is the page from which pages are sub classed in application1 and application2 at 'root level' in mycontext we have components that are used from BasePage like footer.psp, header.html, as well as a style sheet file. All of this components are included using includeURL at the proper methods. Everything works fine when using a page (sub classed from BasePage) at mycontext level. 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. If its a feature, we do not know how to get that effect, since we do not want to duplicate our files in every directory of application# ----------------------------------------------------------- |