Forum for discussing general topics related to Couch.
5 posts Page 1 of 1
Hi there!

First off, after years of Wordpress-induced headaches I am loving the Couch experience!

I'm trying to set up a simple RSS feed for a client's blog. I followed the Documentation guide but the script didn't validate in Feedburner, and I checked the link itself and it seems like it's redirecting to my login page. Any idea what i'm doing wrong or what could be causing this? Here's my link and my feed script... http://pattersonstudiosmusic.com/rss.php

Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:content_type 'text/xml' /><cms:concat '<' '?xml version="1.0" encoding="' k_site_charset '"?' '>' />
<rss version="2.0">
  <channel>
    <title>Patterson Studios Blog</title>
    <link><cms:show k_site_link /></link>
    <description>Instruction, Production, and Performance</description>
    <language>en-us</language>
    <pubDate><cms:date format='D, d M Y H:i:s' gmt='1'/> GMT</pubDate>
    <generator>Couch CMS</generator>

    <cms:pages masterpage='blog.php' limit="10">
    <item>
        <title><cms:show k_page_title /></title>
        <link><cms:show k_page_link /></link>
        <description>
            <cms:html_encode>
                <cms:show blog_content />
            </cms:html_encode>
        </description>

        <pubDate><cms:date k_page_date format='D, d M Y H:i:s' gmt='1'/> GMT</pubDate>
    </item>
    </cms:pages>

</channel>
</rss>
<?php COUCH::invoke(); ?>


Thanks in advance!

-Andy
Hello and welcome Andy :)
I am glad you liked Couch.

As for the unexpected login-prompt - there could be two possible reasons:

1. The template (i.e.rss.php) is not yet registered with Couch.
To verify this, please login as super-admin into the admin-panel and take a look at the sidebar - 'rss.php' should be listed in there. If not, the login box you see is actually prompting to you enter the super-admin creds so as to complete this registration. Please do so and that should be it.

2. The template's access permission has been set to something other than the default 'Everybody'.
This can be seen from the 'Advanced settings' dropdown we get on the template's edit screen (top-right). Please check if this is so and correct it.

If none of the two above mentioned reasons apply, you can PM me your site's FTP + Couch creds and I'll take a look to see if there is something I can spot.

Thanks.
Bingo! Thanks so much... that was far too easy! :)
Before I create a separate thread,

I've used this very technique, and modified it to store an xml list of video clips, complete with the published date, video designer, video type e.tc...

the point is to direct my html5 video player to this xml file to pick out different properties such as file name, file location, file type... But it doesn't seem to work as it would with an actual xml file. (I'm using PHP simplexml)

I assumed the video player isn't seeing parsed XML content but raw cms code, Is there a way to have this template dynamically export itself as an ".xml" ?? (Overwriting itself every time)
---
You live many times, but only ever remember your lives.length - 1
---
Image
Simmons,

Please create a new thread and post in the exact details of the format expected by your player.

Can you get it working without Couch?
If yes, that would be the baseline to work on.
Keep a copy of the original working XML file and compare it with the couchified version.
The two should be identical.
5 posts Page 1 of 1