Mailing List Archive

[Zope-PTK] Search feature returning invalid hostname...
Ok, I'm sure I've just set something wrong here, but for the life of me I
can't figure out what it is. The search feature works great (I'm using
the latest CVS btw) but when you click on the URL, the server it points to
is an invalid one... ie:

The real url is http://www.firetail.org:8080/blah

but the search URL points to:

http://softengr/blah

Now the name of my site is softengr, but how can I get this to come up
correctly?

Thanks.
RE: [Zope-PTK] Search feature returning invalid hostname... [ In reply to ]
Hi,

I had the same problem and patched it by using the
&dtml-absolute-url; in the "<a HREF" path.

In the search DTML file just change the result table cell to:

<td>
<a href="&dtml-absolute_url;/<dtml-var
"SiteIndex.getpath(data_record_id_)">">
<img border=0 src="<dtml-var SCRIPT_NAME><dtml-var icon>">
&dtml-title;
</a>
</td>

Since going to the latest CVS the SCRIPT_NAME variable seems to be
broken so none of the icons show but, that is a different problem ;)

Best,

Chip

>-----Original Message-----
>From: zope-ptk-admin@zope.org [mailto:zope-ptk-admin@zope.org]On Behalf
>Of Ray Van Dolson
>Sent: Monday, February 14, 2000 6:20 PM
>To: zope-ptk@zope.org
>Subject: [Zope-PTK] Search feature returning invalid hostname...
>
>
>Ok, I'm sure I've just set something wrong here, but for the
>life of me I
>can't figure out what it is. The search feature works great (I'm using
>the latest CVS btw) but when you click on the URL, the server
>it points to
>is an invalid one... ie:
>
> The real url is http://www.firetail.org:8080/blah
>
>but the search URL points to:
>
> http://softengr/blah
>
>Now the name of my site is softengr, but how can I get this to come up
>correctly?
>
>Thanks.
>
>
>_______________________________________________
>Zope-PTK maillist - Zope-PTK@zope.org
>http://lists.zope.org/mailman/listinfo/zope-ptk
>
>