![]() |
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. |
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!
|
ok, I have it now, sorry.
|
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?
|
static page link displays on menu and i don't want that
|
You can remove that easily.
|
how would I do that just for one or 2 pages, yet live it on for others?
|
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. |
thanks
|
Quote:
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} |
oops! :oops:
I took too long to make my carefully crafted :D response and balinor beat me to it! 8) |
nevertherless, thanks for telling me about that mod. I could use it somewhere else.
|
Quote:
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" |
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. |
Allright I figured it out. That Smarty is really fun.
|
All times are GMT -8. The time now is 08:25 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.