[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Using Basic Zope Objects

nobody@nowhere.com nobody@nowhere.com
Fri, 20 Sep 2002 16:22:41 -0400

A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/BasicObject.stx#3-113


      Now, we want this logo to be seen on every page up in the upper
      left-hand corner, so put a reference to it in the
      *standard_html_header* method::

            <dtml-var logo>

        % Anonymous User - June 4, 2002 2:44 pm:
         An extra note here would be in order about "Acquisition".
         This file "logo" is in the same directory or it can be in any parent directory. however with the promotion of
         using folders to organize files, explaination of how an IMG link would go to a child folder would be most

        % Anonymous User - June 21, 2002 6:06 pm:
         Suppose you have a folder at root level called "images" where image objects are, and you have and image with
         name "myImage" ..then it would be like this:
         <img src="images/myImage"  
         ...  so its folder + / + image object name

        % Anonymous User - June 25, 2002 1:29 pm:
         I would assume that standard ".." notation for moving up in the directory
         structure still applies?  (in other words, if "logo" is in the root directory,
         and you are in another directory within root, then you would access it with
         <img src="../logo">)

        % Anonymous User - Aug. 2, 2002 4:40 am:
         That doesn't work for me, I have an image in Sales, so I write <dtml-var Sales/float.jpg> and I just get an
         error, <img src=Sales/float.jpg> works, so what's wrong?

        % Anonymous User - Aug. 2, 2002 4:43 am:
         I tried it again with renaming it to float and it still doesn't work, it works though if it is in the root
         directory with the standardhtmlheader file, but why can't it be in any other directory to work?

        % Anonymous User - Sep. 9, 2002 10:33 am:
         Is standard_html_header a method or an object? Both? What kind of object would it be? I'm having trouble
         keeping these concepts clear.

        % hansa - Sep. 20, 2002 4:22 pm:
         Aug 2: this is a dtml-question, post to zope@zope.org ("Sales['float.jpg']" or so)
         Sep 9: its a method. Methods dont have properties (like "title"), they aquire them from their callers.