Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-03-24 11:04:43
- freshface
- Member
- Registered: 2006-08-23
- Posts: 49
How can I use <txp:article_url_title /> in php code
How can I achieve this?
<txp:php>
$tempstring = substr($_SERVER[‘REQUEST_URI’],1);
$pos = strpos($tempstring,”/”);
if (substr($tempstring,$pos+1) ==<txp:article_url_title />)
{
echo “true”;
}
</txp:php>
Offline
Offline
#3 2008-03-24 11:17:58
- freshface
- Member
- Registered: 2006-08-23
- Posts: 49
Re: How can I use <txp:article_url_title /> in php code
Thx, works!
Offline