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
  #11  
Old 12-07-2005, 12:39 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

oops!
I took too long to make my carefully crafted response and balinor beat me to it!
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #12  
Old 12-07-2005, 12:42 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

nevertherless, thanks for telling me about that mod. I could use it somewhere else.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #13  
Old 12-07-2005, 08:09 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

Quote:
Originally Posted by balinor
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.

I tried that with pages_menu.tpl, it does not work

correction. It works, but only when browsing pages.php

got it to work with
{if $pages_menu[pg].pageid eq "2"
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #14  
Old 12-11-2005, 03:24 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

sorry to come back on that, but I really need an empty.php. I am a vbulletin guy and all I need is xcart top and bottom, so i could put my code in middle.

For example I duplicated pages.php into states.php and created a dropdown displaying all states. On select it gives me states.php?state=$stateid. I altered states table to include a description, and all i need is to display that text.

I could also use an empty.php to replace index.php with relevant content.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #15  
Old 12-11-2005, 08:32 PM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

Allright I figured it out. That Smarty is really fun.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
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:43 AM.

   

 
X-Cart forums © 2001-2020