Page 1 of 1

Help needed with news module

Posted: Fri Sep 28, 2007 2:35 am
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

Re: Help needed with news module

Posted: Fri Sep 28, 2007 2:40 am
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.

Re: Help needed with news module

Posted: Fri Sep 28, 2007 3:26 am
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