How can I create a blog button?

I would like to create a blog button on a page.

Also, I don't how to use the components on the following website: https://docs.atlassian.com/aui/latest/docs/buttons.html

Where I can enter the html code???

Best regards

Fiyyaz

2 answers

0 votes
Sam Hall Community Champion May 11, 2017

Hi Fiyyaz - you haven't said which product this relates to, so it's difficult for people to help you. 

Are you asking about Confluence or JIRA or something else?

Where exactly do you want to put the button to show?

What do you want to happen when people click it?

Hi Sam, 

 

I am using Confluence.  I would like to put the button on the Confluence pages. The button should create a new blog post. 

I don't want to click always on "create" on the menue bar.  Is there any solution for this problem?

 

Best regard

Fiyyaz 

It you have Confluence server, you could create a user macro for this.

Then you can add your macro to any page you want.

This is a what you can put in the 'template' field when creating the macro:

## @param space:title=Space|type=spacekey
<a href="/pages/createblogpost.action?spaceKey=$paramspace" class="aui-button"><span>Create Blog Post</span></a>

 Adapted from: https://community.atlassian.com/t5/Confluence-questions/How-do-I-add-a-Create-Blog-button-to-a-page/qaq-p/148683

Hi Sam,

 

thanks a lot. It works :)

 

Best regards

Fiyyaz

0 votes

For Confluence users on cloud who cannot add custom macros, I have found a workaround. 

If you use the "Blog Posts" macro with a query that returns no blog posts, Confuence will display generic copy and a "Create blog post"  button that allows the user to create a new blog post.

 

To create a query that returns no blog post, you can restrict the blog posts to a label that exists (if you make up a label that no other page uses, you'll get an error) but is not used on any blog post entry.

 

lendesk create blog post button.png

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 8 hours ago in Jira Ops

Jira Ops Early Access Program Update #2: Let’s talk severity levels

Welcome to your weekly Jira Ops Early access program update, where we’re sharing news and updates on Jira Ops' progress as we work toward our 1.0 release. If you ever want to drop us feedback or idea...

20 views 0 0
Read article

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