[Zope] Problems with uplevel icon

Nico de Boer nico@nfg.nl
12 Jun 2002 16:38:17 +0200


I have got some problems with my uplevel icon. The product I use has
an icon, but besides that I want to use a UpLevel icon. This icon has
to be in the www folder of my product.

I've tried this with the following code:

def __init__(self):
        """I use only the necessary code"""
        self.id = id
        self.title = title
        self.uplevelicon = 'www/UpFolder_icon.gif'

And then I want to call it from my Zope Page Template:

        <a class="newslink" href=""
           tal:attributes="href container/absolute_url"><img
           src="" width="16" height="16" border="0" alt="up"
           tal:attributes="src container/uplevelicon; alt container/meta_type" /></a>

But Zope doesn't see it as an Image object.

Or is there a method like this:

        <img src="/misc_/OFSP/Folder_icon.gif"
           tal:attributes="src item/icon">
        <span tal:replace="item/meta_type">Meta-Type</span>


Greetz Nico