[Zope] Help! very stuck.

Jonathan Cheyne jonathan@home-all.org.uk
Wed, 15 Dec 1999 18:37:40 +0000


Hi. I am trying to use zope to create a site where all staff can upload
content prepared any old how into a few directories (say using
netscape's composer or maybe word save as html etc).

I have created a method called viewer which basically says

<dtml-var standard_html_header>
<dtml-var "_[file]">
<dtml-var standard_html_footer>

which I want to call from the search page or in the index_html of each
folder with something like ...

...
<dtml-in "objectItems(['DTML Document','Image','File'])">
<dtml-if "_.getitem('id',1) != 'index_html' and title != ''">
<li><a href="viewer?file=<dtml-var id>"><dtml-var title></a>
etctetc
...

or even better from the catalog ...
...
<a href="viewer?file=<dtml-var "catalog.getpath(data_record_id_)">">
<dtml-var title></a>
...

this doesn't work whereas using the output from the site-map examples
works but only for the directory you are in too not subfolders. (same as
catalog but at least it partly works)
eg.
...
!--#in "objectItems(['DTML Document','Image','File'])"-->
<!--#if "_.getitem('id',1) != 'index_html' and title != ''"-->
<li><a href="viewer?file=<!--#var id-->"><!--#var title--></a>
etctetc
...

I have to be doing something wrong. My aim is to always view objects via
another object thus not having to have any dtml in the content document
(so anyone can submit stuff without mucking up the site look, navigation
etc by omitting/erasing/knowing about headers and footers, really)

Make any sense? Been done before?

I am so close and yet so far .... help desperately needed - been at this
for a few days now, come full circle, tres depressing.

Yours hopefully

Jonathan jonathan@home-all.org.uk