[Zope] Links

Loren Stafford lstaffor@dynalogic.com
Fri, 11 Feb 2000 07:50:43 -0800


That depends. If Products, Clients and Delivers are all at the same level,
you can make relative links ( href="Products") which the browser turns into
a request URL that contains the calling method ( http://../Clients/Products

Then, in Products, you the value of PARENTS[1] should be Clients. You'll
have to try this to see if it works in your situation.

There's also REQUEST['HTTP_REFERER'] which is the URL of the referring page,
which most browsers sent to the server. Not all browsers do so, however.

Otherwise you'll have to set a cookie, send a form field, or use a
server-side session database to pass the referrer's ID to Products.

-- Loren

----- Original Message -----
From: Pedro Silva <psilva@ruido-visual.pt>
To: Zope - Questions <zope@zope.org>
Sent: February 11, 2000 03:57 AM
Subject: [Zope] Links


> Hi,
>
> I have a dtml method that have some links to a another dtml method. All
> those links are directed to this dtml method.
> How can I in this dtml method, know which link call him?
>
> Somethings like this
>
> Clients     link to Products
> Delivers    link to Products
>
> How can I in the Products dtml method, know which link, Clients or
Delivers,
> call him?
>
> Please send you answers to: psilva@ruido-visual.pt
>
> Thanks,
>
> Pedro
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>