Unify several rss modules

alt=
@andrusito
9 years ago
302 posts
Hello,

How can I make a unique rss file for audio, video and blog modules?

I've already read the last part of this guide:

https://www.jamroom.net/the-jamroom-network/documentation/modules/277/feed-reader-and-rss-feeder

Thankss
updated by @andrusito: 02/24/16 09:56:26PM
michael
@michael
9 years ago
7,714 posts
Your after a seamless list in XML format that currently doesn't exist.

I'll take a look at what it would take.
michael
@michael
9 years ago
7,714 posts
Actually seams like you don't need a module to do that, just put this in a skin template:
{capture name="template" assign="rss_template"}{literal}<?xml version="1.0"?>
<rss version="2.0">
    <channel>
        <title>Seamless RSS Feed for Blog and YouTube</title>
        <description>A combined RSS feed ordered by newest blog and youtube items.</description>
        <link>{$jamroom_url}/feed/junk</link>
        <lastBuildDate>{$smarty.now|jrCore_date_format:"%a, %d %b %Y %T %Z"}</lastBuildDate>
        {foreach $_items as $item}
        {if $item.seamless_module_name == 'jrYouTube'}
            <item>
                <title>{$item.youtube_title|jrCore_entity_string}</title>
                <link>{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.youtube_title_url}</link>
                <description>Category: {$item.youtube_category|jrCore_entity_string}</description>
                <pubDate>{$item._created|jrCore_date_format:"%a, %d %b %Y %T %Z"}</pubDate>
            </item>
        {else}
            <item>
                <title>{$item.blog_title}</title>
                <link>{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.blog_title_url}</link>
                <description>BLOG: {$item.youtube_category|jrCore_entity_string}</description>
                <pubDate>{$item.blog_publish_date|date:'D, d M Y H:i:s O'}</pubDate>
            </item>

        {/if}
        {/foreach}
    </channel>
</rss>
    {/literal}
{/capture}
{jrSeamless_list modules="jrBlog,jrYouTube" order_by="_created desc" limit="300" template=$rss_template}

Then call it from the url of the templates name. so if you call the template 'custom_rss.tpl' it will come out at:
site.com/custom_rss

Adjust the contents for what you want:

"{debug}"
http://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug

"Seamless"
https://www.jamroom.net/the-jamroom-network/documentation/modules/289/seamless

And you can have any combo of RSS feed you like. :)

Originally thought that the headers need to be set, but see that is not necessary.

Tags