| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Need help adding item to Help Menu | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am trying to add a new Б─°Help TopicБ─² to the VertMenuItems located on the left side of the home page. I have already moved to this location a few of the X-cart predefined topics such as: Б─°About our siteБ─² and Б─°FAQБ─², this was pretty easy to do.
But when I try to add a new topic like: Б─°Customers HorsesБ─², I am having a great deal of difficulty so say the least. Here is what I have done so far using in the Б─°AdminБ─² program. 1 Б─⌠ Created a new language variable and associated value: variable -> lbl_customers_horses value -> Customers Horses 2 Б─⌠ I edited the Б─°help.tplБ─² template and added this code: {$lng.lbl_customers_horses} 3 Б─⌠ Now the new Help Topic, Б─°Customers HorsesБ─² appears in the left side VertMenuItems box. 4 Б─⌠ I copied the existing template file called -> /help/about.tpl and edited the code text and created a new template file called -> /help/customers_horses.tpl Here is the new file with edited code: {* $Id: customers_horses.tpl,v 1.6 2006/02/21 17:55:00 max Exp $ *} {capture name=dialog} {$lng.txt_horses} {/capture} {include file="dialog.tpl" title=$lng.lbl_customers_horses content=$smarty.capture.dialog extra="width=100%"} <p align="center">[b]<span style="font-family:Arial;color:black">Test for Customer's Horses Section, put rest of required information here!</p> 5 Б─⌠ Where and how do you define these items from the above two .tpl files? The <A href="help.php?section=horses" and {$lng.txt_horses} must be defined somewhere. How does "section=horses" know to load the customers_horses.tpl file? Any help would be great since I am a new user to this group. Moe
__________________
X-Cart Gold version 4.0.17 Moe |
|||||||
#2
|
|||||||
|
|||||||
![]() If you create a new embedded static page it will automatically show up as a link on your help menu. Done
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Ok, but if you do a new HTML catalog once in a while, the users manual gives you this notice:
Warning! This option will remove all *.html files (except shop_closed.html) in the catalog directory before generating a new html catalog. Doesn't that mean that I will have to re-created it after each new HTML catalog? Or does it leave this new static page alone? I guess I could try it and see what happens. Moe
__________________
X-Cart Gold version 4.0.17 Moe |
|||||||
#4
|
|||||||
|
|||||||
![]() The static pages aren't stored in the catalog directory, they are in the skin1/pages/ directory.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
balinor, would you know how to change the order of the listed items in the HELP section? And would you know how to get the FAQ, Request Password and About Our Site in the menu? They show when you click on the word HELP but I discovered that by accident. Can you help me? Thanks in advance. You people who know this stuff are great! Joe
__________________
version 4.0.12 x-cart Gold |
|||||||
#6
|
|||||||
|
|||||||
![]() Quote:
Replace the code in help.tpl with this code. Works like a dream. You people that help us novice hackers rock! {* $Id: help.tpl,v 1.19 2004/06/04 12:52:38 svowl Exp $ *} {capture name=menu} {$lng.lbl_about_our_site} {$lng.lbl_contact_us} {$lng.lbl_privacy_statement} {$lng.lbl_terms_n_conditions} {$lng.lbl_faq} {include file="pages_menu.tpl"} {$lng.lbl_recover_password} {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu link_href="help.php"}
__________________
version 4.0.12 x-cart Gold |
|||||||
#7
|
|||||||
|
|||||||
![]() The answer to Moe's question is that you also need to edit the skin1/help/index.tpl file. In that file you will find the mapping of section ID to help file:
{elseif $section eq "about"} {include file="help/about.tpl"} {elseif $section eq "business"} {include file="help/business.tpl"} etc
__________________
X-Cart Gold 4.0.7 => 4.0.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|