| Tuesday 12 February 2008 12:10:25 pm 
                                                                 just for future readers: I did have something wrong here. Exponential doesnt 'just expect' to find a line view for a article in /design/mydesign/templates/node/view/line/article.tpl If you explicitly request a  {node_view_gui view="line"}, Exponential will look for a template somewhere called node/view/line.tpl. amongst others, it will look in /design/mydesign/templates/node/view/line.tpl if there happens to be an entry in override.ini for node/view/line.tpl, for class 'article', it will ofcourse follow whatever that entry says. beware, the base design already gives such overrides. To limit your override.ini, you can ofcourse put a template at  /design/mydesign/templates/node/view/line.tpl  and add a switch in there that does something special for class "article". but such a switch is similar to what appears in override.ini after it is compiled (however, it won't be parsed at each request - so i think its more efficient). If you (like me) are then tempted to write line templates that look like 
{switch $class}
  {case $cx}{include uri="$ux"}{/case}
  {case $cy}{include uri="$uy"}{/case}
{/switch}
bear in mind, that includes are again less efficient.. *-pike ---------------The class eZContentObjectTreeNode does.
 |