Re: [campsite-support] constraint publishing date
  • Copy/paste the following code in your template:

    {{ php }}
    $date = date_create();
    $date->modify("-1 day");
    $this->assign('yesterday', $date->format("Y-m-d"));
    {{ /php }}

    {{ list_articles constraints="publish_date greater_equal $yesterday" }}

    {{ /list_articles }}

    Mugur


    On Mon, Jan 11, 2010 at 7:43 PM, wrote:

    > Author: Terix
    > Link: http://code.campware.org/phorum/read.php?8,7987,7987#msg-7987
    >
    > --------------------------------------------------------------------------------
    >
    > Hi everybody,
    >
    > how can i show an article list limited to just the two last days? i need to
    > show only the articles of "today" and "yesterday"
    >
    > --
    > Sent from Campware Forums
    > http://code.campware.org/phorum
    >