![]() |
creating a new .tpl file
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 |
Re: creating a new .tpl file
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 |
| All times are GMT -8. The time now is 12:08 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.