• Icon: Suggestion Suggestion
    • Resolution: Won't Fix
    • 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.

      Provide a mechanism for obtaining access to a PageManager from within a user macro so that the getPage method will be available.

            [CONFSERVER-9838] Obtain access to PageManager from within user macro

            It would be useful to have access to blogposts in the user macro's. And therefore having PageManager available in user macros is necessary.
            Since getblogsposts was deprecated from space object and afterwards from spacemanager object, I'm unable to do somtehing with the bloglist in user macro's. or is there another way to access them in user macro's?

            Roel

            Roel Croonenberghs added a comment - It would be useful to have access to blogposts in the user macro's. And therefore having PageManager available in user macros is necessary. Since getblogsposts was deprecated from space object and afterwards from spacemanager object, I'm unable to do somtehing with the bloglist in user macro's. or is there another way to access them in user macro's? Roel

            Matt Ryall added a comment -

            Thanks for the suggestion, but we won't be implementing this.

            We want to keep user macros as simple as possible, and not introduce the entire object model into the Velocity context. Macro plugins are designed to support the full functionality of Confluence with full programmability as well.

            Matt Ryall added a comment - Thanks for the suggestion, but we won't be implementing this. We want to keep user macros as simple as possible, and not introduce the entire object model into the Velocity context. Macro plugins are designed to support the full functionality of Confluence with full programmability as well.

            Matt Ryall added a comment -

            Giles, you have access to the current page with the $content variable.

            If you're doing more complicated things in a user macro, we recommend you create a macro plugin in Java [1]. User macros are for simple enhancements and HTML tweaks, not for manipulations of pages and other objects in Confluence.

            [1] http://confluence.atlassian.com/display/DOC/Macro+Plugins

            Matt Ryall added a comment - Giles, you have access to the current page with the $content variable. If you're doing more complicated things in a user macro, we recommend you create a macro plugin in Java [1]. User macros are for simple enhancements and HTML tweaks, not for manipulations of pages and other objects in Confluence. [1] http://confluence.atlassian.com/display/DOC/Macro+Plugins

              Unassigned Unassigned
              9ff3e0a08835 Giles Lewis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: