Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2727

Change templateId is optional for block text

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • None
    • None
    • None
    • None

    Description

      In a headless environment where no FTL templates are being created and the pages app is not used, block definitions have no need for a templateId. Without it, the block functions as expected and has no errors. When templateId is added, because the docs say it's required, it results in an error shown in the definitions/problems app similar to this:

      Documentation needs to be updated to say it's optional 

      Steps to Replicate on Demo instance:

      1. Import the attached yaml to /travel-demo-stories-app/blocks in the resources workspace
      2. Look at the definitions app and see a MAJOR error in the problems tab
      3. Modify basicText.yaml by commenting out the templateId line and save
      4. Look at the definitions app again and see the error is removed

      basicText block can be added to /travel-demo-stories-app/decorations/stories-app/apps/stories.yaml and used with or without the templateId property.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              amansell Alex Mansell
              caksamit Chuck Aksamit
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: