PHP can only be used in templates. If this really needs to be in the description instead of the template, you can turn your PHP code into a function in a modification file and then use its template variable in the category description... or maybe what you're really looking for is a pseudomethod, I can't tell without knowing what you're doing.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Include PHP in Category Description
Member
Usergroup: Customer
Joined: May 08, 2008
Total Topics: 5
Total Comments: 18
Hi,
I need to include PHP code in my category descriptions. How do I go about doing this?
Thanks in advance!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
PHP can only be used in templates. If this really needs to be in the description instead of the template, you can turn your PHP code into a function in a modification file and then use its template variable in the category description... or maybe what you're really looking for is a pseudomethod, I can't tell without knowing what you're doing.