Op dinsdag 13 december 2005 20:36, schreef Darrel O'Pry:
$node->html[modulename] instead of node->body so I can have better control of where their output is placed and whether it is displayed or not in different contexts...
I prefer $node->modulename[structured]->data That way we can keep the data untill teh very end of the line. One reason for drupals complex theme thing is that we build slices of HTML *all over the place*. In my ideal world there would be absolutely no HTML anywhere. untill it reaches theme_page. untill taht point we can add/remove/alter a $page Object. Then theme_page iterates down and builds up teh page by using sub-theme functions like theme_node, theme_block and such things. This is how Ruby on rails does it, and yes, a lot of ye think ror has its flaws, it most certainly has (aka nothing is perfect) but its output system is far, far, far more flexible/advanced etc then drupals spaghetti-shaped MVC -- PGP ber@webschuur.com http://www.webschuur.com/sites/webschuur.com/files/ber_webschuur.asc PGP berkessels@gmx.net http://www.webschuur.com/sites/webschuur.com/files/ber_gmx.asc