Following the RSS Feeds Tutorial (http://docs.couchcms.com/concepts/rss-feeds.html), I am trying to create a feed for blog listing.
So I create rss.phh with the following code and placed it in the root folder, i.e. it should be available on "http://example.com/rss.php":
Now the problem is when I visit the stream in the browser, the page gets redirected to the login screen:
http://example.com/cmsadmin/login.php?r ... %2Frss.php
Any idea what could be wrong?
Is it possible that some variable names changed in config.php since the tutorial was written (i.e. k_site_charset vs K_CHARSET)?
So I create rss.phh with the following code and placed it in the root folder, i.e. it should be available on "http://example.com/rss.php":
- Code: Select all
<?php require_once( 'cmsadmin/cms.php' ); ?>
<cms:content_type 'text/xml' /><cms:concat '<' '?xml version="1.0" encoding="' k_site_charset '"?' '>' />
<rss version="2.0">
<channel>
<title>Blog RSS Feed</title>
<link>http://example.com/blog/</link>
<description>Blog Posts</description>
<language>en-us</language>
<cms:pages masterpage='blog.php' limit='10'>
<item>
<title><cms:show k_page_title /></title>
<link><cms:show k_page_link /></link>
<description><cms:excerptHTML count='50' ignore='img'><cms:show blog_content /></cms:excerptHTML></description>
<pubDate><cms:date k_page_date /></pubDate>
</item>
</cms:pages>
</channel>
</rss>
<?php COUCH::invoke(); ?>
Now the problem is when I visit the stream in the browser, the page gets redirected to the login screen:
http://example.com/cmsadmin/login.php?r ... %2Frss.php
Any idea what could be wrong?
Is it possible that some variable names changed in config.php since the tutorial was written (i.e. k_site_charset vs K_CHARSET)?