Forums

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

Is it possible to pull multiple excerpts into one page automatically?

Nancy Greenfield May 31, 2019

I have a page template that includes an Excerpt macro.  Users click a "Create from Template" button on a parent page, to create a new child page that includes a summary inside an Excerpt macro.  On the parent page, I don't want anyone to have to edit it every time a new page is added.  It appears that we currently have to edit, add a new Excerpt Include macro and specify the new page to include.  Is there anyway to automate including all child page excerpts?

Thank you

3 answers

1 accepted

0 votes
Answer accepted
GlenRSmith
Contributor
September 3, 2021

This can be accomplished by using the Children Display macro.  The  Include Excerpts property can be set to Simple or Rich content 

  • None - no excerpt will be displayed
  • Simple - displays the first line of text contained in an Excerpt macro any of the returned pages. If there is not an Excerpt macro on the page, nothing will be shown.
  • Rich content - displays the contents of an Excerpt macro, or if there is not an Excerpt macro on the page, the first part of the page content, including formatted text, images and some macros.
Nancy Greenfield September 7, 2021

Thank you, Glen. 

At the time I was thinking of having excerpts on a page that come from pages in different spaces. 

The solution you mention requires that the pages must be child pages of the page containing the Children Display macro.  

It wasn't the solution that I was looking for, at the time, but this is still good to know.

Thank you.

Like GlenRSmith likes this
0 votes
Andrey Khaneev _StiltSoft_
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.
May 31, 2019

Hi Nancy,

Table Excerpt Include and Table Excerpt macros should solve your problem. What you'll need to do is:

  1. Add one Table Excerpt Include macro set to pull excerpts from child pages.
  2. Add Table Excerpt macro to the page template instead of Excerpt macro.

So a single Table Excerpt Include will include multiple multiple excerpts. Those macros are included in Table Filter and Charts app.

Benjamin Crawley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 2, 2024

Hi Andrey,
I have included these macros but seem to need to add each new page as a new excerpt and can't see how to automate the inclusion of new child pages. can you provide more information on how these macros automate this function?

thank you

0 votes
Nic Brough -Adaptavist-
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.
May 31, 2019

You will need some code to enable that.  A template is a fixed set of things to place on a new page, it's not dynamic.  You might be able to do it with a user macro that iterates over the child pages and tries to create a set of include-excerpts automatically.

Nancy Greenfield May 31, 2019

Thank you Nic - Understood.  The "fixed template" simply gives the user's page an Excerpt macro area in which to write a summary.  I have a parent page where I can use the Excerpt Include macro, but having to configure additional Excerpt Include macros every time a new child page is added wouldn't be an efficient use of time.   I'm surprised the Excerpt Include macro doesn't have an advanced configuration option to grab multiple Excerpts.  I'm interested if anyone else has done a roll-up of excerpts on one page.  Maybe there's another macro that I'm not aware of that can do this.  I'll investigate further.

Like Benjamin Crawley likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events