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

How to have an embedded html file show in the main screen area?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-22-2006, 04:00 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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
Reply With Quote
  #2  
Old 10-22-2006, 04:54 PM
 
balinor balinor is offline
 

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

Default 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
Reply With Quote
  #3  
Old 10-22-2006, 06:07 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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
Reply With Quote
  #4  
Old 10-22-2006, 06:12 PM
 
balinor balinor is offline
 

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

Default Re: How to have an embedded html file show in the main screen area?

Yep, this one should take care of it for you:

http://forum.x-cart.com/showthread.php?t=22095
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 10-22-2006, 11:56 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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
Reply With Quote
  #6  
Old 10-23-2006, 11:22 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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
Reply With Quote
  #7  
Old 10-26-2006, 12:03 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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
Reply With Quote
  #8  
Old 10-26-2006, 03:01 AM
 
balinor balinor is offline
 

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

Default 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
Reply With Quote
  #9  
Old 10-26-2006, 03:31 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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
Reply With Quote
  #10  
Old 12-01-2006, 06:16 PM
  baconbits's Avatar 
baconbits baconbits is offline
 

Advanced Member
  
Join Date: Nov 2006
Location: WNY
Posts: 46
 

Default 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
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 06:55 PM.

   

 
X-Cart forums © 2001-2020