X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to Create Two Embedded / Static Page Sections (https://forum.x-cart.com/showthread.php?t=40405)

crazyoval 07-08-2008 05:18 AM

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.

carpeperdiem 07-08-2008 05:48 AM

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

crazyoval 07-08-2008 10:38 AM

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.

akuawood 07-24-2008 07:10 AM

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.

crazyoval 08-01-2008 09:50 PM

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


All times are GMT -8. The time now is 02:52 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.