[Zope] Acquisition isn't always bandwidth and browser-cachefriendly, advice needed

Bruce Elrick belrick@home.com
Sun, 14 Nov 1999 09:51:38 -0700


Christopher Petrilli wrote:
> 
> On 11/14/99 9:20 AM, Farzad Farid at farzy@via.ecp.fr wrote:
> 
> > How can this problem be solved elegantly without completely putting aside
> > the acquisition process? How can I do it in this particular case with
> > images?
> 
> This problem is already solved if you do:
> 
>     <dtml-var logo>
> 
> It will insert the absolute location, non acquired.  This was fixed a while
> back. You can also do this:

The problem with this is that your images need to reside in the root folder,
which can get cluttered if you have a lot of graphics.  More that one person
has thought of creating an images folder at the root level, which then
necessitates:

<dtml-var "images.logo">,
<dtml-var "PARENTS[-1].images.logo">, or
<dtml-with images><dtml-var logo></dtml-with>.

Only the middle of these three gives you an absolute path name on the image.

At least that's what I've discovered.  There may be a more elegant solution
:-)

Cheers...
Bruce
--
Bruce Elrick, Ph.D.                       Saltus Technology Consulting Group
Personal: belrick@home.com                          IBM Certified Specialist
Business: belrick@saltus.ab.ca          ADSM, AIX Support, RS/6000 SP, HACMP