Kentico Xperience 13 documentation and ASP.NET Core

Most documentation about running Xperience applications under ASP.NET Core can be found in a dedicated section: Developing Xperience applications using ASP.NET Core. The rest of the documentation still applies, but some code samples and scenarios might need slight modifications for Core projects.

All major differences between the MVC 5 and Core platforms are summarized in Migrating to ASP.NET Core.

×

Configuring categories

Categorizing is useful when you want to allow users to separate and organize the pages they create in the system. For example, based on the page topic.

This page describes how to configure categories so that they are usable by your site's content editors. To learn more about categories in general and how to work with them as a content editor, refer to Assigning pages to categories.

Listing pages based on categories

For information about the different available approaches to page taxonomy, see Categorizing pages.

Displaying categories on individual pages

You can display a list of categories to which a given page is assigned. To achieve that, you (or your site's developers) need to write custom code in the MVC application that provides your website – load the category data into the models used to display your pages and adjust the corresponding views.

Allowing users to categorize pages via fields

You can allow editors and other users to categorize pages on the Content tab of the Pages application. This makes it possible for users to categorize pages when creating them. Users can also categorize existing pages without having to access the Properties tab.

To allow users to categorize pages on the Content tab, add a new field to the related page types:

  1. Open the Page types application.
  2. Edit the given page type.
  3. Switch to the Fields tab.
  4. Click New field.
  5. Fill in the properties of the new field as follows:
    • Field type: Standard field
    • Field name: PageCategories (for example)
    • Data type: Text
    • Size: 100
    • Field caption: Category (for example)
    • Field description: any description that you want users to see when hovering over the field caption
    • Form control: Multiple categories selector
    Creating a page category field for a page type
  6. Save the field.

Now whenever users edit pages of this type on the Content tab or create new pages of this type, they can assign categories to the page.
Assigning categories on the Form tab


Was this page helpful?