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

How to Create Two Embedded / Static Page Sections

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 07-08-2008, 05:18 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

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

Thanks guys, thats really helpful of you.

I will keep an eye out for your update JWait. Im not too sure I want to muck around with this too much myself without knowing it works first.
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
  #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
  #13  
Old 07-08-2008, 10:38 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

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

Hi Jeremy, Smarty coding is just a little too far for me to go right now. I have so much to do and know in what I do today that Im not confident or have the time to go there. So Im sort of hoping out for a mod or complete instructions from someone right now.

Thank you all the same, at least this topic serves as a discussion for this most useful modification.


I went to BCS Engineering first before knowing about Tela FIrma, and have also just checked again at Website CM too. Im waiting to get these extra pages completed before ordering the CDSEO Pro upgrade for my site (and another site eventually) so lets hope something pops up soon.

Cheers all.
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
  #14  
Old 07-24-2008, 07:10 AM
 
akuawood akuawood is offline
 

Senior Member
  
Join Date: Jul 2007
Location: Caversham
Posts: 125
 

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

Quote:
Originally Posted by JWait
It would seem that you could clone the "help" section, maybe name it help2 or whatever you want and put your additional static pages there. I'm working on something similar but don't need any of the "help" topics, just the static pages. I'll let you know how it works out.
Just wondering if you managed to get this to work.
__________________
X-Cart Gold-4.5.5
Sheabutter Cottage
Reply With Quote
  #15  
Old 08-01-2008, 09:50 PM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

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

carpeperdiem,

i missed your earlier post.

can you clarify this a little more, I get the idea, so you duplicate thepages_menu.tpl file, so, maybe, pages_menu.tpl, pages_menu2.tpl pages_menu3.tpl if you want 3 categories.

Then in each file set a range:

order by >100 for pages_menu.tpl
order by <100 >200 for pages_menu2.tpl
order by <200 >300 for pages_menu3.tpl

then add them all into the appropriate parent tpl file

Is that correct?

What about category headings? otherwise all the above would just list in a line as if nothing had changed... I guess each clone needs its own heading label either created or hardcoded.

BTW, I am currently waiting for BCS engineering to do a similar mod to my categories section but when they installed the mods the fonts were wrong and an icon went missing, so it was a bit messy. They've un-installed it and I've not heard from them for a week even after messaging them for an update. Its amazing how many cockups I have experienced with this mod either in static pages or categories.

Thanks
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
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 11:10 AM.

   

 
X-Cart forums © 2001-2020