Confluence provides a Macro called "Include Page." It allows an author to include content from another page in an existing one for easy re-use of content. However, the included content is linked to the original. You cannot edit the included content without modifying the original. This is a problem for me, as I want to include content in a page, but make it static so I can edit aspects of it for the specific page I'm working on. Essentially, I want a button within the editor that when pressed, will allow me to select a page of source content, and once selected, it will paste it into my current page at the current location of my cursor.
From my research, this is NOT possible with a Macro. This must be done with a plugin.
Here are the specific requirements:
- Button that exists in the editor, navigation bar (Next to the Create button), or the Insert drop down menu which launches either a dialog or drop down menu showing the hierarchy of the _InclusionsLibrary page tree within the current Space
- When a page within the hierarchy is clicked on, the body of that page is inserted starting at the current cursor position.
- Plugin must work on the current latest version of Confluence (5.1.1)
- Source code required