| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
creating a new .tpl file | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi
Following from the other thread and Mike's great video ... I created a new template file for the static pages static.php then static.tpl now the ? is how can I make the static pages (and only certain ones at that !) use this template page ? I don't want to put all the content into the .tpl - because I want to use the same one for a few different pages AND because client needs to be able to edit it. It's also too content much to create a txt_static language box I have this: <code> {if (($page_data.pageid gt '2'))} {if $page_title} <h1 class="pagetitle" >{$page_title|escape}</h1> {/if} {include file="customer/home_main.tpl"} {include file="customer/left_bar.tpl"} {/if} <!-- inner page --> </code> in home_main I added an elseif to point to static.tpl at the bottom (like in the video) any ideas ? Thanks DonnaNJ |
|||||||
#2
|
|||||||
|
|||||||
![]() OK - never mind
I added this {elseif $main eq "pages" && $page_data.pageid gt '2' } {include file="customer/main/static.tpl"} to home_main and BOOM all is right with the world ! DonnaNJ |
|||||||
|
|||
X-Cart forums © 2001-2020
|