更改 Django CMS 管理面板中的部分名称

发布于 2024-11-28 13:43:57 字数 156 浏览 2 评论 0原文

是否可以更改 Django CMS 管理面板中的部分名称?我正在使用 cmsplugin_blog,它作为名为“Cmsplugin_Blog”的部分出现在管理面板中。我想将标题重命名为“新闻”,因为我正在使用此模块进行新闻发布。

我还可以将描述每个条目的“条目”一词更改为其他词吗?

Is it possible to change a section name in the Django CMS admin panel? I am using cmsplugin_blog which appears in the admin panel as a section named 'Cmsplugin_Blog'. I'd like to rename the title to 'News' since I'm using this module for news publishing.

Can I also change the the word 'Entry' that describes each individual entry for some other word?

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

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

发布评论

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

评论(1

自由如风 2024-12-05 13:43:57

一种丑陋的方法是在 cmsplugin_blog.Entry._meta 上猴子修补 verbose_nameverbose_name_plural。至于部分名称,我不知道该怎么做。

An ugly way to do that would be to monkey patch verbose_name and verbose_name_plural on cmsplugin_blog.Entry._meta. As for the section name, I don't know how to do that.

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