Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-07 22:57:01

Charlie Chalk
Member
Registered: 2005-09-06
Posts: 51

passing catagory tag contents to php script

Hi

I use the catagory tag to display the title of my pages.

I have a php script I’d like to use that requires this info. Can anyone tell me how I define my php variable with the contents of the catagory tag?

I’ve tried a few different ways with no success (one was after reading the gordian knot text, I assumed I could use catagory in the same way they used custom_field but it didn’t seem to work).

I am not, by any stretch of the imagination, very good with php.

Thanks

CC

Offline

#2 2007-10-07 23:59:22

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: passing catagory tag contents to php script

The variable is passed in the url, if you want to use the category variable of a category search use $c.

Offline

Board footer

Powered by FluxBB