2012-02-09 2 views
1

어떻게 체크 아웃 기능을 비활성화합니까? 제 경우에는 꽤 쓸모가 없습니다. 체크인하는 유일한 방법은 백엔드에서입니다. OpenGlobal이 작동하지 않았습니다.Joomla 1.7에서 기사 체크 아웃을 비활성화하는 방법은 무엇입니까?

+0

불행하게도 OpenGlobal는 줌라 1.7을 지원하지 않습니다와 나는이 일 ... – Kevin

+0

왜 당신이 체크 아웃을 사용하지 않을 것 같은 다른 모듈을 찾을 수 없습니다? 거기에 이유가 있고 콘텐츠를 적절하게 저장하는 경우 자동으로 다시 체크인해야합니다. 물건을 올바르게 저장하는 경우에는 관리자 체크인을 사용할 필요가 없습니다. –

+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

무엇에 대해 : 다음 줄을 내가했던 방법을 파일 라이브러리/줌라/응용 프로그램/컴포넌트/controllerform.php

발언을 편집 Joomla 2.5 용 Autocheckin 플러그인? Joomla 3.0에서도 잘 작동하는 것 같습니다. 아마 1.7도.

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

관련 문제