Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-24 15:42:17

lornajane
New Member
Registered: 2006-03-18
Posts: 5

PHP-driven section of site

I hope I’m not missing any resource that I should have read before posting here, but I’m struggling to find an example of what I want to do. I have a textpattern site into which I’d like to add few (like five or six) dynamic pages. These pages talk to each other and post forms to each other.

I’ve read about the txp:php tag but can’t get my head around how my extra pages are going to fit in with my website …. do I write articles with my code in the txp:php tags? And how do I access my post variables? Also (last question), how does $_SESSION behave within textpattern, can I use this in the usual way?

Many thanks in advance for anyone who can give me some suggestions or pointers on this, and also a big thanks to the textpattern team – great product!

Lorna

Offline

#2 2006-04-24 16:54:50

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: PHP-driven section of site

If you already know PHP, you probably want to look at how plugins work in Textpattern. Alex recently wrote a tutorial on it:
http://thresholdstate.com/articles/?c=txp-anatomy

There’s some basic info here as well:
http://textpattern.net/wiki/index.php?title=Plugin_Development_Topics

Offline

#3 2006-04-24 17:23:38

alexburr
Member
From: Rochester, NY
Registered: 2006-02-20
Posts: 14
Website

Re: PHP-driven section of site

My personal site is set up as PHP with TXP installed only in the /blog folder. That way I can still write my PHP pages the way I’m comfortable.

Offline

#4 2006-04-24 20:37:42

lornajane
New Member
Registered: 2006-03-18
Posts: 5

Re: PHP-driven section of site

Thanks for the suggestions guys, I’ve read through all the plugin resources etc, but I need to write something which intercepts whole pages and interacts with POST vars, and that’s a little advanced for the “getting started” pages which are out there already. The tutorials are good and have pointed me in the right direction though, so thanks to everyone who puts time into these things. I have done quite a lot of PHP development and am comfortable with it, my puzzle is the best way to interface with textpattern.

I think I’ll be reading some existing plugins next, try to get a feel for how I can implement what I’m after. I don’t want to write standalone pages because it is only a little bit of the site and I want the textpattern layout, formatting, navigation, and so on to be part of my new pages, I think this is best achieved by extending textpattern itself. Doubtless I’ll be posting here again as I go along :)

Offline

Board footer

Powered by FluxBB