View Single Post
  #1  
Old 05-09-2014, 08:40 AM
 
DBK Web Builder DBK Web Builder is offline
 

Advanced Member
  
Join Date: Apr 2014
Location: NJ
Posts: 67
 

Default 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
__________________
4.6.2 and 4.6.3
http://www.DBKWebBuilder.com
Reply With Quote