[development] Node Rendering Debate

Earl Miles merlin at logrus.com
Fri Jun 22 17:11:28 UTC 2007


Derek Wright wrote:
> 
> On Jun 21, 2007, at 12:25 PM, Earl Miles wrote:
> 
>> [assuming I've set the CCK field 'myfield' to show up in the $my_field 
>> variable in the theoretical UI that will exist for this]
>>
>> <span class="my_field"><?php print $my_field;?></span>
> 
> My large objection to this approach is that it makes namespace 
> collisions inevitable.  That's the primary reason I started caring about 
> this topic in the first place.  So, what happens when 4 different 
> modules think $node->pid is theirs, and someone tries this in a theme:
> 
> <span class="pid"><?php print $pid;?></span>
> 
> ?  This seems like a recipe for much badness and confusion, perpetuating 
> the bugs we already have for developers down into the theme layer, too.  
> I agree with Adrian about the problems of relying on some UI for this, 
> since that makes it basically impossible to distribute themes.

You have clearly missed the point:

 >> [assuming I've set the CCK field 'myfield' to show up in the $my_field
 >> variable in the theoretical UI that will exist for this]

I'm the one setting the variables. Not the modules. It's designed to avoid 
namespace collisions by taking the namespace away from the modules entirely.


More information about the development mailing list