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
|