【问题标题】:How to disable article checkout in Joomla 1.7?如何在 Joomla 1.7 中禁用文章结帐?
【发布时间】:2012-03-01 22:33:57
【问题描述】:

如何禁用结帐功能。在我的情况下它非常没用,唯一的检查方法是从后端。 OpenGlobal 不起作用。

【问题讨论】:

  • 不幸的是,OpenGlobal 不支持 Joomla 1.7,我找不到像这样的其他模块...
  • 为什么要禁用结帐?它的存在是有原因的,如果您正确保存内容,它应该会自动重新签入。如果您正确保存内容,则永远不必使用管理员签入。
  • 我有一些奇怪的人,他们不保存或取消文章编辑,所以留下了检查。

标签: joomla checkout checkin


【解决方案1】:

你可以在后端自己做:编辑文件libraries/joomla/application/component/controllerform.php

按照我的方式注释以下几行:

     // 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;
//      }
}

【讨论】:

  • 相当粗糙,但我想现在必须这样做,谢谢。
【解决方案2】:

Joomla 2.5 的 Autocheckin 插件怎么样?它似乎也适用于 Joomla 3.0。也可能是 1.7。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-21
    • 2016-07-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-29
    • 2014-04-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多