Joomla Change Default Article Status

by Elaine on May 29, 2010

Joomla defaults all the articles you create to be published ie: publish status = “yes” and show on frontpage =”no” .   If you need to change these defaults to not publish and show on frontpage defaults, here is a way to do it.  You will need to edit your backend code so only change it if you really know what you’re doing.

  1. Login to your server backend, you will need to access the Joomla core files
  2. Find and edit the file ` administrator/Components/com_content/controller.php  `
  3. Search for the ` editContent function` around line 445

To change the default Publish = No

  1. Find this code:   $row->state = 1;  
  2. Change it to:    $row->state = 0;

To change the default Show on frontpage =  Yes

  1. Find this code:   $row->Frontpage = 0;
  2. Change it to:    $row->Frontpage = 1;
 Joomla Change Default Article Status


Elaine is the founder of CmsMind, an online blog providing Joomla and Wordpress tutorials. Elaine lives in Toronto and when she is not online, she is either Marathon and Triathlon training or travelling and racing somewhere in the world. Find her also at: Save Money, Premium Themes and Templates, and at Webhosting Tips.

More Posts - Website

{ 4 comments… read them below or add one }

Gauth March 21, 2011 at 3:34 pm

Great, your saved my hair. Thanks


Elaine March 21, 2011 at 3:42 pm

Hi Gauth,
No problem! Thanks for your visit.


Vu Doan Tu May 24, 2012 at 2:42 am

What for Joomla 2.5?
Things there seem to be very different. Can you look back on your hack.


Stefan November 3, 2012 at 3:32 pm

Solution for Joomla 2.5

Find and edit the file “components/com_content/models/form/article.xml”
Search for “state” and change the default value to “0”
Thats’s it!


Leave a Comment

Captcha Captcha Reload

Older Post:

Newer Post: