One feature not implementing in mescms is the possibility of generate feed or add external feed’s to the site. I development a module to add this features to mescms.

With this module it’s possible to generate feeds from different path of your site or add feed fetchers for different external feeds.

Use

1.22. Feed

The Feed module generate a link to the feed with the most recently modified pages, adding links to go to the full pages. Modified pages are searched in subdirectories too.

Argument: path to a directory. If not provided, defaults to the directory that contains the current page.

Advanced parameters:

  • css: the name of a css class;
  • words: defines the number of words to show for each page. With -1 send the complete page (default -1).

  • items: defines the number of pages to add (default 10).
  • feedtype: defines the type of the feed. (rss_0.9, rss_0.91, rss_0.92, rss_0.93, rss_0.94, rss_1.0, rss_2.0 & atom_0.3 )(default rss_2.0).
  • pub: The ID of addthis.com service. Replace the rss link with the icon and link to the service to add feed to a reeder. (default none).

1.23. Feed Fetcher

The feed fetcher module shows the first words of the most recently contents in a external feed, adding links to go to the full pages.

Argument: URL to the feed to read

Advanced parameters:

  • css: the name of a css class;
  • date: the type of file date to be shown. Possible values are none (default), normal (date only) and full (date and time);
  • words: defines the number of words to show for each page (option -1 display the full html content) (default 50).
  • items: defines the number of pages to show (default 5).

Install

This module need to add jars and modify the web.xml file of the application.

  1. Install servlet and required libraries
    1. Stop your server
    2. Copy the webcontent/WEB_INF/lib jars to your [server webapps dir]/[meshcms dir]/WEB-INF/lib
    3. Add the feed servlet to your web.xml.
      1. The more easy way is replace the meshcms web.xml in [server webapps dir]/[meshcms dir]/WEB-INF/ with the web.xml include in this package. (Only for meschcms 3.3)
      2. If you are other versión of meshcms or you are modify you web.xml,  edit the web.xml file in your WEB-INF and add this lines to activate the servlet
        <servlet>    <servlet-name>feed</servlet-name>    <display-name>feed</display-name>    <description>Rss Feed generator based in last changed module</description>    <servlet-class>    net.ramso.meshcms.modules.FeedGenerator</servlet-class></servlet>
        <servlet-mapping>    <servlet-name>feed</servlet-name>    <url-pattern>/feed</url-pattern></servlet-mapping>
  2. Install modules
    Extract the feed_modules.zip in your modules folder.
  3. Install help pages (only meshcms 3.3)
    Replace the help pages in [server webapps dir]/[meshcms dir]/meshcms/admin/help/en with the two pages in help folder.

Downloads

Feed ModuleFeed Module Version 1.0.0 - Feed Module for MeshCMS

Related posts:

  1. AddThis module