PDA

View Full Version : Includes in Template files


RAitch
11-22-2006, 03:05 AM
I've done some reading and it seems there's no way to use PHP in the template files.

I want to have 1 page that has different content when you click on different links.
If you go here for reference http://www.richardhoutby.com/index.php?x=tutorial I want to add a couple links at the top of the page to display different content... like Photoshop Tutorials, Photography Tutorials, Photoshop Actions... etc.
I was trying to avoid needing more _template.html files... is there a way to do this?

jdleung
11-22-2006, 04:14 AM
yes. you can't use php in the template files.
as I know so far, it's the only way to add more _template.html files. js or ajax may do so. maybe others know.

RAitch
11-22-2006, 02:22 PM
That's what I've done so far... just was wondering if there's a "better" way.

GeoS
11-23-2006, 11:48 PM
You can change PP sources for php scripts support as template files but remember - we (as dev team) wont support it!

PS You can create own addon which can replace your own tags with result of i.e. PHP script ;)

RAitch
11-24-2006, 03:50 PM
I've written several addons already... but didn't want to do it this way. I suppose I could just point to another HTML file to include, but that doesn't make sense to jump through so many hoops.

I think I'll just stick with the multiple _template.html files I guess.
Thanks.