I have a custom pager that is set to display on blog node types. When I choose visibility by node type and choose the blog content type, the pager appears fine. I want to write more specific PHP visibility rules and was finding that nothing I tried was working. I simplified my code to see if it was my code or the module, without any luck. This fails to display the pager on blog nodes, so I'm unclear if this feature just doesn't work or if my syntax is incorrect:

<?php

if ($node->type == 'blog') {
return TRUE;
}

else {
return FALSE;
}

?>

I tested this on both 6.x-1.0-beta2 as well as the latest 6.x-dev. Thanks.

Comments

brunorios1’s picture

Assigned: Unassigned » brunorios1

subscribing