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

Need pages with no left menu...

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

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default Need pages with no left menu...

Hello,

I need to have a couple of pages that don't have the standard menu on the left side and use the whole screen.

Anyone know how I can delete the menu for these specific pages and use the space where it was for content?

Thanks,
Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #2  
Old 03-11-2005, 12:21 PM
 
balinor balinor is offline
 

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

Default

You could do a root level static page instead of an embedded static page.....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-11-2005, 12:26 PM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

Won't that get rid of my header and footer as well though?

I need those to stay, just not the menu...

Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #4  
Old 03-11-2005, 12:32 PM
 
balinor balinor is offline
 

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

Default

Well, you could either include the header and footer in the static page, or you could surround the menu with an {if} statement....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-11-2005, 12:38 PM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

What would the {if} statement be? That's my problem, I don't know the coding well enough to make something like that work...

Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #6  
Old 03-11-2005, 01:46 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

It depends on what page(s) you want to remove it on.

In general, pages are called with a "main" variable.

{if $main eq "help"} do this
{else} do this instead
{/if}

You can view the "main" variable in the php file.

You can remove the left side in skin1/customer/home.tpl but you may have to edit some "colspan" entries also.
Reply With Quote
  #7  
Old 03-12-2005, 02:00 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default

hi Balinor,
Could you please explain how to include the header and footer in
a root level static page?

Thanks!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #8  
Old 03-12-2005, 05:00 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

I'm not sure I'm clear on this yet.

Let's use the shopping cart as an example because that 's one of the places where I'd like to remove the left menu.

In cart.php I can delete the "categories" file so the menu doesn't show up. But I don't know how to actually use that space. All my tables on the page are set to width="100%" but they still don't fill up where the menu was.

Any idea how I move those tables over?

Thanks,
Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
Reply With Quote
  #9  
Old 03-12-2005, 05:03 AM
 
balinor balinor is offline
 

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

Default

That is because the table column is still there. You can't just remove the menus, you would have to remove that whole first column....
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 03-12-2005, 05:11 AM
 
jkirkpatrick jkirkpatrick is offline
 

Senior Member
  
Join Date: Jan 2005
Posts: 193
 

Default

That's what I'm trying to learn how to do...

Would that be done in cart.php? Would I need an {if} statement?

Specifics would be greatly appreciated

Thanks,
Jennifer
__________________
Jennifer Kirkpatrick
X-Cart Pro Version 4.4.1
AND
X-Cart Gold Version 4.1.9
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:09 AM.

   

 
X-Cart forums © 2001-2020