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

Embedded Pages in Special Menu

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-30-2006, 12:58 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default 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?
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #2  
Old 06-30-2006, 01:06 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

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.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #3  
Old 06-30-2006, 01:08 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default

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
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #4  
Old 06-30-2006, 04:41 AM
  neaisha's Avatar 
neaisha neaisha is offline
 

eXpert
  
Join Date: May 2006
Posts: 276
 

Default

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
__________________
X-Cart Gold 4.4.3
--------------------------------------
Reply With Quote
  #5  
Old 06-30-2006, 12:17 PM
  amy2203's Avatar 
amy2203 amy2203 is offline
 

X-Wizard
  
Join Date: Jul 2004
Location: Watford, UK
Posts: 1,509
 

Default

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
__________________
X-Cart version 5 (Previously 3.5-4)

Previous Versions included
BCSE Reward Points Mod
Altered Cart On Sale Mod
Wordpress Plugin

Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there.

Shout me a Coffee!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:53 PM.

   

 
X-Cart forums © 2001-2020