configurable extension for url_rewrite
Posted: Mon 26. Jun 2006, 15:10
Hello,
i will suggest the following feature:
A new variable in the config.inc.php like:
$phpwcms["rewrite_ext"] = ".cms";
beside a small change in front.func.inc.php:
function url_search($query) {
if ( substr($query,0,4) == '?id=') {
$noid = substr($query, 4);
$file = str_replace(',', '.', $noid). $GLOBALS['phpwcms']["rewrite_ext"];
} else {
$noid = substr($query,1);
$file = str_replace(',', '.', $noid) . $GLOBALS['phpwcms']["rewrite_ext"];
}
$link = ' href="'.$file.'"';
return($link);
}
This will give anybody the possibilty to modifiy the extension from phtml to wcms (or whatever they want).
A small change to config.inc.php and the .htaccess and everything is possibe.
Does anyone (instead of me) would like to see that in the upcoming 1.27?
Cheers
KiWiX
i will suggest the following feature:
A new variable in the config.inc.php like:
$phpwcms["rewrite_ext"] = ".cms";
beside a small change in front.func.inc.php:
function url_search($query) {
if ( substr($query,0,4) == '?id=') {
$noid = substr($query, 4);
$file = str_replace(',', '.', $noid). $GLOBALS['phpwcms']["rewrite_ext"];
} else {
$noid = substr($query,1);
$file = str_replace(',', '.', $noid) . $GLOBALS['phpwcms']["rewrite_ext"];
}
$link = ' href="'.$file.'"';
return($link);
}
This will give anybody the possibilty to modifiy the extension from phtml to wcms (or whatever they want).
A small change to config.inc.php and the .htaccess and everything is possibe.
Does anyone (instead of me) would like to see that in the upcoming 1.27?
Cheers
KiWiX