Creating blog posts for specific pages

Can anyone help with this issue please?

I have created a space and added four associated pages to the space.

I have added blog posts to the four associated pages with the intention they work independently to each other. However, they are not working as anticipated.

I.e. Creating a blog post on page 1 will also create the same blog on pages 2 - 4. The same applies for all pages. I.e. creating a blog post in 2 will also prompt the same blog post to display in pages 1, 3 & 4 & so on.

This is the code I am using:

{blog-posts:content=labels+page1|max=5|space=bio}

{blog-posts:content=labels+page2|max=5|space=bio}

{blog-posts:content=labels+page3|max=5|space=bio}

{blog-posts:content=labels+page4|max=5|space=bio}

Each page is titled page 1, 2, 3 and 4.

What do I need to add/remove to the above code to ensure each blog is independent of the other 3?

Many thanks in advance.

David

1 answer

1 accepted

A Confluence blog is linked to the entire space rather than individual pages within the space. I do not think it is possible to create more than one blog in a space.

If you want to show certain blog-posts on different pages you should do the following:

  1. When you create the blog-post for page 1, add the label "page1" to the blog-post
  2. On page 1 you add the blog-post macro and restrict it to show just posts with label "page1"
    {blog-post:labels=page2}
  3. Do the same for the other pages

This will show only the posts meant for each page in each page!

Rgrds,

// Svante

That works fine thanks Svante!

Many thanks. :)

Regards

David

Glad to help :-)

Please, mark the answer as accepted if you liked it!
Rgrds,
// Svante

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Monday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

152 views 3 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you