Goals

  • Make the title field of training-templating-foundation's first page dialog required
  • Know more on how to decorate definitions

 Results

  • Page title required when a page is created

Tasks / Procedure

  1. Create the decorations folder structure to mimic the path to the dialog definition

    1. Just like in the previous exercise, try to achieve this structure in your file system:
      /training-templating-essentials/decorations/training-templating-foundation/dialogs/pages/first.yaml

  2. Decorate the page dialog using decorations.

    1. Create a new dialog definition (first.yaml) in /training-templating-essentials/decorations/training-templating-foundation/dialogs/pages.

    2. You have done a similar one in the previous exercise. Try to solve it on your own. It's not difficult! (smile)

      form:
        tabs:
          - name: tabMain
            fields:
              - name: title
                required: true
      
    3. Save to apply the changes.
  3. Check your work.

    1. Work on your Author Instance and open my-first-page.
    2. Edit page properties and notice the * mark in the title field:
    3. Delete the current page title and press SAVE CHANGES.

    4. As it is mandatory, it won't allow you to proceed without filling out the field:
    5. Press CANCEL to complete the exercise.


  • No labels