Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Creating new navigation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-21-2004, 10:21 AM
 
Tonto Tonto is offline
 

Advanced Member
  
Join Date: Jul 2004
Location: Toronto - Canada
Posts: 37
 

Default Creating new navigation

My test site:

http://www.omniswim.com/customer/home.php

has navigation in the 'Help" side block: Location, Links, What's New, etc.

1. Can I place these above Categories in their own block? If so, how?

2. Is it possible to move them into the 'Categories' block? If so, how?

Can someone let me know as soon as possible please.

Thanks
Reply With Quote
  #2  
Old 09-21-2004, 10:34 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: Creating new navigation

Quote:
Originally Posted by Tonto
1. Can I place these above Categories in their own block? If so, how?

Edit the /customer/home.tpl file are right above the line:
Code:
{ include file="customer/categories.tpl" }
insert:
Code:
{capture name=pages} {include file="pages_menu.tpl"} {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title="Links" menu_content=$smarty.capture.pages}
You can change the variable "Links" to what ever you would like for it to say.

Quote:
Originally Posted by Tonto
2. Is it possible to move them into the 'Categories' block? If so, how?

Edit your /customer/categories.tpl file, adding
Code:
{include file="pages_menu.tpl"}
above the last
so that now your file looks like this:

Code:
{* $Id: categories.tpl,v 1.19.2.1 2004/03/16 12:12:16 svowl Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} {section name=cat_num loop=$categories} <font class=CategoriesList>{$categories[cat_num].category_name}</font> {/section} {else} {section name=cat_num loop=$subcategories} <font class=CategoriesList>{$subcategories[cat_num].category_name}</font> {/section} {/if} {/if} {include file="pages_menu.tpl"} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
Reply With Quote
  #3  
Old 09-22-2004, 11:06 AM
 
Tonto Tonto is offline
 

Advanced Member
  
Join Date: Jul 2004
Location: Toronto - Canada
Posts: 37
 

Default menu

Thanks TelaFirma, I did what you suggested.

Question: Now that I've moved the links to the 'Categories' section - how do I remove them from the 'Help' section, without them disappearing from the 'Categories'??

Also, can I put a 'Home' link in the 'Categories' section - if so, how?
Reply With Quote
  #4  
Old 09-22-2004, 11:22 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

To remove them from the Help section, open the help.tpl file and remove the line
Code:
{include file="pages_menu.tpl"}


To add a link to home, add this to the top of the /customer/categories.tpl

Code:
so that now the file looks like this:
Code:
{* $Id: categories.tpl,v 1.19.2.1 2004/03/16 12:12:16 svowl Exp $ *} {capture name=menu} {if $active_modules.Fancy_Categories ne ""} {include file="`$fancycategories_config.modules_path`/fancy_categories.tpl"} {else} {if $config.General.root_categories eq "Y"} Home {section name=cat_num loop=$categories} <font class=CategoriesList>{$categories[cat_num].category_name}</font> {/section} {else} {section name=cat_num loop=$subcategories} <font class=CategoriesList>{$subcategories[cat_num].category_name}</font> {/section} {/if} {/if} {include file="pages_menu.tpl"} {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }
Reply With Quote
  #5  
Old 09-22-2004, 11:33 AM
 
Tonto Tonto is offline
 

Advanced Member
  
Join Date: Jul 2004
Location: Toronto - Canada
Posts: 37
 

Default menu

Thanks again for your great help

By the way, I like all your site designs!
Reply With Quote
  #6  
Old 10-01-2004, 12:03 AM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

I have some embedded pages that are customized 1. product pages (for sales), some for 2. product instructions (usage), and some for 3. informational purposes (courses offered).

Basically, I want to get the 1. product pages (static embedded pages that I created) into the categories menu or have a new menu for them. Using this post, what variations would I need to use to accomplish this?

It think that I could create a new pages.php and a new pages_menu.tpl (rename them) and use the above name code to insert them into what/whereever I wanted. Would that work?

Thanks,

- Mike
__________________
4.1.9
Reply With Quote
  #7  
Old 10-02-2004, 05:18 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default Re: menu

Quote:
Originally Posted by Tonto
By the way, I like all your site designs!

Well, thank you.

[shamless plug]

I just added another one to my profile for you to check out too

[/shamless plug]
Reply With Quote
  #8  
Old 10-02-2004, 05:21 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Quote:
Originally Posted by mffowler
I have some embedded pages that are customized 1. product pages (for sales), some for 2. product instructions (usage), and some for 3. informational purposes (courses offered).

Basically, I want to get the 1. product pages (static embedded pages that I created) into the categories menu or have a new menu for them. Using this post, what variations would I need to use to accomplish this?

It think that I could create a new pages.php and a new pages_menu.tpl (rename them) and use the above name code to insert them into what/whereever I wanted. Would that work?

Thanks,

- Mike

Mike - Can you kind of give an example of what you are trying to accomplish? I ahve been reading your post and I just can not visualise it in my head. (It is most likely becuase I have a headache).

If you can give an example, I can help you.
Reply With Quote
  #9  
Old 10-02-2004, 08:33 AM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

Thanks TelaFirma.

X-Cart has the functionality to create embedded static pages, but it groups them together as "pages" and therefore you are forced to refer to all of them collectively or not at all. Your post detailed how to create a new menu for "pages", but I don't want to display all of the pages, as they are of various diverse content.

In my business, information is as important as product and I need an "informational pages" menu and display under the categories in the home.tpl. It is easy to create them as static pages, but calling them to display is the tricky part, especially as I only need some of them.

Many thanks,

Mike
__________________
4.1.9
Reply With Quote
  #10  
Old 10-02-2004, 08:49 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

If all you want it to display one or two pages, then just create a normal hyperling in the templates... like:


Or if you want to use the Smarty variables for the Title of the page to be the link, you can use


and just insert them whereever you want.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:29 PM.

   

 
X-Cart forums © 2001-2020