Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 3 and Version 4 of Search_Pagination


Ignore:
Timestamp:
03/22/06 06:17:48 (13 years ago)
Author:
fredlin
Comment:

done

Legend:

Unmodified
Added
Removed
Modified
  • Search_Pagination

    v3 v4  
    11= Search Pagination = 
    2 // This article is not written done yet 
    32 
    43This article is showing you how to make a "Search Pagination" with SQLObject and kid.  
     
    129128 
    130129=== Advanced: === 
     130Prev: 
    131131 
    132 ... To Be Continued ... 
     132compare "start not equal to zero" if we need to show the "prev" button. 
     133 
     134{{{ 
     135<span py:if = "start!=0"> <a href = "/?start=${(start/10)-1}">Prev</a> </span> 
     136}}} 
     137 
     138Next: 
     139 
     140compare "set_end" and "set_size" to decide if we need to show the "Next" button. 
     141{{{ 
     142<span py:if = "end &#x03C; query_size"><a href = "/?start=${(start/10)+1}">Next</a> </span> 
     143}}} 
     144 
     145Since in kid template you can't use small than (<) operator in "kid"'s "py:if" statement.  
     146 
     147the operator is mis-recognized as a html quote. 
     148 
     149You can use "&#x03C;" for "<" operator and "&#x03E;" for ">" operator.