Forums

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

Creating blog posts for specific pages

David Arlow February 26, 2013

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
Answer accepted
Svante Gustafsson Björkegren
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.
February 26, 2013

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

David Arlow February 26, 2013

That works fine thanks Svante!

Many thanks. :)

Regards

David

Svante Gustafsson Björkegren
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.
February 26, 2013

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
TAGS
AUG Leaders

Atlassian Community Events