Forums

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

How to update two pages with duplicate content at the same time?

Lauren Timzen
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!
July 22, 2021

I am currently working on migrating information from multiple pages into a single page for ease of access. 

For example: 

My new, all-encompassing page might be called "ALL INFORMATION". The contents of ALL INFORMATION have the same content as multiple other pages (say, "EXAMPLE 1", "EXAMPLE 2", and "EXAMPLE 3").

Is there a way to edit one source, and have the information change in both sources? 

So, if I were to edit a blurb in EXAMPLE 1, is it possible to get the same blurb in ALL INFORMATION to be edited in the same manner without having input the information twice, manually? 

I am aware of the snippet feature, but since the excerpt feature can only be used once per page, it isn't exactly what I'm looking for. 

2 answers

2 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.
July 22, 2021

Create the three pages Example1, Example2 and Example3 as normal.

Now create "All information", and instead of body text, use the include macro, such that the body of the page is just 

{include: Eample1}

{include: Example2}

(include: Example3}

This will render all three pages as though they were on one page.  Edit an example X page, next time "all information" is rendered, you'll see that change in it.

Not sure what you mean by "snippet" - it sounds like {excerpt} and (excerpt-include} though.

1 vote
Matt Reiner _K15t_
Atlassian Partner
July 23, 2021

@Lauren Timzen

 

Nic is on it. The Include Page macro is really great for this kind of thing. You might also consider building a "library" of all the content you reuse, so you can easily find and update things.

We go into how to do this in our guide here: https://www.k15t.com/rock-the-docs/documentation-guide/content-reuse

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events