| Tuesday 28 March 2006 2:36:34 am 
                                                                
                                                                 Hi, I have a site that's just ready to go live. I turn on all cahing and it works fine, except when I use templateCompile. For some reason it fails to resolve all overrides when enabling this option, resulting in some pages not looking right. I have this in most of my full-templates: 
{include uri="design:sub_nav_menu.tpl" node_id=$node.parent_node_id url_alias=$node.url_alias view='line'}
Which fetches a template that loops through the children like this: 
{*
 Display children in a left hand meny
 Input:
 $node_id - The node id of the node whose children should be listed
 $url_alias - An url alias to pass to the node view gui
 $sort_by - Array with sort_by parameters
*}
{default $node_id = 0
	 $url_alias = ''
	 $sort_by = array( 'name', false() )
         $view = 'line'
}
{let children=fetch(content, list, hash(parent_node_id, $node_id,
                                   sort_by, $sort_by ))}
{if gt($children|count, 0)}
    <div class="section menu">
     <ul>
{/if}
  {foreach $children as $child sequence array(alt,) as $class}
    {node_view_gui view=$view content_node=$child alt=$class url=$url_alias}
  {/foreach}
{if gt($children|count, 0)}
     </ul>
    </div>
{/if}
{/let}
This works fine for "line"-view, but by the time I get to the page that uses "nav_line"-view it looks messed up. Am I missing something here? Without compiling it works like a charm. |