Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3977490
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:55:47+00:00 2026-05-20T04:55:47+00:00

I am doing some modifications on mu Joomla template and I want to built

  • 0

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 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:55:48+00:00Added an answer on May 20, 2026 at 4:55 am
    $option = JRequest::getVar('option', '');
    $view   = JRequest::getVar('view', '');
    $task   = JRequest::getVar('task', '');
    
    if($option == 'com_content' && $view =='frontpage' && $task=='')
    {
       //your template code
    }
    else
    {
       //run as normal 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day, I've been doing some modifications to this website and the owner wants
I`m doing some web.config modifications with SPWebConfigModification class. When adding them to WebApplication and
Been doing some playing call my service which is on a different domain using
I'm doing some modifications to a wordpress theme, but I'm having a challenge removing
After reading from an existing file with 'ugly' XML and doing some modifications, pretty
I am new to YUI and I am doing some SugarCRM PHP modifications. I
After doing some minor modifications to my app and loading it up into the
I'm doing some prototyping work in C, and I want to compare how long
Doing some jquery animation. I have certain divs set up with an attribute of
Doing some homework here (second assignment, still extremely green...). The object is to read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.