从不同的JEE应用程序中获取AEM创作的模板

时间:2022-12-09 10:24:51

We have one particular requirement where we need to use AEM (Adobe Experience Manager) only for designing (authoring) form templates which would contain both static images and html elements like drop downs, text areas etc.

我们有一个特殊的要求,我们需要使用AEM(Adobe Experience Manager)来设计(创作)表单模板,其中包含静态图像和html元素,如下拉列表,文本区域等。

The question here is whether the designed template can be pulled to the JEE application which is separately built using Spring/Angular (deployed on Tomcat). The JEE application will be used to add user transaction data to the form templates.

这里的问题是,是否可以将设计的模板拉到JEE应用程序,该应用程序是使用Spring / Angular单独构建的(部署在Tomcat上)。 JEE应用程序将用于将用户事务数据添加到表单模板。

Finally, the above created forms need to be published to AEM publisher.

最后,上述创建的表单需要发布到AEM发布者。

Please help validating the approach whether it is feasible or not. If it is feasible, please suggest on how to carry out the integration part to: 1. Fetch template from AEM Authoring instance to JEE App 2. Publish the form (template + data) to AEM publishing instance.

请帮助验证方法是否可行。如果可行,请建议如何执行集成部分:1。从AEM Authoring实例获取模板到JEE App 2.将表单(模板+数据)发布到AEM发布实例。

2 个解决方案

#1


5  

You can try out Knot.x. It is an Open Source project which allows you to inject dynamic data into static pages.

你可以尝试Knot.x.它是一个开源项目,允许您将动态数据注入静态页面。

The idea is that you store static assets such as HTML pages (defining the layout of the page, the design, etc.) in one place (a Repository) and injects dynamic, user-specific data into those pages.

我们的想法是将静态资产(如HTML页面(定义页面布局,设计等))存储在一个位置(存储库),并将动态的,特定于用户的数据注入这些页面。

AEM can be used to serve static content shared by multiple users and your JEE application can provide the dynamic data, as long as you expose a JSON-based API.

AEM可以用来服务于多个用户共享静态内容和您的JEE应用程序可以提供动态数据,只要你暴露一个基于JSON的API。

It supports Handlebars templates (to be rendered by AEM if you want to inject the data into those pages) but you can also add any templating engine you like.

它支持Handlebars模板(如果你想将数据注入这些页面,将由AEM呈现),但你也可以添加你喜欢的任何模板引擎。

I'm a member of the Knot.x team and we are now working on a knotx.io page where more examples and business documentation will be provided.

我是Knot.x团队的成员,我们现在正在开发一个knotx.io页面,其中将提供更多示例和业务文档。

In the meantime, feel free to check out our Github pages. We'll welcome your feedback.

在此期间,请随时查看我们的Github页面。我们欢迎您的反馈。

#2


1  

Templates provide authoring scaffolding in AEM like you know and allow authors to create pages (unless you are referring to AEM 6.2 templates). If your authors are creating a page using these templates then you can extract the content using any HTTP client.

模板在您知道的AEM中提供创作脚手架,并允许作者创建页面(除非您指的是AEM 6.2模板)。如果您的作者使用这些模板创建页面,则可以使用任何HTTP客户端提取内容。

#1


5  

You can try out Knot.x. It is an Open Source project which allows you to inject dynamic data into static pages.

你可以尝试Knot.x.它是一个开源项目,允许您将动态数据注入静态页面。

The idea is that you store static assets such as HTML pages (defining the layout of the page, the design, etc.) in one place (a Repository) and injects dynamic, user-specific data into those pages.

我们的想法是将静态资产(如HTML页面(定义页面布局,设计等))存储在一个位置(存储库),并将动态的,特定于用户的数据注入这些页面。

AEM can be used to serve static content shared by multiple users and your JEE application can provide the dynamic data, as long as you expose a JSON-based API.

AEM可以用来服务于多个用户共享静态内容和您的JEE应用程序可以提供动态数据,只要你暴露一个基于JSON的API。

It supports Handlebars templates (to be rendered by AEM if you want to inject the data into those pages) but you can also add any templating engine you like.

它支持Handlebars模板(如果你想将数据注入这些页面,将由AEM呈现),但你也可以添加你喜欢的任何模板引擎。

I'm a member of the Knot.x team and we are now working on a knotx.io page where more examples and business documentation will be provided.

我是Knot.x团队的成员,我们现在正在开发一个knotx.io页面,其中将提供更多示例和业务文档。

In the meantime, feel free to check out our Github pages. We'll welcome your feedback.

在此期间,请随时查看我们的Github页面。我们欢迎您的反馈。

#2


1  

Templates provide authoring scaffolding in AEM like you know and allow authors to create pages (unless you are referring to AEM 6.2 templates). If your authors are creating a page using these templates then you can extract the content using any HTTP client.

模板在您知道的AEM中提供创作脚手架,并允许作者创建页面(除非您指的是AEM 6.2模板)。如果您的作者使用这些模板创建页面,则可以使用任何HTTP客户端提取内容。