Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Web resources (JS and CSS) not being added to Confluence macro plugin

Zena Hirsch
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 3, 2017 edited

I've followed the various tutorials for building a Confluence app, and yet my web resources (the JS and CSS files) aren't being added to my macro. (I don't see either the js or css file when inspecting the page.)

 I have my web resources defined in `atlassian-plugin.xml`:

<web-resource key="validator-resources" name="validator Web Resources"> 
<
dependency>com.atlassian.auiplugin:ajs</dependency>

<
resource type="download" name="validator.css" location="/css/validator.css"/>
<
resource type="download" name="validator.js" location="/js/validator.js"/>
<
resource type="download" name="images/" location="/images"/>

<
context>validator</context>
</
web-resource>

 I am using the pageBuilderService in my execute method like so:

pageBuilderService.assembler().resources().requireWebResource("com.vimeo.community.validator:validator-resources");

 Here is my source code: https://bitbucket.org/zenahirsch/confluence-validator2/src

 Anyone have any idea what I'm doing wrong here?

1 answer

0 votes
Ajaykumar Muthukumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 5, 2023

I'm getting the same issue. Can someone please help with this?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, confluence, marketing templates, confluence templates, marketing project management, content strategy, campaign planning, marketing collaboration, confluence for marketers, atlassian learning, marketing workflows, confluence best practices

5 must-use templates for Marketing teams (from a Confluence Marketer!) 👩🏻‍🎨

Who doesn’t love a good template? We sure do! Check out our top template picks for Marketing teams who want to streamline their processes, enhance collaboration, and take their marketing to new heights.

Read more 📚
AUG Leaders

Atlassian Community Events