Hi all,
It seems in joomla that one editor can not edit other editors article.
We have found a solution on this.
Go to components\com_content\views\article\view.html.php
here you will find line as
if($this->getLayout() == 'form'){
just replace this line by
if(($this->getLayout() == 'form')||($this->getLayout() == 'blog')) {
Now Go to libraries\joomla\application\component\view.php
just insert following code
if($this->_template=='')
{
$this->_template=getcwd().'\components\com_content\views\article\tmpl\form.php';
}
before if ($this->_template != false)
in function loadTemplate( $tpl = null)
and you are done.
hope you will enjoy this.. :)
Sunday, October 10, 2010
joomla hack : how to avoid articles to be checked-out in joomla
Problem: In joomla there are diffrent users like registered, authors, editors, administrators, super administrators.
editors are able to edit the articles. Sometime what happen, editor click on edit
and without saving that article, clicks on back button or get logged out. because of this that particular article get locked.
no one except that editor and super administrator can checked in that article.
Editor can do it by saving that article and super administrator can do that by logging at admin site and clicking tools ->Global Check in
I found one easy solution. just write following code in your index.php and you will never come across the problem of checked out.
here is he solution
$db =& JFactory::getDBO();
$query_content = "UPDATE jos_content SET checked_out = '0'";
$db->setQuery($query_content);
$result = $db->query();
?>
I hope this will work with you too. Just be careful. Global Checked in feature
is imp in joomla. It has its own significance.
editors are able to edit the articles. Sometime what happen, editor click on edit
and without saving that article, clicks on back button or get logged out. because of this that particular article get locked.
no one except that editor and super administrator can checked in that article.
Editor can do it by saving that article and super administrator can do that by logging at admin site and clicking tools ->Global Check in
I found one easy solution. just write following code in your index.php and you will never come across the problem of checked out.
here is he solution
$db =& JFactory::getDBO();
$query_content = "UPDATE jos_content SET checked_out = '0'";
$db->setQuery($query_content);
$result = $db->query();
?>
I hope this will work with you too. Just be careful. Global Checked in feature
is imp in joomla. It has its own significance.
Subscribe to:
Comments (Atom)