SQL plugin style options if you don't display as a table?

This Confluence add-on provides many choices for styling the output when you choose "Show results in a table", but I'm really struggling with options for output NOT in a table.  Nothing I've tried seems to work.

Ultimately, I'm trying to display the month a report is for.  I pull this as a query since it's always run for the prior month.  This is done for more than 30 clients so doing this manually isn't efficient.  So I have "Report for.." and then a query to display the month/year "inline". When I do this, I only get the default "paragraph" format.  image2015-5-29 16:33:45.png

 

If I try to set the "Report for.." text to something like h2, I get image2015-5-29 16:32:19.png so it is not kept "inline".

Additionally, we export these to PDF and distribute, and that creates different behaviors in the text as well.  The closest I've come to getting something that isn't tiny is to put it in a table and use the @confluence table class and end up with image2015-5-29 16:39:1.png, but that will at least retain the row styles I put in the macro, but it's also frustrating that it shows up as a header row.

If it helps, this is the query I'm running (Oracle db)

SELECT to_Char(ADD_MONTHS(TRUNC(SYSDATE,'MONTH'),-1),' Month YYYY') "Report for" from dual

 

 

1 answer

0 vote
Davin Studer Community Champion Jun 01, 2015

If you have the content formatting macros (free) you could put a div macro around the SQL output and then style it with the style property on the div macro to make it look the way you want.

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 Tuesday 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 ...

465 views 19 9
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