Jump to content

Different Homepage Template


Guest macjs

Recommended Posts

I used to be able to create a new template for the homepage in v.3 but I can't figure it out in v.4.

Does anyone know where I can point the homepage to a new template - index_home.tpl ?

Thanks! :dizzy:

Link to comment
Share on other sites

Please? Anyone? I know this has to be a top question, but for version 4 there are no answers (that I can find). If this answer is posted somewhere, please help me find it. I've searched for 'different homepage' and 'different index page' already.

Thanks~

Link to comment
Share on other sites

I'm trying to figure this out too for v4, I had it for v3 but the code is so much different I'm not sure where to start.

I think that these two files play a big role in the skin selection

index.php

and

includes/global/index.inc.php

I've done some tinkering around but I'm no php coder so it's been trial and error and I haven't gotten anywhere.

Maybe if we all work on this together we can get it solved.

Jen

Link to comment
Share on other sites

hi Jen,

I did get this working, here's the fix:

Change the includes/global/index.inc.php file by modifying the following:

Replace

$body = new XTemplate ("global".CC_DS."index.tpl");




with:




if(isset($_GET['_a'])) {

	$body = new XTemplate ("global".CC_DS."index.tpl");

} else {

	$body = new XTemplate ("global".CC_DS."home.tpl");

		

}

Then make sure you have your home.tpl file in the skin directory (or whatever you want to call it).

Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...