[Zope] ZCatalog - How to Meta-Type the Relative Path?

Maik Jablonski maik.jablonski@uni-bielefeld.de
Thu, 10 Jan 2002 10:55:22 +0100


hello,

i want to add the relative path of my objects  to the meta-types of a 
ZCatalog. how do i do that?

i tried "absolute_url", but that's a mess, when you talk to your zope as 
http://localhost:8080... then the paths include 'localhost'... exporting 
to a production server would fail.

so my personal workaround is:

<dtml-var "myCatalog.getpath(data_record_id_)">

but is there another (simpler) solution for my dumb web-designers, who 
only grasp simple <dtml-var variable> -syntax?

by the way: what's the standard 'path'-property in an ZCatalog-Index 
for? seem's to be always empty...

thank u in advance.

maik.