Help needed with news module

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
relic
Forum Members
Forum Members
Posts: 34
Joined: Fri Dec 08, 2006 9:59 am

Help needed with news module

Post by relic »

Hello everyone,

first of all i would like to say that CMSMS is one very powerful application, i am setting up an online magazine powered by CMSMS and have a few questions that someone may be able to help me out with.

Due to the amount of content that will be added to the site, i want to use the news module as a "articles" module, this way i will not have to update the home page every time new content is added.

Currently the news modules puts out: www.mysite.com/news/1/15.html
And i would like it to do: www.mysite.com/articles/category/title.html

i have tried the following..

$onerow->titlelink = $this->CreateLink($id, 'detail', $detailpage!=''?$detailpage:$returnid, $row['news_title'], $sendtodetail,'',false,false,'',true);

i added this before the line of code above:

if ($this->cms->config['assume_mod_rewrite'] == true)
{
$onerow->titlelink = "cms->config['page_extension'] . "\">" . $row['news_title'] . "";
}
else
{
$onerow->titlelink = $this->CreateLink($id, 'detail', $returnid, $row['news_title'], $sendtodetail,'',false,false,'',true);
}



I put the mouse over the news title, and the link is the same , doesn't change ......

I have also tried this:


$prettyurl = 'articles/'.$row['category'].'/'.($detailpage!=''?$detailpage:$returnid);
if (isset($sendtodetail['detailtemplate']))

{$prettyurl .= '/d,' . $sendtodetail['detailtemplate'];}


but... that just goes no where..

i was going to take the whole news module and replace "news" with "article" but there may be an easier way to do it, any help or ideas would be greatly appreciated.

Cheers,
Dave
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Help needed with news module

Post by calguy1000 »

to do this requires a code modification.  there's nothing in the source that supports this form of pretty url at the moment.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
relic
Forum Members
Forum Members
Posts: 34
Joined: Fri Dec 08, 2006 9:59 am

Re: Help needed with news module

Post by relic »

calguy1000 wrote: to do this requires a code modification.  there's nothing in the source that supports this form of pretty url at the moment.
Hmm its strange.. i got part of the code quoted here http://forum.cmsmadesimple.org/index.ph ... 004.0.html and it seems to be working fine for him.

dave
Post Reply

Return to “CMSMS Core”