Help with creating an rss feed to submit to Apple news

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 6, 2016   (RSS)

By JeffC - June 30, 2016

Has anyone on this forum tried this yet? I have submitted a feed to Apple and it has been rejected, but their feedback is not particularly informative, simply: at least one feed isn't functional

Can someone take me back to basics with RSS. If I use the RSS code generator should I simply save this file as myfeed-rss.php and upload that to Apple?

Thanks

Jeff

By Daryl - July 6, 2016

Hi Jeffncou,

Thanks for sharing your solution.

I did some research and found out that GUID doesn't necessarily need to be a permalink. 
According to the following documentation, it is used as unique identifier where an aggregator may use to determine if an item is new.
https://validator.w3.org/feed/docs/rss2.html#ltguidgtSubelementOfLtitemgt

If we need to add a link to an item, we can use the <link> tag which the code generator already adds to the code: 
http://www.rssboard.org/rss-profile#element-channel-item-link

I will discuss this with our senior programmer if we should update the code generator to set the "isPermaLink" attribute to false by default.

For the <br> tags in the title element, you can use strip_tags function to remove it. ie:

strip_tags($title, '<br>');

There's no easy way to check for it when a user creates a record.

But a plugin that is hooked to "record_presave" plugin hook is one way to check for <br> tags before saving a record.

Please let me know if you have any questions and let us know the results from Apple.

Thanks,

Daryl Maximo
PHP Programmer - interactivetools.com