Jump to content

Custom home page


FireFoxII

Recommended Posts

I'm not sure what exactly you are trying to achieve, but I would do something like this:

 

open file themes/my_theme/header.tpl. Right after the <body{ [...] line add the following:

{if $page_name == 'index' && !$smarty.get.show}
  {include file="$tpl_dir./my_custom_homepage.tpl"}
  {else}

Then at the very end of the same file add

{/if}

Then on both themes/my_theme/footer.tpl and themes/my_theme/index.tpl beginning add

{if !($page_name == 'index' && !$smarty.get.show)}

and at the end of those files add

{/if}

Then in the my_custom_homepage.tpl template add a homepage link which would have a show=1 parameter.

 

Home this helps.

 

EDIT: in the footer.tpl file add {/if} before </body> tag.

Edited by pishkus (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...