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
Help needed with news module
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Help needed with news module
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.
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.
Re: Help needed with news module
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.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.
dave

