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???
Views
Replies
Total Likes
Can you inspect the page and look for console logs/errors.
Also, in the component dialog box what type checkbox have you selected?
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).
Hi @espinari,
No worries. There are quite a few options available online to include external content without use of Iframe.(Example : https://stackoverflow.com/questions/39102215/how-to-show-external-website-inside-another-page-withou...)
One such is use of load function of jQuery - https://api.jquery.com/load/
(You can surf and decide which best suits your use case)
Good read about working with HTML content in a page for your reference - https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Safely_inserting_external_con...
We can get it done using Java as well using java.net.URL API - https://docs.oracle.com/javase/8/docs/api/java/net/URL.html
Views
Like
Replies