[campsite-support] Prev - Next Listing
  • Hi!

    Below we have a listing of articles, 10 of them on one page. How do I make a listing that would get the next 10 articles (11-20) and then the next 10 following ones... etc?

    I have understood it would be possible with the
    current_list
    http://code.campware.org/manuals/campsite/3.3/index.php?id2&lang=en-us

    But didn't yet the grasp the idea which element I should put in it.

    After the listing should be just Previous - Next and the word "Previous" wouldn't be possible to select if you are in the first listing page, the same for the word "Next" if you are in the last. Can it also say, how many this kind of pages it has in the listing?

    S @ Gene
    - - - - - - -
    {{ local }}
    {{ set_issue number="1" }}
    {{ unset_section }}
    {{ list_articles length="10" constraints="type is Article onsection is on onfrontpage is on" order="byPublishDate desc" }}

    {{ $campsite->article->deck }}


    {{ $campsite->article->name }}


    {{ if $campsite->article->teaser_a != "" }}

    {{ $campsite->article->teaser_a }}


    {{ /if }}
    {{ if $campsite->article->teaser_b != "" }}

    {{ $campsite->article->teaser_a }}


    {{ /if }}

    {{ if $campsite->article->has_image(1) }}

    {{ /if }}

    {{ $campsite->article->intro->first_paragraph }}




    {{ /list_articles }}
    - - - - - - -