Jump to content

Adding RSS channel to processwire powered site


qlex
 Share

Recommended Posts

Hi,

congrats on processwire cms - it looks very clean and nice !

I have been asked by a client of mine, who is using processwire to update his website (somebody has created website using processwire and he's not available to help anymore) to login to admin panel and see if he can add rss support.

I need that RSS enabled (for a couple of pages, that he's updating regularly) so that my software (digital signage system) can parse and display his news.

How should i start and do it - without "breaking" his website ? After i login, i can see in modules section that there's "install" button next to Markup RSS Feed (which is strike-through). After that, is there anything more I should do ?

I have only access to panel, but not to ftp etc.

Thanks for your assistance!

Qlex
 

Link to comment
Share on other sites

Hi qlex and welcome to PW - hopefully you'll stick around after this client request :)

Here are the instructions for using the RSS module:

http://modules.processwire.com/modules/markup-rss/

Also, you may want to consider this enhanced version of the RSS module:

http://modules.processwire.com/modules/markup-rssenhanced/

Let us know if you need any specific help getting things to work.

  • Like 2
Link to comment
Share on other sites

adrian, thanks for the info.

Before my programmer helps me, I understand I can go ahead and hit "install" next to Markup RSS Feed. Then we would need to add piece of that code somewhere in those pages, that we want the rss feed to be created.

No need to display it on the client website (for the time being!), but important to get URL of the feed with news that we could parse with our app.


By installing and adding RSS, can the live site be broken - or is it rather secure to add this ?

Link to comment
Share on other sites

I'm using RSS on my site like this:

1. Create a template "feed" or "rss"

2. Create a hidden page ("/feed/" or "/rss/" or whatever you want your url to be)

3. Uploading and customize the following file into template directory and update the field names

feed.php

  • Like 2
Link to comment
Share on other sites

Nico Knoll: thanx !
we installed the rss module without any problems just by hitting install.

to follow your suggestions, for number 3, we would need ftp access or is it doable just through admin ?

Link to comment
Share on other sites

@Nico

You used date(DATE_RFC2822) you're better of with date(DATE_RSS).
 
It's a W3c recomendation, some RSS clients have issues with DATE_RFC2822.
DATE_RFC2822 uses differences in Greenwich time and DATE_RSS uses time zone abbreviations.
So far I understand it depends on where you live if the client accepts the feed.
 
info:
  • Like 1
Link to comment
Share on other sites

Hello!

I tried to install RSS on my website. After install module in admin page I add template from example:

<?php

   $rss = $modules->get("MarkupLoadRSS");
   $rss->load("http://mydomain.com/news/");

   foreach($rss as $item) {
       echo "<p>";
       echo "<a href='{$item->url}'>{$item->title}</a> ";
       echo $item->date . "<br /> ";
       echo $item->description;
       echo "</p>";
   }
?>

After that i make page with this template. But here is problem, when i want open page with rss i get error:

Error: Call to a member function load() on a non-object (line 4 of /my_path/site/templates/rss.php).

How can I resolve that?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...