From: Jason H. <jc...@ey...> - 2001-09-14 17:30:10
|
I too have wondered this. I'd vote highly against the use of any absolute paths unless they are preceed by a definable constant. "Andreas Aderhold (Thyrell)" wrote: > I'm a bit concerned how about handling the resources/ tree in the built > system. > > The following problem occurs: > > I have a master template that is used in bcp defs in different levels e.g.: > > www.foo.com/en/manage/news/ > www.foo.com/en/manage/users/newsletters/ > .. > > The scripts and the master template there uses resources from our > build/en/htdocs/resources directory. One way to accomplish a correct loading > of the resources is to use absolute paths in the tags i.e. > src=/en/resources/whatever/file.gif. But what if we want run the scripts a > level deeper i.e. in www.foo.com/r2/en/manage/news. Problem. > > The way I sove this currently is running a symlink to > build/en/htdocs/resources in every htdocs subdir and using relative paths in > the templates i.e src=resources/whatever/file.gif. |