To address this requirement, you can write an AEM component that uses the WordPress Java API to retrieve WordPress Blog titles
Then the component can display those titles in the component.
As shown in the previous illustration, the key to making this use case successful is to write a custom AEM Sling Servlet that uses the WordPress Java API. One issue you may come across when using 3rd party APIs within AEM is how to handle JAR dependencies, such as dependencies required by the WordPress API.
To successfully build an AEM service ( or servlet) that uses this API, you need to get the API dependencies into AEM. It is not enough just to reference the dependencies in the Maven POM file. This only compiles the OSGi bundle, it does not ensure that AEM can resolve the Java package. To ensure that AEM is able to resolve JAR dependencies, you need to place the dependency JAR files into an OSGi bundle and deploy them so that the main service that uses the WordPress API works. This is all covered in this development article.
To read this development article, click https://helpx.adobe.com/experience-manager/using/aem_wordpress.html.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.