是否可以删除“新文章” Joomla网站中所有部分的按钮?

发布于 2025-01-24 20:27:33 字数 244 浏览 4 评论 0原文

我和伴侣正在大学实习,我们正在从事的项目是一个小的Joomla 4.1网站。我们的主管要求我们覆盖内容插入的机制,以便在为每个访问者出现之前,需要由主持人批准的作者提交的文章 - 结果,我们创建了自己的内容表和与之链接的状态表。另请注意,鉴于网站的较小范围,我们还假设各节和类别之间的对应关系。

问题在于,Joomla UI允许任何身份验证的用户上传文章,并通过任何部分中的“新文章”按钮将其设置为所有访问者。有没有办法删除这些按钮或用我们自己的东西覆盖它们?

A mate and I are doing an internship at university, and the project we are working on is a small Joomla 4.1 website. Our supervisors asked us to override the mechanics of content insertion so that an article submitted by an author needs to be approved by a moderator before being featured for every visitor - as a result, we created our own Content table and a Status table linked to it. Also note that given the small scope of the website, we are also assuming a 1-to-1 correspondence between sections and categories.

The problem is that the Joomla UI lets any authenticated user upload articles and set them visible to all visitors through a "new article" button in any section. Is there a way to remove these buttons or override them with something of our own?

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

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

发布评论

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

评论(1

束缚m 2025-01-31 20:27:33

尚未使用Joomla UI,但是在传统网站中,您可以使用CSS或JS隐藏/禁用按钮。

例如,可以禁用或隐藏stackoverflow(类名称为“外部”)中的“询问问题”按钮,如下所示:

CSS:

/* Disable the button */
. aside-cta {opacity: 0.1;pointer-events: none;} 

/* OR hide the button */
. aside-cta {display:none }

或可以使用JavaScript代替CSS:

askBtn = document.querySelector('.aside-cta');

// For disabling the button : 
askBtn.style.opacity = 0.1
askBtn.style["pointer-events"]= 'none';

// For hiding the button : 
askBtn.style.display = 'none' 

Haven't used the Joomla UI, but in traditional websites, you can use CSS or JS to hide/disable buttons.

For example, the "Ask Question" button in Stackoverflow (class name "aside-cta") can be disabled or hidden as follows:

CSS:

/* Disable the button */
. aside-cta {opacity: 0.1;pointer-events: none;} 

/* OR hide the button */
. aside-cta {display:none }

Or Javascript can be used instead of CSS:

askBtn = document.querySelector('.aside-cta');

// For disabling the button : 
askBtn.style.opacity = 0.1
askBtn.style["pointer-events"]= 'none';

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