Browse Source

Merge pull request #23605 from abpframework/auto-merge/rel-9-3/3958

Merge branch dev with rel-9.3
pull/23619/head
Ma Liming 1 year ago
committed by GitHub
parent
commit
8093393c7b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 17
      docs/en/modules/cms-kit/index.md

17
docs/en/modules/cms-kit/index.md

@ -72,6 +72,23 @@ CMS kit packages are designed for various usage scenarios. If you check the [CMS
- `Volo.CmsKit.Public.*` packages contain the functionalities used in public websites where users read blog posts or leave comments.
- `Volo.CmsKit.*` (without Admin/Public suffix) packages are called as unified packages. Unified packages are shortcuts for adding Admin & Public packages (of the related layer) separately. If you have a single application for administration and public web site, you can use these packages.
## Integrating Public and Admin Packages in a Unified Application
If you are using a single application for both admin and public web site, it's important to configure the global layout settings appropriately. By default, the layout is set for a **Public Website**, which is suitable for public-facing pages. However, when your application serves both admin and public pages, you should explicitly set the global layout for all CMS Kit pages.
To do this, add a `_ViewStart.cshtml` file to your web project at `/Pages/Public/CmsKit/_ViewStart.cshtml` and configure the layout as shown below:
```html
@using Volo.Abp.AspNetCore.Mvc.UI.Theming
@inject IThemeManager ThemeManager
@{
// default: GetPublicLayout()
Layout = ThemeManager.CurrentTheme.GetApplicationLayout();
}
```
> The `_ViewStart.cshtml` file is used to set the layout for all pages in the `CmsKit` folder.
## Internals
### Table / collection prefix & schema

Loading…
Cancel
Save