template + php code? template + embedded?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
radioshack
Posts: 2
Joined: Sat Jan 20, 2007 9:36 pm

template + php code? template + embedded?

Post by radioshack »

hey all,

i have an existing header.php and footer.php that i use to wrap my content with php includes on every page on my site. what i would like is to wrap s9y in a header and footer thru a template, but smarty seems to have disabled {php} and {include_php}... making that impossible. is it possible to turn that security feature off so i can run these as includes? or perhaps someone knows the location of the smarty plugins dir so i can make a symlink to my header and footer?

if that is not an option, i have been looking into embedding my site using the indexFile option and a wrapper... but when i do so i lose all my template ability. I really have no desire to hardcode the css for layout and style all over. is there some way i can run embedded but leverage the existing templates (mt-rusty)?

thanks in advance :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: template + php code? template + embedded?

Post by garvinhicking »

Hi!
is it possible to turn that security feature off so i can run these as includes?
Yes: http://www.s9y.org/11.html#A34

You might want to read that topic further, and also check http://www.s9y.org/78.html -- those should get you kickstarted into the right direction :)

HTH,
Garvin[/i]
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
radioshack
Posts: 2
Joined: Sat Jan 20, 2007 9:36 pm

Post by radioshack »

Garvin,

You are the Man. thanks! :mrgreen:
Post Reply