Page 1 of 2
[SOLVED] CGFeedMaker
Posted: Fri Dec 11, 2009 3:54 pm
by Hannibal
I'm having trouble getting FeedMaker working. I have used the default template for 'news' but it doesn't seem to work. I can see the RSS button on my pages, and the RSS title shows up, but when I click it I get redirected to:
http://www.fbtvonline.co.uk/index.php?m ... eturnid=83
Also, I'm using two main categories in my News module, is there a way I can set up two different feeds for for these (Latest News and Latest Productions)?
I've tried to do it in CGFeedMaker, but have am a bit lost.
Re: CGFeedMaker
Posted: Sun Dec 13, 2009 11:47 am
by Hannibal
Dr. CSS wrote:
You may have to use pretty URLs to get it to work, and hey why not have them anyways...
Cheers, will have a look into setting them up. Is it just a case of following the
instructions here to set up pretty URLs?
Re: CGFeedMaker
Posted: Mon Dec 14, 2009 9:31 am
by Hannibal
I've changed my config.php as per the instructions in the link above, and my .htaccess text in my root folder is:
Code: Select all
# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#
Options +FollowSymLinks
#
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /
#
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>
but for some reason I'm getting a 500 Server Error
Re: CGFeedMaker
Posted: Mon Dec 14, 2009 9:43 am
by Hannibal
It seems my hosting is rubbish and doesn't want to give me mod_rewrite, which I assume is what's causing the 500 error. Time to change hosts me thinks
Re: CGFeedMaker
Posted: Mon Dec 14, 2009 9:47 am
by Rolf
Hannibal,
Try to add a
# in the .htaccess in front of this line:
Grtz. Rolf
Re: CGFeedMaker
Posted: Mon Dec 14, 2009 10:07 am
by Hannibal
Rolf wrote:
Hannibal,
Try to add a
# in the .htaccess in front of this line:
Grtz. Rolf
Rolf you are a star! That fixed it completely.
One other question, some URLs are displaying as:
http://www.fbtvonline.co.uk/news/106/53 ... ction.html
Is there a way to remove the "/106/53/" and "d,production.html"?
Re: CGFeedMaker
Posted: Mon Dec 14, 2009 11:05 am
by Rolf
106 is the id of the news article
53 is the return page
Inside-The-Body-of-Henry-VIII is the name of the news article.
d,production.html 
I don't know where this comes from... detailpage perhaps?
You can't change the first three I'm afraid...
®
Re: CGFeedMaker
Posted: Tue Dec 15, 2009 1:02 pm
by Hannibal
Thanks Rolf. I'd guess what the numbers were, it was more the last bit that confused me. The link works fine if I remove it though, so I guess I'll just make sure we do that if we email people links.
Any thoughts on how I can pull out 2 different feeds from my news categories?

Re: CGFeedMaker
Posted: Tue Dec 15, 2009 1:28 pm
by Rolf
Hannibal,
Have you looked into the News templates of you can find the text
d,production there?
In the news links on the page
http://www.fbtvonline.co.uk/productions-catalogue.html the text is also there.
Don't think it is Feed related.
Rolf
Re: CGFeedMaker
Posted: Tue Dec 15, 2009 2:04 pm
by Hannibal
I've had a quick look through the News templates, but couldn't see anything (although I'm a bit out of my depth with templates etc). It's pretty odd
Re: CGFeedMaker
Posted: Tue Dec 15, 2009 2:27 pm
by Rolf
Whow, you have got a
detailtemplate which is called
production:
Code: Select all
<a href="http://www.fbtvonline.co.uk/index.php?mact=News,....//....detailtemplate=production&...>>></a>
Perhaps:
detailtemplate=
production??
Have never seen this before though...

But please try to remove the detailtemplate out of the news-tag and see what happens.
Rolf

Re: CGFeedMaker
Posted: Tue Dec 15, 2009 2:32 pm
by Hannibal
I'll give it a go but am not 100% sure what I need to do. The site was a mess when I inherited it, I didn't want to touch much in case it broke!
Re: CGFeedMaker
Posted: Tue Dec 15, 2009 2:43 pm
by Rolf
No problem, I have tested it on my testsite just now.
And yes the d,production means detailtemplate=production!!!
The news tag in your template should be a.t.m. {news detailtemplate="production"} then...
You have to change this to solve your Feed problem.
Rolf

Re: CGFeedMaker
Posted: Tue Dec 15, 2009 3:04 pm
by Hannibal
I'm lost now! My news tag is currently:
Code: Select all
{* Start News *}
{news number='3' category='productions' detailpage='production' summarytemplate='production' detailtemplate='production'}
{* End News*}
How should it be?
Re: CGFeedMaker
Posted: Tue Dec 15, 2009 3:19 pm
by Rolf
It should be something like:
{* Start News *}
{news number='3' category='productions' detailpage='production' summarytemplate='production'
detailtemplate='production'}
{* End News*}
But do you have more detailtemplates on your site?
Might be getting problems here. But try this first.
Rolf