![]() |
Cusotm homepage
I want to make a custom homepage. On the homepage, I want only header, minicart ad login panel and only a few images, like this one:
http://www.lancome.co.uk/_en/_gb/ But when I hide all the pannels in the home.tpl, they disappear on the other pages, too. I want a home page like the one on the link and standart light & lucid 3 columns view on all other pages. Which file to edit to remove everything in the #left-bar, #right-bar and #center only on the frontpage and keep them on all other pages. Please help... |
Re: Cusotm homepage
You are in the right template, but you need to surround the include statements for the menus with an if statement:
{if $main neq "catalog" || $current_category.category neq ""} If you use that, the pannels will appear on all pages but the home page. |
Re: Cusotm homepage
Thanks, I figured it out. ;-)
|
Re: Cusotm homepage
Thanks for that infrmation what i can not figureout is
"when I hide all the pannels in the home.tpl, they disappear on the other pages, too. I want a home page like the one on the link and standart 3 columns view on all other pages. remove everything in the #left-bar, #right-bar and #center only on the frontpage and keep them on all other pages. " This is my home.tpl pls see you can help me? <div id="main_container" style="width:{if $config.Smart_Template.st_col_layout_type eq "Fixed"}{$config.Smart_Template.st_col_layout_widt h}px{else}100%{/if}"> <!-- ************************************************** ********************************** --> {include file="custom/header_`$config.Smart_Template.st_col_header_type` .tpl} <!-- ************************************************** ********************************** --> <div class="colmask"> <div class="colmid"> <div class="colright"> <div class="col1wrap"> <div class="col1pad"> <div class="col1"> <div class="colpad_body"> <!-- Column 1 start --> {if $main neq "catalog" || $current_category.category neq ""} {include file="customer/bread_crumbs.tpl"} {/if} {if $config.Smart_Template.st_show_ie6_warning eq "Y"} {include file="custom/ie6_upgrade.tpl"} {/if} {if $gcheckout_enabled && $main ne "cart" && $main ne "checkout" && $main ne "anonymous_checkout" && $main ne "order_message"} {include file="modules/Google_Checkout/gcheckout_top_button.tpl"} {/if} {include file="customer/evaluation.tpl"} {include file="customer/dialog_message.tpl"} {if $page_title} <h1>{$page_title|escape}</h1> {/if} {if $active_modules.Special_Offers} {include file="modules/Special_Offers/customer/new_offers_message.tpl"} {/if} {include file="customer/home_main.tpl"} {include file="customer/printable_link.tpl"} <!-- Column 1 end --> </div> </div> </div> </div> <div class="col2"> <div class="colpad"> <!-- Column 2 start --> {if $categories && ($active_modules.Flyout_Menus || $config.General.root_categories eq "Y" || $subcategories)} {include file="customer/categories.tpl" } {/if} {if $active_modules.Bestsellers} {include file="modules/Bestsellers/menu_bestsellers.tpl" } {/if} {if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"} {include file="modules/Manufacturers/menu_manufacturers.tpl" } {/if} {include file="customer/special.tpl"} {if $active_modules.Survey && $menu_surveys} {foreach from=$menu_surveys item=menu_survey} {include file="modules/Survey/menu_survey.tpl"} {/foreach} {/if} <!-- Column 2 end --> </div> </div> <div class="col3"> <div class="colpad"> <!-- Column 3 start --> {include file="customer/language_selector.tpl"} {if $active_modules.SnS_connector} {include file="modules/SnS_connector/button.tpl"} {/if} {if $active_modules.Feature_Comparison && $comparison_products ne ''} {include file="modules/Feature_Comparison/product_list.tpl" } {/if} {include file="customer/menu_cart.tpl" } {if $config.Smart_Template.st_use_my_account ne "Y"} {if $login eq "" } {include file="customer/auth.tpl" } {else} {include file="customer/authbox.tpl" } {/if} {/if} {include file="customer/news.tpl" } {* Recently Viewed *} {include file="customer/recent.tpl"} {* /Recently Viewed *} {include file="customer/help/menu.tpl"} {if $active_modules.XAffiliate && $config.XAffiliate.partner_register eq 'Y' && $config.XAffiliate.display_backoffice_link eq 'Y'} {include file="partner/menu_affiliate.tpl" } {/if} {if $active_modules.Interneka} {include file="modules/Interneka/menu_interneka.tpl" } {/if} {if $active_modules.Users_online} {include file="modules/Users_online/menu_users_online.tpl"} {/if} <!-- Column 3 end --> </div> </div> </div> </div> </div> <div class="clearing"></div> <!-- ************************************************** ********************************** --> {include file="custom/footer.tpl} <!-- ************************************************** ********************************** --> {if $config.Smart_Template.st_use_my_account eq "Y"} {include file="custom/modules/my_account/my_account.tpl"} {/if} </div><!-- /maincontainer --> {if $config.Smart_Template.st_use_cufon eq "Y"} <script type="text/javascript" src="{$SkinDir}/custom/modules/cufon/render_cufon.js"></script> {/if} [/font] |
Re: Cusotm homepage
Quote:
i got that but still showin in the home page? |
Re: Cusotm homepage
Try debugging until you figure out how it works - you can enter code in home.tpl and see the values of the variables and understand why things are showing and not showing:
Code:
<p>Here is my debug code:<br /> Look at skin1/customer/home_main.tpl - it will give you an idea of what value to test for in $main for various pages. |
Re: Cusotm homepage
Hi cosy,
If you want to hide included file only on the homepage you go like this: Code:
{if $main neq "catalog" || $current_category.category neq "" and ($main ne "catalog" or $cat ne "")} You can replace the string in red with any included file you want. If you want to hide a module only on the homepage you go like this: Code:
{if $active_modules.Bestsellers and ($main ne "catalog" or $cat ne "")} The only file you need to edit is: skin1/customer/home.tpl Thats everything I did and it works for me :wink: Take care! |
Re: Cusotm homepage
Thanks FTI, good to know
Kev |
All times are GMT -8. The time now is 01:26 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.