RSS feature of Hippo CMS to gets feed from facet
-
04-06-2021 - |
문제
I am working on Hippo CMS, which has a plug-in for RSS feed
the RSS can grab documents from existed folders.
But I would like to implement a feature to let it grab document from facet but not real folder.
So I can do something like news/2012/published
to get what I want.
Anyone tried this before? Please share some idea about how I can do it.
해결책
Yes that should be possible. You could create a hippo:facetnavigation structure and show the tree like that. Next to that you probably need to modify the default RSSFeedBuilder component, so that it can handle this kind of structure.
다른 팁
The RSS feeds on my Hippo based site are based on facets. I'm using ROME to create the feed.
You can find the code that creates the feed on: https://github.com/jashaj/HippoWeblog/blob/master/site/src/main/java/org/onehippo/forge/weblogdemo/components/FeedCreator.java
I only use these JSPs because the HST component needs a rendering template and the feed needs to have the correct header for the content type: https://github.com/jashaj/HippoWeblog/tree/master/site/src/main/webapp/WEB-INF/jsp/feeds