[Zope] Structured Text & Variables
Andreas Jung
andreas@andreas-jung.com
Tue, 5 Feb 2002 17:39:46 +0100
ok,
objectIds() returns only the list of IDs of the documents
but not the objects themselves. In this case you need to use
objectValues(). sequence-var-title should work then.
-aj
----- Original Message -----
From: "Learned" <learned@talentsinc.net>
To: <zope@zope.org>
Sent: Wednesday, February 06, 2002 22:58
Subject: [Zope] Structured Text & Variables
> Thanks Andreas, that's almost got it, but it
> raised a new question on something I thought I
> understood.
>
> <ul>
> <dtml-in expr="objectIds('DTML Document')">
> <li><a href="showdoc?docId=<dtml-var sequence-item>"><dtml-var
> sequence-item></a></li><br>
> </dtml-in>
> </ul>
>
> is what you suggested, and I changed it to show the title
> of the document thus:
>
> <ul>
> <dtml-in expr="objectIds('DTML Document')">
> <li><a href="showdoc?docId=<dtml-var sequence-item>"><dtml-var
> sequence-var-title></a></li><br>
> </dtml-in>
> </ul>
>
> It still returns the DocID, not the title. I also tried
> using dtml-var title by itself as my assumption was within
> a dtml-in block, the current variables would point to what
> ever document was being referrenced as it has been pushed
> onto the top of the stack. Neither worked. What obvious
> element of sequence vars am I missing?
>
> _______________________________________________
> 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 )
>