Jump to content

All the RSS item fields to MarkupRSS


lpa
 Share

Recommended Posts

The RSS feed module as it is now, is designed to cover the most common scenarios. But it's by no means limited to just common scenarios. Like many things in ProcessWire, it's something that you can copy from /wire/modules/ into /site/modules/ and then modify to cover your specific need. In this case, you'd copy:

/wire/modules/Markup/MarkupRSS.module

to here:

/site/modules/MarkupRSSCustom.module

Then edit the /site/modules/MarkupRSSCustom.module file and change this line at the top:

class MarkupRSS extends WireData implements Module, ConfigurableModule {

To this:

class MarkupRSSCustom extends WireData implements Module, ConfigurableModule {

And this line:

'title' => 'Markup RSS Feed',

to this:

'title' => 'Markup RSS Feed (Customized by Lauri)',

Then install the new module from your admin by clicking to: Modules > Check for new modules. Click "Install" for your new Markup RSS Custom module. 

In your site templates, you will pull in the module using it's new name rather than the old one, i.e. 

$rss = $modules->get('MarkupRSSCustom'); 

You can modify your custom RSS module to add any additional fields or capabilities that you want. And you don't have to worry about losing them during ProcessWire upgrades, because everything under /site/ is protected through upgrades. Let me know if you have any questions or need help getting any part of it to work.

  • Like 1
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...