Commits

tehfink  committed 1a9219a

customize feed items display with templates

  • Participants
  • Parent commits f664bb9
  • Branches cms-2.0.2
  • Tags cms-2.0.2

Comments (0)

Files changed (3)

File cmsplugin_news/feeds.py

     title = settings.CMSPLUGIN_NEWS_RSS_TITLE
     description = settings.CMSPLUGIN_NEWS_RSS_DESCRIPTION
 
+    title_template = 'cmsplugin_news/feeds/latest_title.html'
+    description_template = 'cmsplugin_news/feeds/latest_description.html'
+
     def items(self):
         return News.published.all()[:10]
 

File cmsplugin_news/templates/cmsplugin_news/feeds/latest_description.html

+{{ obj.excerpt }}

File cmsplugin_news/templates/cmsplugin_news/feeds/latest_title.html

+{{ obj.title }}