Jump to content

Using RSS Feed Loader and Atom Feed Loader


Publisher-in-Chief
 Share

Recommended Posts

 

I would like to know if anyone has used RSS Feed Loader and Atom Feed Loader module and can advise how to set it up to open a rss feed url in a page.

I could not find a tutorial or documentation other than README file:

README

ProcessWire RSS Loader
======================

Given an RSS feed URL, this module will pull it, and let you foreach() it
or render it. This module will also cache feeds that you retrieve with it.

 

Thanks,

Link to comment
Share on other sites

 

Thanks, I have read the support page and installed the module.

This is all the support page provides:

 

INSTALLATION

 


 

The MarkupLoadRSS module installs in the same way as all PW modules:

1. Copy the MarkupLoadRSS.module file to your /site/modules/ directory.

2. Login to ProcessWire admin, click 'Modules' and 'Check for New Modules'.

3. Click 'Install' next to the Markup Load RSS module.

 

---------------------------------------------------------------------------------

It only instructs how to install the module.  But no tutorial on how to set it up.

I would like instructions how to open a rss feed and display it on a page.

 

Thanks.

 

Link to comment
Share on other sites

Hi @Publisher-in-Chief,

Welcome to the forums!

The link @abdus posted contains an example usage which displays the contents of an rss feed. Copy that example into your template file. Replace the example URL with the one you want to use. View the page.

Additional information on usage can be found under the More Details section of that post.

Let us know if you need help with what you want to accomplish.

 

  • Like 1
Link to comment
Share on other sites

 

Hi Rick,

Thanks for advice.

When you say copy the example into template file, can you advise how to do this?

Please show a screenshot on where to copy the example usage. I just need to know where to copy.

I am totally new to Processwire and not familiar with its structure.  Do I create a page and copy the example code into that page?

I am using a template that I purchased that included all files and the pages were already created.

 

Link to comment
Share on other sites

Do you have Tracy Debugger installed? I believe you can test the rss feed in the console. You would use the Example 1 code from Ryan's post, minus the php tag, like so:

$rss = $modules->get("MarkupLoadRSS");
$rss->load("http://www.di.net/articles/rss/");
foreach($rss as $item) {
	echo "<p>";
	echo "<a href='{$item->url}'>{$item->title}</a> ";
	echo $item->date . "<br /> ";
	echo $item->description;
	echo "</p>";
}

This example works on my 3.0.61 install, so it should work for you as well.

What do you mean you purchased a template with all files (What files?) and the pages (What pages?) were already created? Did you purchase a site profile? 

  • Like 1
Link to comment
Share on other sites

 

Thanks for advice.

I will install Tracy Debugger.

I purchased a "template" from a developer on Codecanyon, i.e. a complete Processwire site with all files and pages designed and created:

https://codecanyon.net/item/seavuel-multilingual-hotel-website-with-cms-bootstrap-theme/19316343

Please advise exactly where I should paste the Example 1 code   A screenshot would be ideal to see where to insert.

Excuse my ignorance, but I am totally new to Processwire only ever worked on Joomla for the past five years, where "Template" has a different meaning.

This is my customised site using the Seavuel website

http://www.salobreapp.co.uk/

 

Link to comment
Share on other sites

Hi @Publisher-in-Chief,

Once you have Tracy installed, it will display a toolbar at the bottom-right of your screen. Click the Console ">_" icon, and paste Example 1 in the window. Click Run to execute the code.

No worries. Every one of us are newbies at something. Feel free to ask any question. There are many good people here that will be glad to help.

Nice site too.

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...