X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Creating new navigation (https://forum.x-cart.com/showthread.php?t=9473)

Tonto 09-21-2004 10:21 AM

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

TelaFirma 09-21-2004 10:34 AM

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 }


Tonto 09-22-2004 11:06 AM

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?

TelaFirma 09-22-2004 11:22 AM

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:

Home
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 }


Tonto 09-22-2004 11:33 AM

menu
 
Thanks again for your great help :D

By the way, I like all your site designs!

mffowler 10-01-2004 12:03 AM

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

TelaFirma 10-02-2004 05:18 AM

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]

TelaFirma 10-02-2004 05:21 AM

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.

mffowler 10-02-2004 08:33 AM

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

TelaFirma 10-02-2004 08:49 AM

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.

mffowler 10-02-2004 09:43 AM

Thanks TelaFirma!

Now I have total control of my embedded static pages.

Mike


All times are GMT -8. The time now is 01:30 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.