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

Allow the option to hide the template variable names from the resulting page

    • 0
    • 3
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Most of the time when using template variables people are using other elements on the page to indicate what to enter in the fields, eg:

      Question Answer
      Name: <templatevariable>
      Address: <templatevariable>
      Phone: <templatevariable>

      Having the variable name displaying after the input field can look messy or confusing in certain cases. It would be nice to have the option to hide or display them per template.

            [CONFSERVER-28474] Allow the option to hide the template variable names from the resulting page

            This workaround did the job for us. Edit the template and insert "HTML Macro" at the bottom of the template. And add the above code Danny gave into the HTML macro and save the template.

            Raghavendra Amara added a comment - This workaround did the job for us. Edit the template and insert "HTML Macro" at the bottom of the template. And add the above code Danny gave into the HTML macro and save the template.

            Hi Guys,

            I am trying to find where is Custom HTML for Confluence, where I can enter Danny's code,  can anyone please help me with this. Thanks.

            Harbir Hundal added a comment - Hi Guys, I am trying to find where is Custom HTML for Confluence, where I can enter Danny's code,  can anyone please help me with this. Thanks.

            Karalee added a comment -

            Hi Steven, we are using Danny's code in an HTML macro at the bottom in Confluence 5.5.3 as a potential workaround for you

            Karalee added a comment - Hi Steven, we are using Danny's code in an HTML macro at the bottom in Confluence 5.5.3 as a potential workaround for you

            This is not working in confluence 5.4. Does anyone have another solution? It looks pretty ugly!!

            Steven Parsons added a comment - This is not working in confluence 5.4. Does anyone have another solution? It looks pretty ugly!!

            Hi Jarka,

            To hide the template variabel, go the the custom html of Confluence and insert at the end of the body the following code:

            <style type=text/css>

            .templateparameter

            { display: none; }

            </style>

            Cheers,

            Danny

            Danny van den Berg added a comment - Hi Jarka, To hide the template variabel, go the the custom html of Confluence and insert at the end of the body the following code: <style type=text/css> .templateparameter { display: none; } </style> Cheers, Danny

            Please fix. I haven't seen a form in any other application that displays fieldnames to users.

            Jarka Jarmola added a comment - Please fix. I haven't seen a form in any other application that displays fieldnames to users.

              Unassigned Unassigned
              dunterwurzacher Denise Unterwurzacher [Atlassian] (Inactive)
              Votes:
              21 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated: