Skip to content. | Skip to navigation


Encryptec Limited Online

 Last updated Wednesday, 27 Aug 2008 12:02
Sections
Document Actions

Embedding RSS feeds in content

This How-to applies to: Any version.

This describes how to embed RSS feed lists within page content

This is a relatively generic method and although you may not think it terribly efficient, it does work fairly well and certainly has no noticable overhead on my systems. (although if you use VERY long pages (>200k?) , you may have speed problems)

Step-by-Step

  • Customise the document_view template
  • Replace a section of this code as follows;
    <div class="stx" tal:condition="text"
    tal:attributes="class python:test(here.Format() in ('text/structured',
    'text/x-rst', ), 'stx', 'plain')">
    <div tal:replace="structure python:here.rss_document_wrap(text)" />
    </div>
  • At which point you will find out if PloneRSS is installed. Essentially this will cause all pages to call rss_document_wrap when the page is rendered.
  • Select a test page
  • Embed the expression :rss_feed: within the document. If you fail to spell this correctly or if you miss a ':' etc, it will fail to work.
  • Try to view the page, it should show any available RSS feed in place of the :rss_feed: label.
  • Customise and edit the rss_document_wrap function as appropriate.
That's all folks!
computer ink
Looking for good computer ink? We are specialists in printer ink. We provide a massive range of ink cartridges at great prices…
Web Site Builder
Are you a small business looking for a flexible and catchy website? Our web site builder is the ideal tool! See what we can do for you!
Computer Support
Find helpful IT support at affordable rates. You don't have to pay more!
INVOICE MANAGEMENT
Invoice management software for your company can be found by clicking the link above.
Compatible Inkjet Cartridges...
Here is a wide range of the highest quality compatible inkjet cartridges.
Dedicated Hosting..
Dedicated hosting can be frustrating or it can make your life easier.
Laptop Bag
Check out fine laptop bags here for lowest prices!
online backup...
Ensure the safety of your data by using online backup.