Hello everyone,
I am working on a Confluence (Version 7.4.6) blueprint and build it with a html macro. The html macro includes some short css changes regarding the table on the page.
So far it goes perfectly fine. The macro works and the page looks as it is suppose to be.
However when creating a page with this template, the html macro is interpreted and rebuild on the new page. And here it is how it looks on the new page.
You may noticed already, that the style (<style> and </style>) clause is missing. Therefore the text is displayed in the page and the css is not working anymore. I already tried to play around in the source editor and CDATA clauses, but I may did not do it right.
Is there a way to let the interpreter know, that the macro should just be copied from the template to the new created page, instead of somehow deleting the style clauses?
I would come at this problem from another angle. Create a user macro that basically surrounds the body content (your table) with a classed div tag. You can then either include it in your space CSS or add it to your user macro. That is far more durable a solution PLUS you can update your CSS at any time, and have it apply to ALL instances.
Hello @Bill Bailey ,
thank you for your response. I should have mentioned this earlier, I'm not a system administrator. So I have restricted admin rights. I dont have access to the user macros.
So I am just trying to have the css copied from the template to the new page. If you have another smart idea, please let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you gain Space Admin rights? That would allow you to update the space CSS which would give you another angle.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bill Bailey ,
sadly I cant. I could find a really wierd solution, by creating a second blueprint with a live template of the main blueprint. In this case the style brackets do not disappear. However many functions are useless now.
For example the task report, which does not work with a live template page.
So in the case you have any other ideas on how to make the html macro work correctly with the blueprint, please let me know.
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.