Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Get Textile version with PHP
Here’s an edge case: can I get and display the Textile version used in my Textpattern install with some PHP?
Basically, on the revised Textile website I’m close to launching, I want to show what version of Textile it is running on.
Cheers!
Offline
Re: Get Textile version with PHP
Maybe the getVersion function in Parser.php?
Using the example shown there, then maybe:
<txp:php>
$parser = new \Netcarver\Textile\Parser();
echo $parser->getVersion();
</txp:php>
Looking forward to your relaunch!
TXP Builders – finely-crafted code, design and txp
Offline
Re: Get Textile version with PHP
Thanks, I’ll give that a try tomorrow.
Offline
Re: Get Textile version with PHP
@jakob that worked perfectly, thanks!
Offline
Pages: 1