Trying to modify RSS Feed links

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Trying to modify RSS Feed links

Post by Elijah Lofgren »

If I understand you correctly (pardon me if I do not, I am very tired right now)

Look at the page with alias "recent-news" and see what ID it has (just look at the link when you are editing it)

If you find, for example, that the id of the page is "10" then try this code (replace 10 with the real id):

$returnid specifies the page to return to.
$onerow->link = $this->CreateLink($id, 'detail', 10, '', $sendtodetail,'',true,false,'',true,'news/'.$row['news_id']);
Hope this helps,

Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Trying to modify RSS Feed links

Post by Elijah Lofgren »

Ah, I think my change would have only worked if pretty URLs were off try this (substituting 10 with your page id):

Code: Select all

$onerow->link = $this->CreateLink($id, 'detail', $returnid, '', $sendtodetail,'',true,false,'',true,'news/'.$row['news_id'].'/10');
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: Trying to modify RSS Feed links

Post by carasmo »

I did this with 1.06 (or the latest as of this writing, with the updates to the title of article in title bar and blogger like url links) and it doesn't work.

Please, I'm begging.

Thanks!!
Post Reply

Return to “CMSMS Core”