Welcome to Squishdot Websites Squishdot How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Archiving Mode ?
Newbies Posted by mob on Wednesday March 13, 01:53PM, 2002
from the coffee-drinking dept.
How do I seperate 50 articles on 5 pages with a next page button ?

Hi there,

we realized our guestbook with squishdot. There are about 50 articles now, all shown on one page. But this takes long time to load over a 64kb line cause of all the funny pictures... So we would like to show only 10 articles on the first page, 10 on the second, 10 on the 3rd.. etc. Is this possible ?

Thanx, mob

<  |  >

 

Related Links
  • Articles on Newbies
  • Also by mob
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Re: Archiving Mode ?
    by Calin on Saturday March 30, 12:31AM, 2002
    It is possible. You can make your index_html use something like this:

    <dtml-call "REQUEST.set('reviewed',1)">
    <dtml-call "REQUEST.set('meta_type','Article')">
    <dtml-if "squish_name_here(REQUEST=REQUEST,internal=1)">
    <dtml-in "squish_name_here(REQUEST=REQUEST,internal=1)" sort=created reverse size=10 start=query_start>

    <dtml-if previous-sequence>
    <a href="http://www.domain.com/index_html<dtml-var sequence-query>query_start=<dtml-var previous-sequence-start-number>">
    (<b>Read Previous <dtml-var previous-sequence-size> News Items</b>)</a><p>
    </dtml-if previous-sequence>

    NORMAL ARTICLE DTML CODE HERE

    <dtml-if sequence-end>
    <dtml-if next-sequence>
    <p><a href="http://www.domain.com/index_html<dtml-var sequence-query>query_start=<dtml-var next-sequence-start-number>">
    (<b>Read Next <dtml-var next-sequence-size> News Items</b>)
    </a>
    </dtml-if next-sequence>
    </dtml-if sequence-end>

    </dtml-in>
    </dtml-if>
    [ Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.