With this module it's possible to generate feeds from different path of your site or add feed fetchers for different external feeds.
Use
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;
- 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).
words: defines the number of words to show for each page. With -1 send the complete page (default -1).
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.
- Install servlet and required libraries
- Stop your server
- Copy the webcontent/WEB_INF/lib jars to your [server webapps dir]/[meshcms dir]/WEB-INF/lib
- Add the feed servlet to your web.xml.
- 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)
- 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>
- Install modules
Extract the feed_modules.zip in your modules folder. - 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
[download id="9"]
No hay comentarios:
Publicar un comentario