Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • elmundo_news Friend
    #165011

    Hi everyone,

    I just have a quick question about changing the years for the archive filter when looking for archive news. Im attaching the picture where you can see that if I want to filter the news for this current year I cant because there is no 2011, it only has the options from 2000-2010. How do I add 2011 and actually I would like it to start from 2010 and end in 2015 for the future.

    Thanks in advance,

    Juan


    1. archive-view
    chavan Friend
    #395396

    Do you have Articles posted in dates of year 2011 ?

    elmundo_news Friend
    #395398

    yes, I have several articles I just added. If I filter “all” I can see them

    chavan Friend
    #395400

    Please post the specific Url. where you see the attached image by you.

    chavan Friend
    #395401

    I got it.

    Go to this File: componentscom_contentviewsarchiveview.html.php

    Replace the start and end in the following.


    for ($i=2000; $i <= 2010; $i++) {
    $years[] = JHTML::_('select.option', $i, $i );
    }

    For Ex: start from 2010 and end in 2015


    for ($i=2010; $i <= 2015; $i++) {
    $years[] = JHTML::_('select.option', $i, $i );
    }

    Note: If you Find my Post useful please click on the Thanks Icon

    elmundo_news Friend
    #395405

    Thank you, that was fast. I had been working on that before when I translated the months a some stuff but I had forgotten where it was. Now everything works the way I wanted.

    Thanks a lot!!!
    :laugh:

    chavan Friend
    #395406

    Your Most Welcome 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  chavan 13 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum