Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
cc5c043d
Commit
cc5c043d
authored
Feb 15, 2001
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to dtml-in documentation. Thanks to John Morton. Closes bug 1972.
parent
af75ac2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
lib/python/Products/OFSP/help/dtml-in.stx
lib/python/Products/OFSP/help/dtml-in.stx
+27
-5
No files found.
lib/python/Products/OFSP/help/dtml-in.stx
View file @
cc5c043d
...
...
@@ -28,7 +28,11 @@ in: Loops over sequences
sort=string -- Sorts the sequence by the given attribute name.
start=int -- Begins the batch with the given index number.
start=int -- The number of the first item to be shown, where
items are numbered from 1.
end=int -- The number of the last item to be shown, where items
are numbered from 1.
size=int -- The size of the batch.
...
...
@@ -37,7 +41,8 @@ in: Loops over sequences
orphan=int -- The desired minimum batch size.
overlap=int -- The number of items to overlap between batches.
overlap=int -- The number of items to overlap between batches. The
default value is 3.
previous -- Iterates once if there is a previous batch. Sets batch
variables for previous sequence.
...
...
@@ -147,9 +152,17 @@ in: Loops over sequences
previous-sequence-start-index -- The starting index of the
previous batch.
previous-sequence-start-number -- The starting number of the
previous batch. Note, this is the same as
'previous-sequence-start-index' + 1.
previous-sequence-end-index -- The ending index of the previous
batch.
previous-sequence-end-number -- The ending number of the
previous batch. Note, this is the same as
'previous-sequence-end-index' + 1.
previous-sequence-size -- The size of the previous batch.
previous-batches -- A sequence of mapping objects with
...
...
@@ -164,9 +177,17 @@ in: Loops over sequences
next-sequence-start-index -- The starting index of the next
sequence.
next-sequence-start-number -- The starting number of the next
sequence. Note, this is the same as 'next-sequence-start-index'
+ 1.
next-sequence-end-index -- The ending index of the next
sequence.
next-sequence-end-number -- The ending number of the next
sequence. Note, this is the same as 'next-sequence-end-index'
+ 1.
next-sequence-size -- The size of the next index.
next-batches -- A sequence of mapping objects with information
...
...
@@ -203,11 +224,11 @@ in: Loops over sequences
<p>
<dtml-in largeSequence size=10 start=start previous>
<a href="<dtml-var absolute_url>
?start=<dtml-var previous-sequence-start-index
>">Previous</a>
<a href="<dtml-var absolute_url>
<dtml-var sequence-query>start=<dtml-var previous-sequence-start-number
>">Previous</a>
</dtml-in>
<dtml-in largeSequence size=10 start=start next>
<a href="<dtml-var absolute_url>
?start=<dtml-var next-sequence-start-index
>">Next</a>
<a href="<dtml-var absolute_url>
<dtml-var sequence-query>start=<dtml-var next-sequence-start-number
>">Next</a>
</dtml-in>
</p>
...
...
@@ -218,7 +239,8 @@ in: Loops over sequences
</p>
This example creates *Previous* and *Next* links to navigate
between batches.
between batches. Note, by using 'sequence-query', you do not lose
any GET variables as you navigate between batches.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment