How make archive only for blog page in Joomla 2.5 ?

For change Archives base on Joomla Blog. follow these step :

Open archive.php files in your editor /components/com_content/models/archive.php

Search here code around line no. 125

if ($year = $this->getState('filter.year')) {
$query->where('YEAR('. $queryDate . ') = ' . $year);

And replace it with this.

//if ($year = $this->getState('filter.year')) {
$query->where('a.catid=' . InsertBolgItemID);

Open helper.php file (modules/mod_articles_archive/helper.php) and search around line no. 21

$query->where('state = 1 AND checked_out = 0');

Replace it with this code

$query->where('state = 1 AND catid=InsertBlogCatID AND checked_out = 0');

Thats All!
Enjoy code


Sr. Software Engineer

Posted in Joomla
3 comments on “How make archive only for blog page in Joomla 2.5 ?
  1. SAMP says:

    Ich hab online mehr als 2 Stunden gesurft ,aber selten Artikel gefunden, die so interessant wie
    deine waren. Das ist echt wunderbar fuer mich!

  2. Hello there! I know this is kinda off topic however , I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest authoring a blog
    post or vice-versa? My blog addresses a lot of the
    same topics as yours and I think we could greatly benefit
    from each other. If you are interested feel free to shoot me an email.
    I look forward to hearing from you! Great blog by the way!

  3. kinky sex says:

    Hi you have a nice website over here! Thanks for posting this interesting information for us! If you keep up the great work I’ll visit your website again. Thanks!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Recent Posts
%d bloggers like this: