View Single Post
  #2  
Old 06-30-2007, 04:31 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Creating dynamic pages and assigning language variables to them

D.G. -- welcme to xcart.

before you do anything else, please update your forum signature with your exact version (although your forum post says gold 4.1.6, please put it into your sig).

http://forum.x-cart.com/profile.php?do=editsignature

To answer your question, you may want to try this:

Make static embedded pages (well documented in the docs) -- you can either hard-code these pages, or use smarty variables...

To break the pages out into their own menu,

1. in pages_menu.tpl

AFTER:
Code:
{section name=pg loop=$pages_menu}

INSERT:
Code:
{if $pages_menu[pg].orderby > 900} {else} before:
YOUR NORMAL CODE FOR PAGES MENU don't forget to add the closing: {/if} before {/section}

2. Then, in your static pages admin setup, assign the POS greater than 900 to pages that you don't want in the "loop" that gets included in the menu.

3. To determine the URL of the static page, hover over the link in the admin and look at the status bar of your browser.

4. Hard code the link of the "hidden" URL (those w/ POS greater than 900) where you need it.

I use the > 900 technique for private pages and logout confirmations and all kinds of little tricks...

You can always "hard code" the link to the "new" static embedded pages... for the "new" menu... I hope this makes sense. Good luck.

jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote