| Tuesday 16 November 2010 3:27:42 am 
                                                                
                                                                 Am I asking too many questions in this forum?! Please, don't blame me for this!! ...Hi! It's me again! Well, I have been searching for a way to set a variable inside a template included in the frontpage.tpl and then call that variabe from the frontpage.tpl itself, but I cannot make it work... - inside included_template.tpl declared $item_title variable... {def $items=fetch('content', 'tree', hash('parent_node_id', 2,...,'limit', 1, 'attribute_filter', array(array('item_attribute/selected_item', '=', 1 ))}
{foreach $sitems as $item} 
    {def $item_title = $item.data_map.titolo.content}
{/foreach}by simply recalling the variable from frontpage.tpl it does nothing.. - frontpage.tpl <div> 
   {include uri='design:content/included_template.tpl'}
 </div>
 <p>{$item_title}</p>... Second attempt: - set the global scope to a new variable where I pass the value of the "local" one inside the included template.. ...
{def $sel_item_title=""}
{set $sel_item_title=$item_title scope='global'}- and recalled that global variable from frontpage.tpl <p>{$#sel_item_title}</p>...yet nothing... Any hint would be really appreciated! loredanaebook.it
                                                                 |