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: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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.