In a html macro following code will put a button on a Confluence page to create a blog post:
"create-dialog-create-button aui-button aui-button-primary"
Can I add some extra code so that the blog post created is restricted to group my_group?
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.
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.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
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!
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