there are many level folders:
first level: node 1 <- parent
second level: node 2,node 3,node4.... <- son third level: node10,node11,node12 .... <- grandson son
i want override these folders' template , but not override once for evrey node using node_id. how to use less template file?
If I understand you correct you would like to have one template for folders at root-level (depth=1) and another template for the folders that are childs of this folder (depth=2) and so on..?
If I should do this I would use the $node.depth variable in the folder_full template. Something like this
{section show=$node.depth|eq(1)}
{*Template for first level ... *}
{/section}
{section show=$node.depth|eq(2)}
{*Template for second level ... *}
{/section}
{section show=$node.depth|eq(3)}
{*Template for third level ... *}
{/section}
...
You can also assign a section in the admin interface to this particular tree of folders and override based on folder class AND section. That way you only need one dedicated template and folders in other parts of your site can use the standard folder template (or another override if you want)