Tag: folder
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....
0 comment(s)
/ cglusky
/ cglusky's dev notes
/ on February 26, 2007 at 14:05
folder_path (Smarty extension block)
The {folder_path} block is used to construct a "breadcrumb" trail.
It creates a list of folder objects, one for the current folder on up
to the top-level folder. Example: {folder_path folder=$folder_id}
<a href="{$folder.url}">{$folder.title}</a>
{/folder_path} Since this is a block function, you can use this in a Smarty template to format or modify as you see fit.
0 comment(s)
/ glen
/ Templates
/ on May 27, 2005 at 13:12
DEPRECATED: all_folders (Smarty extension block)
The {all_folders} block has been dropped
and has been replaced with the generic {all} block. To use it, change
{all_folders ...} to {all class="Folder" ...} and everything should
work just the same. The {all_folders} ... {/all_folders} block iterates through all the
folders and produces a template context for each folder. If the
parent=N parameter is provided, then only folders which are...
0 comment(s)
/ glen
/ Templates
/ on May 26, 2005 at 22:28
About Pages, Folders, and Files
NOTE: RECENT REVISIONS TO SITEFRAME HAVE RENDERED THIS DISCUSSION OBSOLETE. STAY TUNED FOR FURTHER UPDATES.
The three most common types of objects used on a Siteframe website are Pages, Folders, and Files. This page describes what each of these objects are, how they are used, and what some of the restrictions are.
A Page is just what you expect: a single page on the website. Each page...
0 comment(s)
/ glen
/ User Help
/ on April 22, 2005 at 23:07
calendar (Smarty extension function)
The calendar function creates a small table containing a calendar of
the specified month, with links to archive pages for the specific days
in the month that contain pages. There are several optional parameters:
year - if not specified, the current year is used.
month - if not specified, the current month is used.
folder - if not specified, the calendar contains
links...
0 comment(s)
/ glen
/ Templates
/ on April 6, 2005 at 07:55
