[support] (no subject)
Lists
listout at accidentaltechie.org
Sat Apr 8 06:20:26 UTC 2006
"Roger Thomas" wrote:
> How do I test for an article type? Whether it is page, blog or story? Code
> snippets please. TIA.
Roger, please remember to add a subject to your posts, so folks can assist
you more quickly (and file replies for later reference.)
You don't say specifically where you'd like to do this testing, but in
general, you'll retrieve that information from:
$node->type
You might conditionally test against a boolean match, as in:
($node->type == '<yourtypehere>')
--
Gary
More information about the support
mailing list