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

Add an option to the user macro creation to allow macros to declare themselves as either block or inline

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • None
    • None
    • 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.

      Currently, user macros will default to being inline if they generate html (CONF-15771), or they will default to being in a block if they generate wiki markup (CONF-10790).

      The improvement suggestion is to provide this as an option on the user macro definition.

            [CONFSERVER-15860] Add an option to the user macro creation to allow macros to declare themselves as either block or inline

            Please see my related comment in CONF-22898

            Michael Kulas added a comment - Please see my related comment in CONF-22898

            Thanks for pointing that out Jon, I've linked these up.

            John Masson added a comment - Thanks for pointing that out Jon, I've linked these up.

            Is this somehow related to this https://jira.atlassian.com/browse/CONF-22898 ?
            Can we please merge these requests, I think the above link is the same issue.
            Also see this: http://stackoverflow.com/questions/23767907/automatic-line-break-when-inserting-user-macro

            Jon Hermiz added a comment - Is this somehow related to this https://jira.atlassian.com/browse/CONF-22898 ? Can we please merge these requests, I think the above link is the same issue. Also see this: http://stackoverflow.com/questions/23767907/automatic-line-break-when-inserting-user-macro

            Timothy Veldhuizen added a comment - - edited

            I have to agree with Joseph, when a user macro author can declare that the macro should be inline or block as default behaviour.

            I am having this problem using user macro's in templates which is described here: Can I set a default value for a user macro to be INLINE or BLOCK in the template?

            This is also questioned in this request: CONF-24581

            Maybe some kind of checkbox when creating a user macro or in the macro code..

            Timothy Veldhuizen added a comment - - edited I have to agree with Joseph, when a user macro author can declare that the macro should be inline or block as default behaviour. I am having this problem using user macro's in templates which is described here: Can I set a default value for a user macro to be INLINE or BLOCK in the template? This is also questioned in this request: CONF-24581 Maybe some kind of checkbox when creating a user macro or in the macro code..

            Joe Clark added a comment -

            I still think it would be good for the macro author to have some control over the default behaviour.

            Joe Clark added a comment - I still think it would be good for the macro author to have some control over the default behaviour.

            With Confluence 4.0 we now have a property panel option allowing you to specify whether an "inline-block" macro such as a User Macro should be wrapped in a block or rendered inline.

            Do you agree that this facility solves this improvement (albeit in a different way)?

            Paul Curren added a comment - With Confluence 4.0 we now have a property panel option allowing you to specify whether an "inline-block" macro such as a User Macro should be wrapped in a block or rendered inline. Do you agree that this facility solves this improvement (albeit in a different way)?

              jmasson@atlassian.com John Masson
              mhrynczak Mark Hrynczak (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: