如何在AEM 6.2中为ASRP博客文章制作RSS Feed Generator [英] How to make RSS Feed Generator for ASRP Blog Posts in AEM 6.2

查看:114
本文介绍了如何在AEM 6.2中为ASRP博客文章制作RSS Feed Generator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从ASRP博客中寻找生成RSS feed的信息,从AEM集成到第三方插件中,



AEM是否为此提供了任何OOTB解决方案?



还是我们需要创建一个自定义RSS feed生成器?



任何帮助将不胜感激。



谢谢

解决方案

根据



您可以编写您的自定义代码中的覆盖方法。



在AEM实例中部署此服务后,您的自定义导入器将显示在轮询配置。
轮询配置具有一个对话框,您需要在创建轮询节点时填写该对话框。下图显示了在配置对话框中给定的值如何映射到节点属性,然后再映射到 importData()方法:





自定义导入程序的importData()方法从此配置中获取其参数的值。因此,您需要在对话框中指定以下属性:




  • Type :它定义了feedType属性


  • URL:。它定义feedUrl属性。此必填字段定义要读取的源。


  • 导入路径:这是需要创建节点的路径。它定义目标属性。此路径解析为资源,并在importData()中传递。如果未提供目标值,则解析配置节点的路径。

  • 以秒为单位的更新间隔:它告诉需要轮询多少秒。它的默认值为1800,最小值为300。它定义了pollConfig节点的interval属性。



pollConfig节点中还有一个属性即由



< feedType>:< feedUrl>



创建轮询节点后,它将从给定的URL中获取供稿,并将其存储在目标路径中。


Am looking for generate RSS feed from ASRP blog Posts from AEM to Integrate in Third Party Plugin,

does AEM have any OOTB solution for this ?

or we need to create a custom RSS feed generator ?

any help would be appreciated.

Thanks

解决方案

As per the Adobe Forum Thread, RSS OOTB feature is currently unavailable for AEM 6.1/ 6.2 Communities. So, you can create custom polling importer and do your stuff.

To create custom importer:

You need to define two properties in your importer class:

You can write your custom code in the overridden method.

When this service is deployed in AEM instance, your custom importer can be seen in the dropdown of the polling configuration. Polling configuration has a dialog, which you need to fill while creating your polling nodes. The below diagram shows how values given in config dialog mapped to node properties and then to importData() method:

The importData() method of custom importer gets the value of its parameter from this configuration. Thus you need to specify these properties in the dialog:

  • Type: It defines feedType property of poll config node.

  • URL: It defines feedUrl property. This mandatory field defines the source( or xml) to read.

  • Import to path: It is the path where nodes needs to be created. It defines target property. This path is resolved to a resource and is passed in importData(). If target value is not provided, path of the configuration node is resolved.
  • Update Interval in Seconds: It tells after how many seconds it needs to poll. Its default value is 1800 and minimum value is 300. It defines interval property of pollConfig node.

There is one more property in pollConfig node i.e. source which is concatenation of

<feedType>:<feedUrl>

After poling nodes are created, it will fetch your feeds from the given URL and store it in the targetted path.

这篇关于如何在AEM 6.2中为ASRP博客文章制作RSS Feed Generator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆