New Smarty Block - Folder Tree

This is a custom Smarty Block that is hacked together from the sitemap.php file and a few others. The end result is a folder tree view like you get from the sitemap.php script except you can invoke it from any of your templates like this:

{folder_tree}
...format here....
{/folder_tree}

I designed this for an easy way to create vertical navigation menus based on your folder structure. Please note there is currently no support for parameters but I would like to add sort types later. The default sort is by folder_id instead of name but you can change that to folder_name pretty easily.

Just drop this file in yoursitedirectory/smarty

This should be a plugin but I have not gotten around to figuring out the syntax yet. Perhaps Glen can shed some light on that technique.

Enjoy,
Coby

File Attachments

Download Info Size (bytes) Downloaded Created
block.folder_tree.php More Info 1,353 610 February 26, 2007 14:06