news and mod_rewrite

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
von-hamster
Power Poster
Power Poster
Posts: 339
Joined: Thu Nov 01, 2007 3:11 pm

news and mod_rewrite

Post by von-hamster »

Code: Select all

$this->RegisterRoute('/[nN]ews\/(?P<articleid>[0-9]+)\/(?P<returnid>[0-9]+)\/(?P<junk>.*?)\/d,(?P<detailtemplate>.*?)$/');
this regexp is wrong, when $config['page_extension'] is not empty:

eg
If:
$config['page_extension'] = '.html' and {news detailttemplate="sample_detail"}
then:
Smarty error: unable to read resource: "module_db_tpl:News;detailsample_detail.html"
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: news and mod_rewrite

Post by Dr.CSS »

You do have a detail template called sample_detail, right?...
von-hamster
Power Poster
Power Poster
Posts: 339
Joined: Thu Nov 01, 2007 3:11 pm

Re: news and mod_rewrite

Post by von-hamster »

Yes.
Post Reply

Return to “CMSMS Core”