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

0 votes
Accepted answer

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
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,122 views 2 6
Read article

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