[Zope] Q on dtml-methods parameters and Renderer/ZLink and self

Chris Niekel chris-zope@mimar.demon.nl
Sat, 26 Feb 2000 01:39:15 +0100


Hi,

I'm quite new to Zope and I want to implement a 'special' link class. 
I found Renderer (which solved my first problem) and ZLink is a good
base for the rest of my project.

What I'm trying to do is that i can do
<dtml-var "links.slashdot"> in my documents, and that in the output
    <a href="http://slashdot.org">slashdot</a> appears.
I've got that working.
My next step is that I want to create an intermediate page that says
something like:
    URL: slashdot.org
    Note: Last time I checked, this site was down. 

So (and now comes my question), in a dtml-method of my ZLink class,
I want to include the url of the link-object. I tried a 
<a href="&dtml.url-spam;"> from jim's howto, but the class method doesn't
know the name of the object, and "self" doesn't work.

Although I'm not making myself clear (I think), I hope someone can provide
me a hint or an answer to how my method can use the url of 'self'.

Greetings,
    Chris Niekel


-- 
Geek code version 3.1:
GCS d- s++:+ a- C++$ ULSI++ P+(---) L+++>++++ E--- W++ N++ o K? w--- O M- 
V?>-- PS+ PE-() Y PGP+ t+>+++ 5? X- !R tv+ b DI++ D+ G>++ e+++ h--- r+++ y+++