是否可以删除“新文章” Joomla网站中所有部分的按钮?
我和伴侣正在大学实习,我们正在从事的项目是一个小的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尚未使用Joomla UI,但是在传统网站中,您可以使用CSS或JS隐藏/禁用按钮。
例如,可以禁用或隐藏stackoverflow(类名称为“外部”)中的“询问问题”按钮,如下所示:
CSS:
或可以使用JavaScript代替CSS:
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:
Or Javascript can be used instead of CSS: