| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
How to have an embedded html file show in the main screen area? | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to have an embedded html file show in the main screen area?
I have read thru lots of threads but cant find an answer to this question.
I have created a new menu called FAQ, under this menu I have created links to html files. Now when you follow this link, it open the html files using the full screen (ie: you dont see the menus , header etc - just the html file) How do I get the html files to open embedded in the main screen area (ie with the menus and header all a round the html doc,) same as if I was using a static page? I dont want to use static pages as i have numerous of these set up and displaying under the help menu. Thoughts ?
__________________
Version 4.7.7 |
|||||||
#2
|
|||||||
|
|||||||
Re: How to have an embedded html file show in the main screen area?
This is exactly what static pages do...why is it that you don't want to use them?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
Re: How to have an embedded html file show in the main screen area?
I didnt want to use static pages as I wasnt aware of a way to split static pages between two menus - ie: they all appear under the help menu.
Is there a way to split static pages between menus ie: have help related static pages under the help menu (where they go by default), and then any others I create go under the Product FAQ menu??? That woulds be easier - if possible?
__________________
Version 4.7.7 |
|||||||
#4
|
|||||||
|
|||||||
Re: How to have an embedded html file show in the main screen area?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Re: How to have an embedded html file show in the main screen area?
Padraic,
I followed that link, and I am afraid this newbie is still as confused! Could you break it down for me?
__________________
Version 4.7.7 |
|||||||
#6
|
|||||||
|
|||||||
Re: How to have an embedded html file show in the main screen area?
ok been giving this some thought. So you are saying I should be able to tell the help menu to display page ids 1 to 10, and the new menu to display pages 10 and above??
So how do i edit pages_ menu.tpl to loop thru up to page id 10? section name=pg loop=$pages_menu} {if $pages_menu[pg].orderby le 10} ??? <A href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</A><BR> {/section} then in my new guides-tpl (my new menu tpl ) i want to show page ids higher than 10 {capture name=menu} {if $pages_menu[pg].orderby gt 10} {/capture} { include file="menu.tpl" dingbats="guide.gif" menu_title= "Guides" menu_content=$smarty.capture.menu}[/left] Am i on the right track here? Struggling with the syntax?
__________________
Version 4.7.7 |
|||||||
#7
|
|||||||
|
|||||||
Re: How to have an embedded html file show in the main screen area?
Anyone got any ideas ?? - I can see lots of sites with extra menus - and they all open in the main screen??
This must be a really common problem. I dont want to give up and just cram in all my links under "help" Cheers
__________________
Version 4.7.7 |
|||||||
#8
|
|||||||
|
|||||||
Re: How to have an embedded html file show in the main screen area?
Here is an example:
1. In pages_menu.tpl, surround the links with the if statement...in this case I used anything under 1000 (also some custom code in there, but you get the idea): {section name=pg loop=$pages_menu} {if $pages_menu[pg].orderby le 1000} <div style="padding-bottom: 5px;"><A href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">+ {$pages_menu[pg].title}</A></div> {/section} So that will show pages with a POS under 1000 on the help menu. 2. Next, I created a new file...call it pages_menu2.tpl. Use the same code as above, but change the orderby number to something else. {section name=pg loop=$pages_menu} {if $pages_menu[pg].orderby gt 1000 and $pages_menu[pg].orderby lt 2000} <div style="padding-bottom: 5px;"><A href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">+ {$pages_menu[pg].title}</A></div> {/section} That will show any static pages between 1000 and 2000. Add this to wherever you would like that displayed: {include file="pages_menu2.tpl"} Make sense?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
Re: How to have an embedded html file show in the main screen area?
You are a legend!! Thanks so much - that worked a treat, its been bugging me for days! Worked out the POS setting - that had me confused for a while.
__________________
Version 4.7.7 |
|||||||
#10
|
|||||||||
|
|||||||||
Re: How to have an embedded html file show in the main screen area?
Where can I find pages_menu.tpl ???
I'm using 3-col classic...Ooops NEVERMIND
__________________
X-Cart Gold 4.1.12 / XC SEO / AOM / Google Checkout / PayPal |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|