Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-94525

Instructional text in templates is not working

XMLWordPrintable

      Problem

      Adding instructional text to a template will result in plain text instead.

      Environment

      Confluence 8.5.6, not reproducible on 8.5.5 or prior.

      Steps to reproduce

      • Go to   > General Configuration > Global Templates and Blueprints
      • Create a new Global Page Template that I called Page Template 
      • Add a line of text and a line of Instructional Text
      • Go ahead and create a new Confluence page using this new template
      • Upon publishing the Page, we can see that both texts are shown.

      2024-02-15_10-30-18.mp4

      Expected Results

      Upon publishing the Page, we should see the normal text being displayed but the instructional text should not be displayed when viewing the page

      Actual Results

      We can see that instructional text when viewing the page has normal text.

      Workaround 1

      1. Install "Confluence Source Editor" add-on
      2. Go to Space Tools > Content Tools > Templates or go to    > General Configuration > Global Templates and Blueprints
      3. Locate/Create the template which you would like to add the instructional text
      4. Click on "Edit"
      5. Click on "<>"
      6. Add instructional text between <ac:placeholder> tags. i.e:
        <ac:placeholder>Some Instructional Text</ac:placeholder>  
      1. Save the template

      Workaround 2

      Add any text, and on the same row I add the Instructional Text, and it will add a small space with the gray space next to it, however, you're unable to type in it, just like the bug mentioned:

      But when you try to add the Instructional Text a second time without deleting the previous one, you will now have a "double-size" gray space, but this time you will be able to click inside of it and type normally inside the Instructional Text box:

      (Cursor inside the box)

      (Normal typing)

        After hitting enter, you will now be able to delete the other text/character you used before, here's an example, I created a template "showing" these steps:

      Notes

              nhoxuan Nam Ho
              f7fe77b3bc24 Filipe Rodrigues
              Votes:
              44 Vote for this issue
              Watchers:
              56 Start watching this issue

                Created:
                Updated:
                Resolved: