2012-02-09 30 views
1

どのようにチェックアウト機能を無効にしますか?私の場合はかなり役に立たず、チェックインする唯一の方法はバックエンドからです。 OpenGlobalは機能しませんでした。Joomla 1.7の記事チェックアウトを無効にする方法は?

+0

残念ながら – Kevin

+0

は、なぜあなたは、チェックアウトを無効にしたい... OpenGlobalはJoomlaの1.7をサポートしていないと私はこの1つのような他のモジュールを見つけることができませんか?それは理由があり、コンテンツを適切に保存していれば自動的にチェックインされるべきです。物事を適切に保存している場合は、管理者チェックインを使用する必要はありません。 –

+0

記事編集を保存したりキャンセルしたりしない奇妙な人がいるので、チェックアウトされています。 – test

答えて

1

あなたはバックエンドでそれを自分で行うことができます。

 // Attempt to check-out the new record for editing and redirect. 
/*  if ($checkin && !$model->checkout($recordId)) { 
       // Check-out failed, display a notice but allow the user to see the record. 
       $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_CHECKOUT_FAILED', $model->getError())); 
       $this->setMessage($this->getError(), 'error'); 
       $this->setRedirect('index.php?option='.$this->option.'&view='.$this->view_item.$this->getRedirectToItemAppend($recordId, $urlVar)); 

       return false; 
     } 
     else {*/ 
       // Check-out succeeded, push the new record id into the session. 
       $this->holdEditId($context, $recordId); 
       $app->setUserState($context.'.data', null); 
       $this->setRedirect('index.php?option='.$this->option.'&view='.$this->view_item.$this->getRedirectToItemAppend($recordId, $urlVar)); 

       return true; 
//  } 
} 
+0

かなり荒いですが、今はやらなければならないでしょう、ありがとう。 – test

0

何についての次の行に私がやった方法は、ファイルライブラリ/ joomlaの/アプリケーション/コンポーネント/ controllerform.php

発言を編集しますJoomla 2.5のAutocheckinプラグイン?それはJoomla 3.0でもうまくいくようです。多分1.7のために。

http://www.joomlaplugin.org/autocheckin-plugin/

関連する問題