![]() |
How would I combine the vertical menu items into one box
Using 4.1.4 Gold on Unix.
Summary: We want to combine the following boxes into one: categories special your cart help Also, you'll notice we didn't include the authorization box. We want to exclude that from our left side column completely. So, is there a procedure known where we would combine those 4 into one block? And, if not, any insight on how to do so? Plus, as according to balinor's excellent template outline, some of these items are 'shared' between admin and customer. Therefore just deleting the 'authorization' box containing customer login/password recovery/order history/etc. has me a bit concerned. Perhaps this code could be commented out using the {* *} method? |
Re: How would I combine the vertical menu items into one box
Take the content out of special, your cart and help and move it into customer/categories.tpl, excluding the {capture} bits. For example, in help.tpl, just move this part:
<a href="help.php?section=contactus&mode=update" class="VertMenuItems">{$lng.lbl_contact_us}</a><br /> <a href="help.php?section=business" class="VertMenuItems">{$lng.lbl_privacy_statement} </a><br /> <a href="help.php?section=conditions" class="VertMenuItems">{$lng.lbl_terms_n_conditions }</a><br /> {include file="pages_menu.tpl"} |
Re: How would I combine the vertical menu items into one box
Hi balinor:
Ok, i'm clear on that aspect. But in cases like this 'special.tpl' it's loaded with nothing but 'if' statements. Code:
{if $active_modules.Gift_Certificates ne "" or $active_modules.Gift_Registry ne "" or $active_modules.Special_Offers ne "" or ($active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu ne "Y") or ($active_modules.Feature_Comparison ne "" && $is_fc_display_menu eq 'Y')} In your example then i'd eliminate this entire chunk? Code:
{if $active_modules.Gift_Certificates ne "" or $active_modules.Gift_Registry ne "" or $active_modules.Special_Offers ne "" or ($active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu ne "Y") or ($active_modules.Feature_Comparison ne "" && $is_fc_display_menu eq 'Y')} and my code would start with the first 'if' statement after that? Code:
{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu ne "Y"} |
Re: How would I combine the vertical menu items into one box
Yes, and you'd remove this:
{/capture} { include file="menu.tpl" menu_title=$lng.lbl_special menu_content=$smarty.capture.menu } <br /> {/if} |
Re: How would I combine the vertical menu items into one box
Ok, now it being the categories.tpl template i'm putting all this into...would I leave the 'capture' section in there that's related to the categories.tpl? Or remove it as well?
|
Re: How would I combine the vertical menu items into one box
You'll need to leave it if you want the menu structure to show. You can just change the title of it to whatever you want.
|
Re: How would I combine the vertical menu items into one box
Ok, based on that here's what I have which includes:
categories.tpl special.tpl menu_cart.tpl help.tpl Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} |
Re: How would I combine the vertical menu items into one box
Close...you need to move this to the very bottom:
{/capture} { include file="menu.tpl" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding} |
Re: How would I combine the vertical menu items into one box
Ok, that makes sense.
Now, will I need to delete the contents of those .tpl files? help.tpl menu_cart.tpl special.tpl Or delete them entirely? Or, can I just leave them 'as is' since the code will be inserted into the categories.tpl for display? Thanks for your help, balinor. |
Re: How would I combine the vertical menu items into one box
You'll need to hide them from customer/home.tpl so they don't show up anymore.
|
All times are GMT -8. The time now is 02:00 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.