Hi all,
The following user macro expands a table to 100% and is wrapped with an excerpt macro however the table does not appear as 100% width when pulling into an excerpt include macro. Anyone know the code which I can input to make this work in the excerpt include macro?
Also, any helpful links to learn how to make user macros would be fantastic! Just started dabbling into them.
## Macro title: Max Table Width
## Developed by: Jonathan M. Smith
## Date created: 10/12/2018
## @noparams
<style>
.maxtablewidth table.confluenceTable {width: 100%;}
</style>
<div class="maxtablewidth">$body</div>
Hi @Jonathan Smith,
your macro worked without problems for PP report on my local Confluence 6.13. The table was stretching as a drag a browser window. Which Confluence are you using? Would it be possible to share the storage format of the page with the report?
You have probably read this article, but it's the only resource I know about user macros: https://confluence.atlassian.com/doc/writing-user-macros-4485.html.
Roman.
Thanks for looking into this. I ended up having a typo - - - I am having issues with the table displaying in the excerpt include macro.
- Jon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
seems to work for me with Excerpt Include: How does it look like for you when you have Excerpt Include in the custom macro and a table without macros?
Roman.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Magically everything is working fine now... I will reopen if needed.
Thanks for testing!
Jonathan
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.