When using the "Include Page" Macro, how to display only the content of the first 10 lines of the page?
Hi Gabrielle,
As far as I'm aware, 'out-of-the-box', Confluence's 'Include' macro cannot restrict content on the page it references in any way. Hence, when this macro used on a page, all content on the referenced page will be shown.
However, you could use the 'Excerpt Include' macro as a workaround. This macro is effectively the same as the 'Include' macro, but it will only show content on the referenced page which is enclosed within an 'Excerpt' macro.
Hence, what you could do is to 'wrap' the first 10 lines of content on the pages you reference in 'Excerpt' macros, then reference these pages on your other page using the 'Excerpt Include' macro instead.
The only drawbacks with this approach are:
Hope this information helps.
Cheers,
Giles.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.