External HTML code | Community
Skip to main content
August 31, 2020
Solved

External HTML code

  • August 31, 2020
  • 2 replies
  • 1229 views

Hello community,

 

I start and use AEM WCM as CMS for my Website, do you know if it is possible to integrate an external coded page (in the form of an iframe) in a module? And if so the template to use?

 

Thanks

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 BrianKasingli

@robincw6 
To use include an external webpage via iframe, you can create a new component. This new component will allow authors to configure the iframe url that will be presented to the page; this is because AEM sites do not provide an out of the box iframe component. 

The expected HTML output will look something like this. 

 

<iframe src="https://www.example.com" title="Example Website"></iframe>

 

 

2 replies

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
August 31, 2020

@robincw6 
To use include an external webpage via iframe, you can create a new component. This new component will allow authors to configure the iframe url that will be presented to the page; this is because AEM sites do not provide an out of the box iframe component. 

The expected HTML output will look something like this. 

 

<iframe src="https://www.example.com" title="Example Website"></iframe>

 

 

Nikhil-Kumar
Community Advisor
Community Advisor
August 31, 2020

@robincw6 -

You can use it in iframe as mentioned by @briankasingli. Create a component in mentioned way and drag and drop. 
Try keeping the source URL authorable .

Thanks,
Nikhil Kumar