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

empty.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-07-2005, 12:11 AM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default empty.php

How can I create a page to have only the top and bottom without the left and right navigations?

I know I could just copy the html, but that does not help. The page needs to be part of the system as I am using 2 languages and I'd like for it to be dynamic.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #2  
Old 12-07-2005, 03:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Please put your X-Cart version in your signature, we can't help you without it. Edit profile, enter version, enter help desk password, click the 'Always attach my signature:' box, save. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 12-07-2005, 06:39 AM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

ok, I have it now, sorry.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #4  
Old 12-07-2005, 06:40 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You could just create a static page, and then write an {if} statement that gets it to hide the left and right columns for that particular page. Is that what you have in mind?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 12-07-2005, 12:14 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

static page link displays on menu and i don't want that
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #6  
Old 12-07-2005, 12:15 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You can remove that easily.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 12-07-2005, 12:18 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

how would I do that just for one or 2 pages, yet live it on for others?
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #8  
Old 12-07-2005, 12:23 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Using a smarty {if} statement like this:

{if $smarty.get.pageid eq "1" or $smarty.get.pageid eq "2"}Display this{else}Display this{/if}

Replace 1 and 2 with the actual number of the static pages you want to hide the menus for.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 12-07-2005, 12:29 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

thanks
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #10  
Old 12-07-2005, 12:36 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

Quote:
Originally Posted by Lionel
how would I do that just for one or 2 pages, yet live it on for others?

You can "group" pages similar to Carrie's free category grouping mod, which then allows you to display/or not display any pages you want, wherever you want.

Assign a specific POS value to each of the pages you only want displayed in certain places. Something like this:
900, 901, 902 and so on for each of the "special" pages.

Then using codes like this in your /skin1/pages_menu.tpl or by copying that same template to something like /skin1/special_pages.tpl you can display them/turn them off at will:
Code:
{section name=pg loop=$pages_menu} {if $pages_menu[pg].orderby lt "900"} {$pages_menu[pg].title} {/if} {/section}
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:24 PM.

   

 
X-Cart forums © 2001-2020