Re: [Zope] dtml-in 'one record per page' problem
Cesar A. K. Grossmann writes: I'm using a report that must return one instance by page, but it's not working very well... If the query returns more than one result, Zope presents only two pages. I'm using Zope 2.1.6 in a Linux box. What does is mean: "presents only two pages"? Probably, you get wrong navigation elements. This would be due to a bug for "dtml-in size=1". There is a patch for this at URL:http://www.dieter.handshake.de/pyprojects/zope/dt_in.pat In fact, the patch does more (allows for uniform navigation elements at both start and end of sequence batch). There was an announcement in this list around June 10, 2000. AFAIK, the patch is integrated into Zope 2.2. Here are a excerpt of the dtml code used: dtml-in sqlQuery size=1 orphan=1 You should use "orphan=0". "orphan=1" allows for one "orphan" to be moved, i.e. you may get 2 records on a page. Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] dtml-in 'one record per page' problem
Hi! I'm using a report that must return one instance by page, but it's not working very well... If the query returns more than one result, Zope presents only two pages. I'm using Zope 2.1.6 in a Linux box. Here are a excerpt of the dtml code used: dtml-in sqlQuery size=1 orphan=1 overlap=0 start=query_start dtml-if sequence-start dtml-if previous-sequence a href="dtml-var URLdtml-var sequence-queryquery_start=dtml-var previous-sequence-start-number" (previous)/a /dtml-if previous-sequence table /dtml-if sequence-start ... a lot of trtd ... dtml-if sequence-end /table dtml-if next-sequence a href="dtml-var URLdtml-var sequence-queryquery_start=dtml-var next-sequence-start-number" (next)/a /dtml-if next-sequence /dtml-if sequence-end dtml-else p No records. /p /dtml-in In case someone is wondering about the utility of a report with only one record per page, all I can say is that this is a very big one record, and the original idea was to present only one record at time. -- César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html ___ Zope maillist - [EMAIL PROTECTED] 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 )