How to make index.php default to Home Page
7 posts by 3 authors in: Forums > CMS Builder
Last Post: October 23, 2008 (RSS)
By Laura - October 21, 2008
Re: [Laura] How to make index.php default to Home Page
When they visit your website now, by just typing in your URL without specifying a specific page, on which page do they land?
Also, if you don't mind giving it out, what is the site address?
Jim
Websites That Work
Re: [Laura] How to make index.php default to Home Page
By Dave - October 21, 2008
Also, can you attach your index.php to the post so we can see the code? Thanks! :)
interactivetools.com
Re: [Dave] How to make index.php default to Home Page
By Laura - October 22, 2008
Mr. Jim: As the site is being developed behind the current webiste until it is rolled out, when you type in the website it defaults to the current site.
Dave: I have attached the index.php file
Re: [Laura] How to make index.php default to Home Page
By Dave - October 22, 2008
Try this (changes in red):
$homeCategoryNum = 1;
$selectedCategoryNum = getNumberFromEndOfUrl();
if (!$selectedCategoryNum) { $selectedCategoryNum = $homeCategoryNum; }
list($categoryRecords, $selectedCategory) = getCategories(array(
'tableName' => 'update_website',
'selectedCategoryNum' => $selectedCategoryNum,
'categoryFormat' => 'onelevel', // showall, onelevel, twolevel
));
And just change $homeCategoryNum to whatever the number of your first category record is (click on it in the admin and look in the url to find that out).
Hope that helps! Let me know if that works for you.
interactivetools.com
Re: [Dave] How to make index.php default to Home Page
By Laura - October 23, 2008
Any other ideas?
Re: [Laura] How to make index.php default to Home Page
By Dave - October 23, 2008
Do you want to send me CMS and FTP login details to dave@interactivetools.com and I can take a look for you? (Email, don't post login details to the forum).
interactivetools.com