コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

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 受け入れられたソリューション

Avatar

正解者
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.

元の投稿で解決策を見る

2 返信

Avatar

正解者
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.

Avatar

Level 10

Are you using Bootstrap in your AEM project?