Forums

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

Add restrictions when creating a blog post using the html macro

Patrick Vanhoof
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.
January 11, 2018

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 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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.

Patrick Vanhoof
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.
January 11, 2018

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

Atlassian Community Events