Author Topic

Craig Hirsch

Friday 08 April 2005 9:31:52 am

Comment42770

I will also add this to the discussion - right now, using $node.object is very dangerous when referencing images, because of the PHP bug noted here (whose cause I still don't really comprehend):

http://www.ez.no/community/bugs/call_to_undefined_function_storedata

Working around this bug prompted my question originally -- after two solid long days of working I have finally eliminated all reference to $node.object.data_map.(image datatype attribute)[original] in my code, replacing it with $node.data_map.(...).

So.. it would seem that for all template development the safest bet by far is to use $node.data_map rather than $node.object.data_map, given the bug and Hans' TemplateOptimization comments.

Does everyone agree?

--
chirsch{AT}gmail{d.t}com