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

New render type needed so that plugins can know if they are being rendered on templates.

    • Icon: Suggestion Suggestion
    • Resolution: Won't Fix
    • None
    • None
    • Windows XP SP2, Confluence 2.10 Standalone, JDK1.6
    • 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.

      From the remote debugging stack trace, MacroRendererComponent and ResourceAwareMacroDecorator is supplying null entity object to TOC macro when it is added to a template and the template is previewed an error message is thrown:-

      Error formatting macro: toc: java.lang.IllegalArgumentException: The content may not be null.
      

      http://developer.atlassian.com/jira/browse/TOC-86

        1. Pic 01.jpg
          Pic 01.jpg
          382 kB
        2. Pic 02.jpg
          Pic 02.jpg
          363 kB

            [CONFSERVER-14004] New render type needed so that plugins can know if they are being rendered on templates.

            Hello - thank you for sending in this suggestion! Unfortunately, we do not have any plans to implement this in the foreseeable future. In order to set expectations correctly, we're closing this request now. If you'd like to describe more how this would help in your own use of Confluence, we may be able to provide better guidance.
            Thanks again for your idea, and please feel free to submit more!

            Regards,
            Confluence Product Management

            Simon Tan (Inactive) added a comment - Hello - thank you for sending in this suggestion! Unfortunately, we do not have any plans to implement this in the foreseeable future. In order to set expectations correctly, we're closing this request now. If you'd like to describe more how this would help in your own use of Confluence, we may be able to provide better guidance. Thanks again for your idea, and please feel free to submit more! Regards, Confluence Product Management

            DavidA added a comment -

            Changed issue summary and type to really reflect what is needed.

            DavidA added a comment - Changed issue summary and type to really reflect what is needed.

            DavidA added a comment -

            If we have a 'template' render type, we can fix http://developer.atlassian.com/jira/browse/TASK-128 too.

            DavidA added a comment - If we have a 'template' render type, we can fix http://developer.atlassian.com/jira/browse/TASK-128 too.

            Well it is quite hard to know whether the macro is rendered on a template with null content entity object in this case. I think it's best to show a placeholder only when we know a specific render type from Confluence.

            Philip Cher added a comment - Well it is quite hard to know whether the macro is rendered on a template with null content entity object in this case. I think it's best to show a placeholder only when we know a specific render type from Confluence.

            couldn't you just show a placeholder when the content entity object is null?

            Cheryl Jerozal [Atlassian] added a comment - couldn't you just show a placeholder when the content entity object is null?

            We might also consider dealing with this by adding a new RENDER_TYPE for the templates, and thus allowing the macros to circumvent this process and just show a placeholder.

            Jonathan Nolen (Inactive) added a comment - We might also consider dealing with this by adding a new RENDER_TYPE for the templates, and thus allowing the macros to circumvent this process and just show a placeholder.

              Unassigned Unassigned
              pcher Philip Cher
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: