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)
-   -   HTML Static Pages (https://forum.x-cart.com/showthread.php?t=3769)

EZ 07-27-2003 08:22 PM

HTML Static Pages
 
Can someone tell me why every static page I create, it list's it under the help section on the left below the last link, my question can I place the link it creates in any of the categories and how can I do this?

Anyone!

shan 07-28-2003 04:20 AM

this is the bit of code that displays the extra pages in help.tpl

Code:

{include file="pages_menu.tpl"}

you could move that to categories.tpl if you wanted to

EZ 07-28-2003 07:40 AM

Thanks
 
But that would move all my newly created static pages to the same catagory. Example I have created a page called Support that I do want in the help section where it goes to. Then I want to create another page that I can have list under catagories menu would this be possible or do all the static pages just move all together. :?

shan 07-28-2003 08:12 AM

you would need to hard code individual links to do that

EZ 07-28-2003 09:20 AM

Hard Code?
 
When you say Hard Code how hard would it be, LOL IБ─≥m new to this game here but I know a little HTML that's about it. To do this would it be very hard or can I achieve this if I put some thought into it or do I really need to know PHP and smarty. Any examples on how to do this would be appreciated

shan 07-28-2003 11:46 AM

hover over an existing link, see the url its aiming at and hard code that into the .tpl file you want it to appear in

EZ 07-28-2003 01:10 PM

Example
 
Can you give me an example of what the line of code should look like and can I just put this anywhere in the .tpl file of my choice?

Jerry 07-28-2003 02:36 PM

Hi Shan, I've got a question along the same lines. I want to remove some of the static files from the list under the help menu but leave others. Does that have to be hard coded? Thanks, G.

shan 07-29-2003 04:18 AM

At the moment this code is called

this loops through all the new pages that you have made and displays them at the bottom of the help.tpl file

if you wanted to hard code a link to one of your new pages you would need to do the following.

Code:

My New Page

but swap the ??? with the new page id number and change the My New Page text with whatever you want to name the link.

do this in whichever temlpate you wish the link to appear

EZ 07-29-2003 11:33 PM

Thank you
 
Thank you very much!

Jerry 07-30-2003 07:53 AM

Thanks Shan, those are great instructions for adding a link for the Help area or for using a link to them somewhere else in the site.

How do you remove a link from the Help files list. Basically, I have created some static pages used as "product support" pages that do not need to show up as site support pages. I want to reference them from the product detail pages. Suggestions?

EZ 07-30-2003 08:06 AM

Moving Links Around
 
this is the bit of code that displays the extra pages in help.tpl

You should do the following:

1. Edit the "<xcart-dir>/skin1/help.tpl" template and remove the following line from there:

{include file="pages_menu.tpl"}

After that your static pages will not appear in the help section.

2. Edit the same template and insert the following line instead of the removed one:

My static page
if you need a page in the help section.

3. Edit the '<xcart-dir>/skin1/customer/categories.tpl' template and insert a line like

My static page
if you want a link in categories

there. Please substitute the "4" or "3" with actual pageid. and replace >my static page< with new page name. :D

EZ 07-30-2003 08:12 AM

Font Size
 
The only thing I haven't figured out is how to match the text size of (laptops) the new link tha appears in categories to match the font size of the exsisting links. I tried to add this but I couldn't Match the size: (example:<font size="2">Laptops</font>
)

shan 07-30-2003 09:20 AM

Look at the class that sets the text size in the categories.tpl and assign that to the new link too.

Categories list uses its own class for text size

EZ 07-30-2003 09:52 AM

Category Text
 
Would you be able to tell me where it is? Thanks



{* $Id: categories.tpl,v 1.18 2003/02/25 08:58:46 olga Exp $ *}
{capture name=menu}
{if $config.General.root_categories eq "Y"}
{section name=cat_num loop=$categories}
<font class=CategoriesList>{ $categories[cat_num].category_name|escape }</font>

{/section}
{else} {section name=cat_num loop=$subcategories}
<font class=CategoriesList>{ $subcategories[cat_num].category_name|escape }</font>

{/section}
{/if}
Laptops



{/capture}
{ include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu }

shan 07-30-2003 11:04 AM

<font class=CategoriesList> your link here </font>

EZ 07-30-2003 11:31 AM

Thank you
 
thanks so much your awsome! One more question how about the order it appears in the list can I change it?

shan 07-30-2003 12:09 PM

not realy, as the categories loops through and these extra links are just dropped on the bottom of the template.


All times are GMT -8. The time now is 08:26 PM.

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