[Zope] Structured Text

Andreas Jung Andreas Jung" <andreas@zope.com
Tue, 5 Feb 2002 15:33:16 +0100


Write a dtml-method "showdoc":

<dtml-var "_[docId]" fmt="structured-text">


pass DocumentX as parameter to the showdoc method. So
your links should look like:

<a href="showdoc?docId=Document1"> ...

- aj 


----- Original Message ----- 
From: "Learned" <learned@talentsinc.net>
To: <zope@zope.org>
Sent: Wednesday, February 06, 2002 21:22
Subject: [Zope] Structured Text


> I understand and have played with that aspect of presenting
> structured text. Where I am getting hung up is how to build
> a dynamic list of structured text documents and present them
> so they show up formatted.
> 
> For example:
> 
> FolderA:
>  Document1
>  Document2
>  Document3
>  Document4
> 
> Assume all documents in FolderA are structured text documents.
> How can I build a list of all those documents on the fly in 
> such a way that when the user selects one, he will get the
> display formatted.
> 
> I understand how to display Structured Text, and I understand
> how to build a list of links, but I don't see how to tie the
> two together.
> 
> > To display a DTML Document as structured text you must use
> > the following:
> 
> > <dtml-var yourStxDocument format="structured-text">
> 
> > - aj 
> 
> 
> _______________________________________________
> 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 )
>