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 06-10-2008 08:32 AM

How to Create Two Embedded / Static Page Sections
 
Hi guys, hope you are all well.

Am wondering if anyone knows how to add a second embedded / static page list? I want to use two distinct sections, one for help topics and one other for markets (i.e. a page for each of the niches I market to so I can create keyword rich landing pages that sit just below the top page).

Any ideas guys?

Is there a mod somewhere for this?

Many thanks

Guy

connemara 06-26-2008 11:30 AM

Re: How to Create Two Embedded / Static Page Sections
 
Yes, there is a mod for this- static pages categories by telefirma.
It works great with CDSEO as well. Have it operating here:
http://www.nonuttin.com/shop/ see allergy FAQs and Support sections. Every time you create a new static page, you assign it to the category you want it to go into.

Connie

Yurij 06-27-2008 12:43 AM

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

Originally Posted by crazyoval
Hi guys, hope you are all well.

Am wondering if anyone knows how to add a second embedded / static page list? I want to use two distinct sections, one for help topics and one other for markets (i.e. a page for each of the niches I market to so I can create keyword rich landing pages that sit just below the top page).

Any ideas guys?

Is there a mod somewhere for this?

Many thanks

Guy



For the first page of the block used with the value of field "orderby" less than 300, for the second - more.



PHP Code:

{capture name=menu}
    {
section name=pg loop=$pages_menu}
        {if 
$pages_menu[pg].orderby lt 300}
            <
a href="pages.php?pageid={$pages_menu[pg].pageid}class="VertMenuItems">{$pages_menu[pg].title}</a><br />
        {/if}
    {/
section}
{/
capture}
{include 
file="menu.tpl"  menu_title="First Block" menu_content=$smarty.capture.menu 



PHP Code:

{capture name=menu}
    {
section name=pg loop=$pages_menu}
        {if 
$pages_menu[pg].orderby gt 299}
            <
a href="pages.php?pageid={$pages_menu[pg].pageid}class="VertMenuItems">{$pages_menu[pg].title}</a><br />
        {/if}
    {/
section}
{/
capture}
{ include 
file="menu.tpl"  menu_title="Second Block" menu_content=$smarty.capture.menu 


crazyoval 06-27-2008 11:14 AM

Re: How to Create Two Embedded / Static Page Sections
 
Hi Connie, I cant find a site for telefirma, can you give me a link please? I see your site, its exactly what I am looking for, thank you very much for showing me :O)

crazyoval 06-27-2008 11:21 AM

Re: How to Create Two Embedded / Static Page Sections
 
Found them Connie, you are a star thank you.

Thank you also Yurij, and I took a look at your skins / templates, they look great! I paricularly liked the black one. WIsh I knew about that 6 months ago!! :O)

WIll keep them in mind anyway.

ALl the best.

connemara 06-27-2008 04:06 PM

Re: How to Create Two Embedded / Static Page Sections
 
great! glad to help :-)
connie

Holub 06-30-2008 12:32 AM

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

Originally Posted by crazyoval
I took a look at your skins / templates, they look great! I paricularly liked the black one. WIsh I knew about that 6 months ago!! :O)


Today expires of 15% discount offer for our templates.

crazyoval 07-06-2008 10:41 PM

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

Unfortunately I have discovered too late that TelaFirma are not currently in business. The guy who runs it has not been heard for a while, for whatever reason. Giving the guy a break I would hope his life is ok and that he can come back to normality at some stage. If I find out that TelaFirma is open for business again I will add to this posting but felt it unwise to leave this posting without this current warning to others who may purchase something online and subsequently find that there is no follow up to their purchase.

connemara 07-07-2008 07:39 AM

Re: How to Create Two Embedded / Static Page Sections
 
Oh what a shame! I hadn't checked but would one of the other developers, like Jon at WebsiteCM or Carrie carry this mod? You might just try and check. I had originally done a manually coded second menu myself but wasn't completely satisfied; perhaps this is where Yuri's example would be helpful to you.
Good luck
Connie

JWait 07-07-2008 12:04 PM

Re: How to Create Two Embedded / Static Page Sections
 
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.

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 05:00 AM.

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