[Zope] finding that variable...

Jens Vagelpohl tommymi@concentric.net
Wed, 14 Jul 1999 09:05:14 -0400


hi michael,

thanks for the hint. this works great on all DTML *documents*, but i have
some DTML *methods* which render pages and those unfortunately don't have a
"properties" tab where i could add such a variable. :(

any ideas for (elegantly) adding my "helpID" variable so it will work in
those page rendering methods as well?

Jens Vagelpohl

> -----Original Message-----
> From: Michael Bernstein [mailto:mbernstein@profitscape.net]
> Sent: Tuesday, July 13, 1999 14:56
> To: Jens Vagelpohl
> Cc: zope@zope.org
> Subject: Re: [Zope] finding that variable...
>
>
> Jens Vagelpohl wrote:
>
> > here is a tricky one and i haven't come up with a good solution so
> > far. i have a site which uses a common standard_html_header to display
> > all site navigation links. what i want to do now is make the "help"
> > link, which is part of the standard_html_header, context sensitive.
> > for this purpose i somehow need to catch information within that
> > header about what document it is currently being called for.
>
> depending on your setup, you could easily customize the help page on a per
> folder basis by linking to a help_html method, and placing one in
> each folder.
>
> If you have more than one content file per folder, you can attach
> a 'helpfile'
> string property to DTML methods holding content, and create a
> link like this:
>
> --untested code--
> <a href="<!--#var helpfile-->">Help</a>
>
> HTH,
>
> Michael Bernstein.
>