How can HTML be added to .context.xml | Community
Skip to main content
Level 2
October 16, 2015
Solved

How can HTML be added to .context.xml

  • October 16, 2015
  • 2 replies
  • 870 views

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 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

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.

2 replies

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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.

smacdonald2008
Level 10
October 16, 2015

Are you using Bootstrap in your AEM project?