I am doing some modifications on mu Joomla template and I want to built a completely different home page (Front page) for the template.
This is my first experience with joomla template modification, so I came up with an idea to place an IF statement in the index.php file of the template to see if the user is navigating the front page, so the statement is true and the code generates my own code (my front page) and if the user is navigating other pages the if statement would be false then it will generate the built in template.
but the problem is what would be the “if statement”?
//begining of the code....
if (this is the front page){
//my template code containing some installed modules
}else {
//run as normal
}
OR if I am doing totally wrong job, please laugh at me and give a better idea
Thanks
1 Answer