Forums

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

Confluence Excerpt render or non-render?

KPAH
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 Leaders.
March 4, 2013

Hi. I wonder how Excerpt works in Confluence.

I.e., if I create an excerpt on a page that holds Blog Post Macro. Then I include this excerpt on another page.

Will excerpt fetch the html rendered by the macro or the macro itself, which then will be rendered on

the page where excerpt is included?

3 answers

1 accepted

0 votes
Answer accepted
SarahA
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 Leaders.
March 11, 2013

Hallo KPAH

In summary: The Excerpt Include macro will fetch the Blog Posts macro, and then render it independently on the page.The Excerpt Include macro does not fetch the static HTML from the source page.

In more detail: Let's say page A has the Excerpt macro, which includes the Blog Posts macro. And page B has the Excerpt Include macro.

Page A will display the results of the Blog Posts macro, at the time when page A is rendered, and every time afresh when page A is rendered.

Page B will also the most up-to-date results of the Blog Posts macro, at the time when page B is rendered, and every time afresh when page B is rendered. The display of the results on page B is not dependent on the display of the results on page A.

I hope this answers the question. :)

Cheers, Sarah

1 vote
William Zanchet [Atlassian]
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 Leaders.
March 4, 2013

Hi,

The Excerpt Macro, will be used to mark a part of a page's content for re-use. Defining an excerpt enables other macros, such as the Excerpt Include and Blog Posts macros, to display the marked content elsewhere.

You can only define one excerpt per page. In other words, you can only add the Excerpt macro once to a page.

The Excerpt Include macro is used to display 'excerpted' (that is, a segment of) content from one page in another.

Before you can use this macro, the excerpt must have been defined using the Excerpt macro. Note that you can have more than one Excerpt Include macro on a page (although you can have only one Excerpt macro on a page).

I hope this helps.

Cheers,

Wz

KPAH
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 Leaders.
March 5, 2013

No it doesn't help, why do you even bother to post that completely irrelevant stuff?

The question is - if I excerpt a macro, and then excerpt-include it, WHAT the excerpt-include get from the original page? The macro code or the html output of the macro?

0 votes
KPAH
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 Leaders.
March 10, 2013

no one knows

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events