-
AuthorPosts
-
elmundo_news Friend
elmundo_news
- Join date:
- November 2010
- Posts:
- 51
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
June 9, 2011 at 4:22 am #165011Hi 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
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
June 9, 2011 at 4:26 am #395396Do you have Articles posted in dates of year 2011 ?
elmundo_news Friendelmundo_news
- Join date:
- November 2010
- Posts:
- 51
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
June 9, 2011 at 4:33 am #395398yes, I have several articles I just added. If I filter “all” I can see them
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
June 9, 2011 at 4:38 am #395400Please post the specific Url. where you see the attached image by you.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
June 9, 2011 at 4:43 am #395401I 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
2 users say Thank You to chavan for this useful post
elmundo_news Friendelmundo_news
- Join date:
- November 2010
- Posts:
- 51
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
June 9, 2011 at 4:53 am #395405Thank 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 Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
June 9, 2011 at 5:00 am #395406Your Most Welcome 🙂
AuthorPostsViewing 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
Archive module
Viewing 7 posts - 1 through 7 (of 7 total)