Make "index.php" a config var
Posted: Sat Jun 24, 2006 9:11 pm
How about making the filename "index.php" a config variable like
The reason is because when redesigning a site for a client the main cmsms page named index.php can cause a problem with an exisitng homepage, also called index.php.
For instance: By allowing us to call the main cmsms page "cmsindex.php" in the config file (and of course renaming the file itself to cmsindex.php) I can build a new site with CMSMS on the same server, right alongside an exisiting site. Once the CMSMS site is finished, I can just rename the old "index.php" to something like "index_old.php" (or delete it), then rename cmsindex.php to index.php in the filename as well as the config file.
Of course I can rename the file now, but the way things currently work all the menumanager templates use "index.php" so the navigaiton menus always look for index.php. Currently, just renaming the file doesn't so any good when developing a site.
Code: Select all
$config['main_page'] = "index.php";
For instance: By allowing us to call the main cmsms page "cmsindex.php" in the config file (and of course renaming the file itself to cmsindex.php) I can build a new site with CMSMS on the same server, right alongside an exisiting site. Once the CMSMS site is finished, I can just rename the old "index.php" to something like "index_old.php" (or delete it), then rename cmsindex.php to index.php in the filename as well as the config file.
Of course I can rename the file now, but the way things currently work all the menumanager templates use "index.php" so the navigaiton menus always look for index.php. Currently, just renaming the file doesn't so any good when developing a site.