Usage Scenario: Creating Hierarchical Categories

An administrator wants to create a category and subcategory structure to group the fields in the system in a more organised manner.

  • The administrator logs into the administrator panel.
  • They click the ‘Add Category’ button.
  • They enter the following information as the parent category:
    • Category Name: User Information
    • Description: Contains basic information about the user.
    • ParentId: Blank (because it is the parent category)
  • Saves and the system automatically assigns an ID to this category (for example: 123).
  • The administrator clicks the ‘Add Category’ button again.
  • Entering the following information as a subcategory:
    • Category Name: Contact Information
    • Description: Contains contact fields such as phone and email.
    • ParentId: 123 (ID of the parent category)
  • The administrator adds another subcategory in the same way:
    • Category Name: Address Information
    • Description: Contains fields such as home and work addresses.
    • ParentId: 123
  • The system organises the categories hierarchically according to this structure.