Set Joomla Publishing Defaults
Written by Josh Lyon   
Saturday, 26 July 2008 17:04

I got tired of having to click through the tabs in Joomla 1.0.x to change my publishing state from unpublished to published and check the show on frontpage item everytime I posted a new article. That being said, I did a little research and figured out how to change the default settings. It requires you to modify the core joomla code, so if you patch your site to a new joomla version and they replace the file you will have to reapply this patch.  All you have to do is open the /components/com_content/content.php file and look for the $row->state variable in the editItem() function. By default it is set to 0 and you will want to change it to 1.

The $row->state variable will change the default publishing status. 0 being unpublished and 1 being published.

The $row->frontpage variable will change the default status for whether or not an item will show up on the frontpage. 0 means it will not show up on the frontpage and 1 means it will show up on the frontpage.

In my content.php file, the $row->state variable was on line 1,843 - but this may vary for you depending on the version of Joomla you are running.

Comments (2)add comment

Page Turning Software said:

0
Why every print publication should also be a digital publication
Think of a digital publication as an online version of your print publication with a web address or URL, complete resemblance to the print version and a realistic page flipping effect. Add features such as search, print, share, PDF download, and adserving, viewer tracking & reporting and you have an impressive digital version of your print publication.
 
April 21, 2009 | url
Votes: +0

Joshua Briley said:

0
This helped alot
Hi Josh, this blog post came in handy. I was able to change the published and front page status on my Joomla site. Because the site is private, I'm trying to set a default on the post Access Levels. I scoured the content.php file, but wasn't quite sure how to handle it. Seems to be a more complex function. Any ideas?
 
October 13, 2009
Votes: +1

Write comment

busy