Add restrictions when creating a blog post using the html macro

In a html macro following code will put a button on a Confluence page to create a blog post:

<button class="create-dialog-create-button aui-button aui-button-primary" tabindex="100" onclick="javascript&colon;location.href='/wiki/pages/createblogpost.action?spaceKey=SPACE_KEY';">Create Blog</button>

Can I add some extra code so that the blog post created is restricted to group my_group?

1 answer

0 vote
Ann Worley Atlassian Team Jan 11, 2018

We cannot add restrictions to pages using HTML but we may be able to come up with a workaround that will satisfy your use case.

I am guessing you want the blog posts restricted to one group so they can review the blogs before publicly publishing them. In that case you could use the same button but with createpage.action? which will create the page as a child of the designated space's landing page. You could apply view restrictions to that landing page, which would be inherited by all the child pages. When the blog is ready for prime time, it could be re-published as a blog. You could have a space dedicated just to reviewing blog posts.

If my guess is wrong about your use case, please let me know more and I will research further.

Hi Ann,

Thanks for your answer.

Our use case: we have a departemental space that is now restricted to our team. We want to open the space for the whole company, but do not want that everyone can see our internal blog posts.

Therefor we would need a way to create a blog post restricted to our team, preferrably automatically so that setting restrictions is not forgotten.

Regards,

Patrick

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 Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

685 views 21 12
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