The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to display all macro options in the macro placeholder

Adolfo Casari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 26, 2012

In Confluence 4.X is there a way to display all macro options in the editor?

For instance I am using the Page Tree macro with several options set, but it shows root and excerpt (partially) only (see screenshot).

Thank you,

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Paul Curren
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2012

I'm afraid the number of characters permitted is fixed at a set length. There is no option for showing the full set.

If you are happy "hacking" JAR files you can do the following.

1) Extract the confluence-tinymce-plugin jar from confluence-bundled-plugins.zip

2) Extract all files from the JAR

3) Open the atlassian-plugin.xml and look for this entry -

<servlet name="Macro Placeholder Servlet" key="macro-placeholder" class="com.atlassian.confluence.tinymceplugin.placeholder.MacroPlaceholderServlet">
        <description>Generates a placeholder image for macros</description>
        <url-pattern>/confluence/placeholder/macro</url-pattern>
        <init-param>
            <param-name>maxParameterTextLength</param-name>
            <param-value>30</param-value>
        </init-param>
        <init-param>
            <param-name>placeholderType</param-name>
            <param-value>inline</param-value>
        </init-param>
    </servlet>

You can set the maxParameterTextLength to a larger size.

4) Zip the extracted files back into the tinymce jar.

5) Install this "hacked" jar into Confluence.

TAGS
AUG Leaders

Atlassian Community Events