Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How can HTML be added to .context.xml

Avatar

Level 2

I am simply trying to add a modal box when http://localhost:4502/content/geometrixx-gov/en.html loads in the browser. 

I tried to look at the code but it seems there is no html page. Under jcr_root/content/geometrixx-gov/en/ there is only a .context.xml file. Is there a way I can add HTML to a page? I want to add the following

<script type="text/javascript"> $(window).load(function(){ $('#my_modal').modal('show'); }); </script>

and rest of my modal code. 

I just want the modalbox to show up on the en.html page 

1 Accepted Solution

Avatar

Correct answer by
Employee

In the /content tree there is only "content", this holds references to components in /apps where can you add code.

These reference can be found via sling:resourceType properties.

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

In the /content tree there is only "content", this holds references to components in /apps where can you add code.

These reference can be found via sling:resourceType properties.