Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Pagesetter : display last publication form today
  • Posted: 08.05.2007, 15:53
     
    Starguezer
    rank:
    Helper Helper
    registered:
     March 2007
    Status:
    offline
    last visit:
    07.11.08
    Posts:
    143
    I've created a field with the date and time a TV series next airs, and I would like to create a block to display the next 4 broadcasts from today on. However, if I sort by "publishing date", the block displays the last 4 creations sorted by date. But I would like it to display the next 4 broadcast starting today and then, when the date is over, to display the next broadcast.

    I'm not sure I'm being really clear here, but if you get what I mean, do you have any idea how to do that ?

    Thanks for you help
    Dumb French boy

    --
  • Posted: 08.05.2007, 18:34
     
    videokid
    rank:
    Professional Professional
    registered:
     March 2003
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    901
    eg.

    Code

    filter=yourdatefield:eq:@now&sortby=$yourdatefield:desc


    something like that, check Pagesetter manual on elfisk.dk or pagesetter.net, lotz of snippets.

    - Igor

    --
    Have a nice day
    zikulapro.be is currently running
    Zikula 1.0.2
  • Posted: 08.05.2007, 18:46
     
    Starguezer
    rank:
    Helper Helper
    registered:
     March 2007
    Status:
    offline
    last visit:
    07.11.08
    Posts:
    143
    Sorry for this question :s I've haven't seen it :$

    A new time : Thank you

    --

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula