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)
-   -   Embedded Pages in Special Menu (https://forum.x-cart.com/showthread.php?t=22903)

neaisha 06-30-2006 12:58 AM

Embedded Pages in Special Menu
 
Hi,

I've searched and found a few posts that relate to what I'm trying to do but I'm still unable to achieve the following...

I was able to create static pages by adding pages/US and changing the CHMOD

The embedded page I created now appears in the Help Menu but I'd like it to appear in the "Special" menu instead. How do I do this?

NightFire 06-30-2006 01:06 AM

In skin1/help.tpl

Change your file to this:

Code:

{* $Id: help.tpl,v 1.19 2004/06/04 12:52:38 svowl Exp $ *}
{capture name=menu}
{$lng.lbl_contact_us}

{$lng.lbl_privacy_statement}

{$lng.lbl_terms_n_conditions}

{*{include file="pages_menu.tpl"}*}
{/capture}
{ include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_help menu_content=$smarty.capture.menu link_href="help.php"}


Add this code to skin1/customer/special.tpl:
Code:

{include file="pages_menu.tpl"}

Now your static pages will onyl displayed in the special menu.

neaisha 06-30-2006 01:08 AM

thanks nightfire...

i jumped the gun, i think i just found the answer via this link as well...

http://forum.x-cart.com/viewtopic.php?t=29771

neaisha 06-30-2006 04:41 AM

Does anyone know if it's possible to create a static page and embed a category into it.

I'd like something like this...

http://www.naanishoppe.com/pages.php?pageid=3

What I'd like is something where the static page is listed at the root level and then leads into the various categories/sub-categories for the products.

I know that I could just create a category and then subs but what I like is how the header forms around the image with the static pages vs when you create a category, the image is free standing

i.e. http://www.naanishoppe.com/home.php?cat=250

amy2203 06-30-2006 12:17 PM

That's just using dialog.tpl to place the page content in. Take a look around your templates and you'll see that you can use the dialog style box anywhere. If I remember correctly at this time of night you need to put your content inside tags like this,

{capture}

content here

{/capture ....dialog}

There should be something else in the end capture tag, but it's something like that. All you need to do is add this to your template for your category pages - I can't remember what they are but use webmaster mode to help you find them.

hth


All times are GMT -8. The time now is 08:52 AM.

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