View Single Post
  #2  
Old 12-20-2004, 05:53 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Hi pcdoktorn, it is actually easier than you think. Let's see if we can walk you though it.

1. Create a new menu file. Click on 'Edit Templates' in your admin menu. Scroll down below all the files and look for a box that says 'Create New File'. Let's call it links.tpl. Type that in the box and click on 'Create'.

2. Now we will need to tell X-cart to display this information. Click on Edit Templates again, and open Customer/home.tpl and replace this:

Code:
{if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if}

with this:

Code:
{if $login eq "" } { include file="auth.tpl" } {else} { include file="authbox.tpl" } {/if} {include file="links.tpl"}

3. Now we need to actually put something in the links menu. Open up the file you created (links.tpl) and paste this code in the box:

Code:
{capture name=menu} Insert content here {/capture} { include file="menu.tpl" menu_title=$lng.lbl_links menu_content=$smarty.capture.menu }

Where it says 'Insert Content Here' you will put your links in, or whatever else you want to put in the box.

4. Now we will need to create a title label for the menu box. In your admin menu, click on Languages. Select your language, and then scroll down to where it says 'Select Topic' and select Labels. Scroll down to where it says 'Add New Entry'. In the first box, type $lbl_links. The second box type the name of the label (in this case Links is fine). In the third box, type how you want the Label (title) to actually appear. In this case, Links will be fine. Hit Apply Changes.

That should do it! Now a new menu should appear between the Authentication Menu and the News menu with the content you created. This works for version 4.0.x.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote