如何在 Joomla 1.7 中禁用文章签出?

发布于 2025-01-04 04:02:02 字数 56 浏览 3 评论 0原文

如何禁用结帐功能。对我来说这几乎没有用,唯一的签入方法是从后端。 OpenGlobal 不起作用。

How do you disable the checkout functionality. It's pretty useless in my case and the only way to check in is from backend. OpenGlobal didn't work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ヅ她的身影、若隐若现 2025-01-11 04:02:02

您可以在后端自己完成:编辑文件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;
//      }
}

You can do it yourself in the backend: edit the file libraries/joomla/application/component/controllerform.php

remark the following lines the way I did:

     // 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;
//      }
}
jJeQQOZ5 2025-01-11 04:02:02

Joomla 2.5 的自动检查插件怎么样?它似乎也适用于 Joomla 3.0。也许也适用于 1.7。

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

What about the Autocheckin Plugin for Joomla 2.5? It seems to work for Joomla 3.0 as well. Maybe for 1.7 too.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文