Page 1 of 1

news and mod_rewrite

Posted: Thu Nov 25, 2010 1:24 pm
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"

Re: news and mod_rewrite

Posted: Thu Nov 25, 2010 2:03 pm
by Dr.CSS
You do have a detail template called sample_detail, right?...

Re: news and mod_rewrite

Posted: Thu Nov 25, 2010 2:12 pm
by von-hamster
Yes.