Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2008-03-24 11:15:40

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: How can I use <txp:article_url_title /> in php code

use globals or functions instead. In example: article_url_title(array())

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

Board footer

Powered by FluxBB