| Monday 02 February 2004 8:13:18 am 
                                                                
                                                                 
hi alli need to display my hierarchy as follows
 
folder--subfolder1
 ---file11.pdf
 ---file12.pdf
 --subfolder2
 ---file21.pdf
 
for folder and subfolder i overrided the folder.tpl file, and it works perfectlythis is the myfolder.tpl code:
 <form method="post" action={"content/action"|ezurl}> 
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" /><input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
 <input type="hidden" name="ViewMode" value="full" />
 
{section show=$node.object.can_edit}<div class="editbutton">
 <input class="button" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/node/view')}" />
 </div>
 {/section}
 <h1>{$node.name}</h1> 
<div class="object_content">{attribute_view_gui attribute=$node.object.data_map.description}
 </div>
 
{let page_limit=20children=fetch('content','list',hash( parent_node_id, $node.node_id,
 sort_by ,$node.sort_array,
 limit, $page_limit,
 offset, $view_parameters.offset))}
 {section name=Child loop=$children } 
<div class="ricorsivachild">{*<a href={concat("/content/view/full/", $Child:item.node_id,"/")|ezurl}>*}{$Child:item.name|wash}{*</a>*}<br>
 {let subfolder_list=fetch('content','list',hash(parent_node_id,$Child:item.node_id))} 
	{section name=Subfolder loop=$Child:subfolder_list}<a href={concat("/content/view/full/",$Child:Subfolder:item.node_id,"/")|ezurl}>
 {$Child:Subfolder:item.name|wash}</a><br>
 {/section}
 {/let}
 </div>
 {/section}
 {/let}
 {/default}
 </form>
 in such a way every folder displays its content and the link to it 
the problem is that i'd like to avoid to display the link to the ezfile contained into the subfolder, but directly to the pdf, in order to download it without accessing another page (the ezfile page.)i'd like to download the file directly from the folder
 
any hint? how should i edit the code above in order to get the result i want?thanx a lot
 alessandro
 |