qlex Posted May 28, 2014 Share Posted May 28, 2014 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 More sharing options...
adrian Posted May 28, 2014 Share Posted May 28, 2014 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. 2 Link to comment Share on other sites More sharing options...
qlex Posted May 29, 2014 Author Share Posted May 29, 2014 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 More sharing options...
horst Posted May 29, 2014 Share Posted May 29, 2014 Never say never! - but it is rather secure Welcome to the forums, qlex Link to comment Share on other sites More sharing options...
Nico Knoll Posted May 29, 2014 Share Posted May 29, 2014 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 2 Link to comment Share on other sites More sharing options...
qlex Posted May 29, 2014 Author Share Posted May 29, 2014 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 More sharing options...
Martijn Geerts Posted May 29, 2014 Share Posted May 29, 2014 @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: http://www.electrictoolbox.com/php-date-constants/ https://pear.php.net/reference/PHP_Compat-latest/PHP_Compat/_PHP_Compat-1.6.0a3---Compat---Constant---DATE.php.html 1 Link to comment Share on other sites More sharing options...
Nico Knoll Posted May 29, 2014 Share Posted May 29, 2014 @qlex: You would need FTP. Link to comment Share on other sites More sharing options...
hub90 Posted June 6, 2014 Share Posted June 6, 2014 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 More sharing options...
adrian Posted June 6, 2014 Share Posted June 6, 2014 Did you install the MarkupLoadRSS module: https://processwire.com/talk/topic/451-load-rss-feeds-markuploadrss/ or did you install one of the markup modules mentioned in this thread? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now