Greetings fellow Atlassians, i wanted to ask you whether (and if yes how?) it is possible to link attached files of a confluence page as source for the style / script for my HTML-Script inside of a HTML Macro.
Thank you for your help.
Hi @Jo Ro ,
If I understood well you have a CSS and JS files attached to a Confluence page and you'd like to use them in your HTML macro. If this is the case, maybe you can add in the macro:
<link rel="styleshhet" href="/your_site_name/download/attachments/page_id/your_styles.css"><script src="/your_site_name/download/attachments/page_id/your_scripts.js"></script>
Hope it helps.
Vitor
Hi @Vitor LC ,
thank you for your answer.
Finally i was able to test whether this option is working but sadly it isn't.
Is it possible that empty spaces in the page name have to be decoded for the link?
Thanks for your help.
Normally not. What are you getting?
There was a problem with the spaces in the pages title, but i was able to resolve that problem by substituting them with "+".
Sry for the late answer.
It looks like you're new here. Sign in or register to get started.