View Single Post
  #2  
Old 04-23-2008, 03:57 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Adding HTML Boxes on Main Page

To give you an idea of some of the options already available, for some consistency, create a new .tpl inside the skin1/customer/ folder and call it something like, mycustombox.tpl

open up your newly created file (mycustombox.tpl) and add this inside it...
Code:
{capture name=mycustomdialog} I'm a dialog box!! {/capture} {include file="dialog.tpl" title="A Custom Dialog Box" content=$smarty.capture.mycustomdialog extra='width="100%"'} <br /> {capture name=mycustommenu} I'm a menu box!! {/capture} { include file="menu.tpl" dingbats="xlogo.gif" menu_title="A Custom Menu Box" menu_content=$smarty.capture.mycustommenu cellpadding=$fc_cellpadding} <br />


Then open up skin1/customer/home.tpl and locate one of the following TDs and place {include file="customer/mycustombox.tpl"} underneath them.

<td valign="top" width="100%"> (add include below this code for your main content)
<!-- central space -->

or

<td class="VertMenuLeftColumn"> (add include below this part for your left column)

or

<td class="VertMenuRightColumn"> (add include below this part for your right column)

If nothing shows up use cleanup.php to clean the cache.


Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote