[Zope-DB] Begginer question

Remy Pinsonnault remy_pinsonnault at roche.ca
Tue May 11 15:20:58 EDT 2004


Here is a working example Alexandre.

You need to use these tags: start, previous-sequence-start-index,
next-sequence-start-index. BEGINATINDEX variable here would be a hidden
field.

See Zope Book for more information on available tags
(http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvDTML.stx/Appendi
xA.stx).

<dtml-in "PARENTS[0].objectValues(['File'])" size="20" previous sort="title"
reverse start="BEGINATINDEX">
    <FORM ACTION="<dtml-var URL>">
        <INPUT TYPE="HIDDEN" NAME="BEGINATINDEX" VALUE="<dtml-var
previous-sequence-start-index>">
        <INPUT TYPE="SUBMIT" VALUE="<-- Previous" width="15">
    </FORM>
 </dtml-in>

 <dtml-in "PARENTS[0].objectValues(['File'])" size="20" next sort="title"
reverse start="BEGINATINDEX">
    <FORM ACTION="<dtml-var URL>">
        <INPUT TYPE="HIDDEN" NAME="BEGINATINDEX" VALUE="<dtml-var
next-sequence-start-index>">
        <INPUT TYPE="SUBMIT" VALUE="Next -->" width="15">
    </FORM>
</dtml-in>

Remy


Date: Tue, 11 May 2004 12:06:29 -0300 (ART)
From: Alexandre Magalhaes <shin_guyver at yahoo.com.br>
Subject: [Zope-DB] Begginer question
To: zope-db at zope.org
Message-ID: <20040511150629.52188.qmail at web61003.mail.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

Hi all,

I just started using Zope and I have a question that
I'm sure most of you here can answer it easily :)

I want to know how can I count the iterations of the
<dtml-in> tag, so I can show a determined number of
hits of an SQL search in a page for instance and have
a link to show the next hits.

Thanks,
Alexandre

______________________________________________________________________

Yahoo! Messenger - Fale com seus amigos online. Instale agora! 
http://br.download.yahoo.com/messenger/



------------------------------

_______________________________________________
Zope-DB mailing list
Zope-DB at zope.org
http://mail.zope.org/mailman/listinfo/zope-db


End of Zope-DB Digest, Vol 10, Issue 16
***************************************




More information about the Zope-DB mailing list