[Zope] YA newbie question

2000-06-07 Thread Randy Edwards

   I've got a newbie question that I can't seem to find an answer to after
checking docs/faqs.  This is sort of design-related.

   Presently I write web pages as tabled modules which are each put into
various *.html files.  I then string pages together with various modules
using server side includes along with whatever specific code/text goes into
that page.

   I figured this would be easy to do with Zope.  I created a subdirectory
called "modules" and put some modules into that; for example, "leftbuttons"
is a dtml method containing a table data block which contains the standard
left menu button HTML.  I figured I could whip up a page and at the
appropriate place in that page, do a '' and
have that code inserted into the page.

   That was my thinking.  "leftbuttons" views properly by itself.  However,
when I try that dtml-var statment above, the page displays raw HTML. 
Obviously I'm using a wrong tactic or am not grasping a concept here. 
Anyone want to smack me (again:-) with a clue-bat?  TIA.

-- 
 Regards, | Moore's Law: Every 2 years CPU power will double.
 .| 
 Randy| Gates' Law: Every 18 months software speed will halve.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Newbie question: graphics in subdirs

2000-06-07 Thread Randy Edwards

I'm going to rewrite my web site in dtml and am using the latest stable
Zope.  Well, I should say I'll rewrite it after I get over this infuriating
newbie problem I have. :-)
`
I'm trying to get Zope to display an image from a subdir.  I've whipped up a
simple dtml document called "test".  Test contains this:



This is the  Document.
Now show a graphic: 




   That references an image file in the root directory called logo.jpg. 
Everything works, it displays fine.

   However, I want to keep all of my commonly used image files in a
subdirectory called /images.  So I create a folder called "images", upload
another copy of logo.jpg into it, everything's fine.  I change the dtml in
the "test" document to be "".  And it doesn't
work, giving me an error message of:

Error Type: KeyError
Error Value: /images/logo.jpg

   Looking through the docs and tutorials I can't find anything on this --
and I know it's mindlessly simple.  Can someone whack me with a clue-bat? 
TIA.

-- 
 Regards,| Debian GNU/ __  o  http://www.debian.org
 .   |/ / _  _  _  _  _ __  __
 Randy   |   / /__  / / / \// //_// \ \/ /
 ([EMAIL PROTECTED]) |  // /_/ /_/\/ /___/  /_/\_\
 http://www.golgotha.net | because lockups should only be for convicts.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )