Embed external site | Adobe Higher Education
Skip to main content
Level 2
June 11, 2021

Embed external site

  • June 11, 2021
  • 3 reacties
  • 2835 Bekeken

I have created a Tbymeleaf Spring simple app that provides a simple html page as output. I want to embed this site into aem and have tried extending the Embed component with a custom url processor, but when rendering the page I only see the URL. Is there a way to render the output of an external system???

Er kunnen geen reacties meer worden geplaatst op dit onderwerp.

3 reacties

chaudharynick
Level 4
June 13, 2021

Can you inspect the page and look for console logs/errors.

Also, in the component dialog box what type checkbox have you selected?

espinariAuteur
Level 2
June 14, 2021
@chaudharynick no console errors. It is "URL" that's why I implemented a custom URL processor
Vijayalakshmi_S
Level 10
June 14, 2021

Hi @espinari,

Can you confirm if you have HTL file in the name of the custom processor. If yes, how are you including the content from external site. 

espinariAuteur
Level 2
June 14, 2021

Hi @vijayalakshmi_s,

 

I extended the embed component and created the htl file with the same name as the custom url processor (as suggested by Adobe). To render the content of the external html I used an iframe, but just for testing purposes..... I would like to know if there is another way to render the content without using an iframe (I reckon the pinterest out of the box component uses a js library to render the content, so maybe that's something I need to get done, unfortunately Im no expert with js).

shelly-goel
Adobe Employee
Adobe Employee
June 14, 2021

@espinari  - You can use iframe and embed the site url in it to render on AEM page

espinariAuteur
Level 2
June 14, 2021
@shelly-goel I totally forgot to mention that the iframe is not an option (I used it for testing purposes and it works).