View Single Post
  #12  
Old 07-08-2008, 05:48 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: How to Create Two Embedded / Static Page Sections

Here's another (easier) way to approach this:

The static pages display via the file, pages_menu.tpl

WHAT IF you were to constrain the pages displayed by ID within the template?

For example, to limit to only pages with orderby ID > 900, add this line after the loop:

Code:
{if $pages_menu[pg].orderby > 900}

(and the obvious {/if} where needed)

So, you could constrain the static pages to a range of orderby IDs, then insert a clone of pages_menu.tpl and constrain to the orderby ID range desired.

Don't know if this is the most elegant or efficient use of code, but it's clearly simple.

Hope this helps.

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote