- Sitecore Cookbook for Developers
- Yogesh Patel
- 273字
- 2021-07-16 11:15:01
Generating RSS feeds for syndicated items
You can define any number of RSS feeds, and each feed can include any number of syndicated items. Let's check how we can prepare an RSS feed of products.
Getting ready
In the previous recipes, we have already created products under /sitecore/Content/Home/Products/<Product Category>
. We will create an RSS feed to list down all the products that we have.
How to do it…
- Create an
RSS
folder under/sitecore/Content/Home
. Create an RSS feed item product using the/sitecore/templates/System/Feeds/RSS feed
template. - In the field editor pane, fill in valid values in the items, title, and description link fields in the data section. Here, the feed will contain details of all the descendants of the item selected here. You can also use Sitecore query here.
We have configured the RSS feed and now we have to make the product items available for syndication.
- Select standard values of the product template. From the ribbon, select the Design button in the Feeds group in the Presentation tab. It will open the RSS Feed Design dialog, as shown in the following screenshot:
- Select the title, body, and date fields from the drop-down and save the item. The drop-down shows fields of the product template.
- Preview the products RSS feed; it will show the RSS feed as shown in the following screenshot:
There's more…
This is the default behavior of the Sitecore RSS feed. We can also customize the feed behavior by creating a custom feed behavior. Create the custom class and register it in the feed item Type field, as shown in the following image. Learn customizing the RSS feed from http://goo.gl/4OzMfc:

推薦閱讀
- FuelPHP Application Development Blueprints
- JavaScript語言精髓與編程實踐(第3版)
- Python王者歸來
- Procedural Content Generation for C++ Game Development
- Test-Driven Development with Django
- 小程序,巧應用:微信小程序開發實戰(第2版)
- Emotional Intelligence for IT Professionals
- Access數據庫應用教程(2010版)
- Keil Cx51 V7.0單片機高級語言編程與μVision2應用實踐
- TypeScript High Performance
- Ionic Framework By Example
- 網絡工程方案設計與實施(第二版)
- Mastering PyCharm
- React Router Quick Start Guide
- Mastering Kali Linux for Advanced Penetration Testing(Second Edition)