Hi, All. New here, and a long-time Confluence user that may switch. One feature we use fairly often in Confluence is the excerpt macro, which allows an arbitrary piece of content (for example, a single sentence in a longer document) to be marked as an excerpt. That text can then be included in another page.
I’ve looked at the Include macro, and can pull in an entire page or a section (based on a heading), but not an arbitrary portion of a page. Does anyone know if this can be done, and if so, how? Thanks in advance.
Nothing like this exist out of the box as far as I know. The closest is to include a specific section in a page (the content associated with a specific heading).
Implementing something like this should not be very hard I guess:
a special include macro which get the target page content and search the rendering block for
a special macro or a parameter in a GroupBlock or FormatBlock (div/span) to mark some content (or both)
Thanks, all, for the thoughtful suggestions. As I said I am brand new to XWiki, so I need to spend more time both with syntax and with features that can be enabled via the API.
Hint: the name of the macro is translated, so in a German installation, in the WYSIWYG Editor, when adding a macro, search for “Einbinden” instead of “Include”…