[drupal-devel] [feature] Flat out $node in phptemplate_node vars
Morbus Iff
drupal-devel at drupal.org
Thu Jun 16 18:08:37 UTC 2005
Issue status update for http://drupal.org/node/24862
Project: Drupal
Version: cvs
Component: theme system
Category: feature requests
Priority: normal
Assigned to: chx
Reported by: chx
Updated by: Morbus Iff
Status: patch
+1 to the flat, -1 to removing $node. I use various functions within my
templates that require a $node object to be passed to them.
Morbus Iff
Previous comments:
------------------------------------------------------------------------
June 12, 2005 - 13:16 : chx
Attachment: http://drupal.org/files/issues/nodevarsflat.patch (907 bytes)
I'd like to write $whatever in node.tpl.php instead of $node->whatever .
Hence the patch.
------------------------------------------------------------------------
June 12, 2005 - 13:23 : adrian
i am gonna +1 this, as it simplifies the available variables.
------------------------------------------------------------------------
June 15, 2005 - 10:17 : Bèr Kessels
I Add my +1 to the 'heap' too. But a slight additional feature:
Maybe we should then omit teh $node completely. It makes not much sense
IMO to use the overheard of parsing along a rather often-used, and big
varible, when its availabe in another form already
Maybe you should do some checking for already existing variables. One
nevver really knows w
More information about the drupal-devel
mailing list