Strapi V4无法覆盖主页

发布于 2025-02-06 09:49:20 字数 816 浏览 0 评论 0 原文

我有一项任务可以用自定义覆盖大多数管理面板页面,但是我做不到。 我创建了与Admin软件包中的Strapi GitHub存储库中相同的目录结构,但是什么都没发生,

src
├── extensions
│   ├── admin
│   │   └── admin
│   │       └── src
│   │           └── pages
│   │               └── HomePage
│   │                   ├── ContentBlocks.js
│   │                   ├── HomeHeader.js
│   │                   ├── index.js
│   │                   └── SocialLinks.js
│   └── content-manager
│       └── strapi-server.js
├── index.js
├── plugins
└── themes
    └── override.cs

更新03/08/2022

看起来Strapi Team决定在V4中删除自定义选项,因此,如果您想覆盖诸如dashboard页面之类的内容,则必须使用补丁包

I have a task to override most of admin panel pages with custom, however I couldn’t do that.
I created the same directory structure as in strapi github repo for admin package, but nothing happened

src
├── extensions
│   ├── admin
│   │   └── admin
│   │       └── src
│   │           └── pages
│   │               └── HomePage
│   │                   ├── ContentBlocks.js
│   │                   ├── HomeHeader.js
│   │                   ├── index.js
│   │                   └── SocialLinks.js
│   └── content-manager
│       └── strapi-server.js
├── index.js
├── plugins
└── themes
    └── override.cs

Update 03/08/2022

It looks like Strapi team decided to remove customization options in v4, so if you want to override something like dashboard pages you'll have to use patch-package

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

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

发布评论

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

评论(1

月光色 2025-02-13 09:49:21

根据文档,您可以执行许多自定义选项,这是:

自定义管理面板有助于更好地反映您的品牌标识或
修改一些默认的Strapi行为:


There is a complete section in the official docs called Admin panel customization.

According to the docs, you can do a lot of customization options, which are:

Customizing the admin panel is helpful to better reflect your brand identity or to
modify some default Strapi behavior:

  • The access URL, host and port can be modified through the server configuration.
  • The configuration object allows replacing the logos and favicon, defining locales and extending translations, extending the
    theme, and disabling some Strapi default behaviors like displaying
    video tutorials or notifications about new Strapi releases.
  • The WYSIWYG editor can be replaced or customized.
  • The forgotten password email can be customized with a template and variables.
  • The webpack configuration based on webpack 5 can also be extended foradvanced customization.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文