Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
In a Plug-in Pull the current ID of the article that is displaying?
I need to modify a plug-in and I want to query against the current article ID. Is there an easy was to get that? Should i use safe_rows()?
Thanks.
Offline
Re: In a Plug-in Pull the current ID of the article that is displaying?
Put this in your plugin cache dir:
<code>
<?php
function vdh_articleid($atts) {
global $thisarticle;
return $thisarticle[‘thisid’];
}
?>
</code>
Then you can use this tag to show the article id:
<txp:vdh_articleid />
Offline
Re: In a Plug-in Pull the current ID of the article that is displaying?
How would i use this inside the actual plug-in PHP to return the article ID value?
UPDATE
Nevermind.. i figured it out… :)
Last edited by cap_nemo (2006-02-11 19:07:59)
Offline