PDA

View Full Version : how to insert an ssi or php include in templates


oneant
10-28-2005, 04:21 AM
hi,


how do i include an ssi or php include in templates specifically the header.tpl?

i can add the common header/footer insert on the index.php but it will not include the <title> and <meta tags> that is only available on the header.tpl.

thank you

Ap0s7le
10-28-2005, 05:23 AM
Using an include
Content visible to registered users only.

Is that what you're needing?

-Casey

oneant
10-28-2005, 07:12 AM
hi casey,

thank you for the help

my phplinkdirectory is located in a folder. i need to include my common header which is located outside the public_html on the phplinkdirectory directory pages.

i tried including the code.

{include file="../../header.txt"}
on my header.tpl right before the <body> tag

i guess the smarty template processes the html and would create errors but when i only put simple text on my header file it includes it in the output.