Include static content into site
Is it possible to include content from a URL into my AEM page? I've got a URL I'd like to include into my page.
Example content: http://www.centurylink.com/common/disclaimers/general.html
Thank you in advance.
-Dean
Is it possible to include content from a URL into my AEM page? I've got a URL I'd like to include into my page.
Example content: http://www.centurylink.com/common/disclaimers/general.html
Thank you in advance.
-Dean
That's a different requirement. Personally I think that not liking something is not a good reason to not use it - it does what you want without building something custom.
If the requirement is to include content from a page without using an iframe, off the top of my head i can think of 2 approaches:
1) Make an AJAX request to the page and use selectors to grab the content you want.
2) (Assuming AEM 6 or above) You could use a Sightly class coupled with JSoup and grab the page content and render it out using selectors again. This would be cacheable whereas #1 would not be.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.