X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   empty.php (https://forum.x-cart.com/showthread.php?t=18491)

Lionel 12-07-2005 12:11 AM

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.

balinor 12-07-2005 03:34 AM

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!

Lionel 12-07-2005 06:39 AM

ok, I have it now, sorry.

balinor 12-07-2005 06:40 AM

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?

Lionel 12-07-2005 12:14 PM

static page link displays on menu and i don't want that

balinor 12-07-2005 12:15 PM

You can remove that easily.

Lionel 12-07-2005 12:18 PM

how would I do that just for one or 2 pages, yet live it on for others?

balinor 12-07-2005 12:23 PM

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.

Lionel 12-07-2005 12:29 PM

thanks

hooter 12-07-2005 12:36 PM

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}



All times are GMT -8. The time now is 11:13 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.