Beiträge von woluweb

    One more thing: you could have 3 loops if you want to display respectively for Yesterday, Today and Tomorrow:

    1. if you want to compare for Yesterday

    PHP
    <?php if (HtmlHelper::date($item->created, Text::_('m-d')) == HtmlHelper::date('now -1 day', Text::_('m-d'))) : ?>

    2. if you want to compare for Tomorrow

    PHP
    <?php if (HtmlHelper::date($item->created, Text::_('m-d')) == HtmlHelper::date('now +1 day', Text::_('m-d'))) : ?>

    Hallo,

    My suggestion of solution :

    0. first let's suppose that all 366 articles for the 366 days are in the same Category and that for each of them you set the correct date (well, correct day and month, you can put anything for year, hour, minute, second)

    1. create an override (or alternate layout) for a Module displaying Articles, like Latest Articles or Articles Newsflash (let's take Newsflash here)

    2. edit /templates/cassiopeia/html/mod_articles_news/default.php

    3. there you can add a "if condition" to check whether it is the anniversary of the creation date of the article

    4. here are the two changes to the original code

    4.1. you have to add 2 lines of "use"

    4.2. you have to add the "if" as written below (and the "endif" of course)