Sunday, October 10, 2010

jooma hack: how to give permission to editors (can be more than one) to edit all articles including other editors also

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.. :)

1 comment:

  1. Really good solutions. Keep it up and bring something new. Good luck.

    ReplyDelete