Documentation on Smarty templates and associated Siteframe extensions for use in and with them.
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
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
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
menu (Smarty extension function)
{menu} is a custom Smarty function for the construction of menus. A menu ,
in this context, is a set of links and text for a specific function.
For example, if you are signed in, the bottom of this page has a menu
with various items such as "New Comment" and "Send Feedback." If you
are the owner of a page, there are even more options like "Edit" and
"Delete." These menus are all...
0 comment(s)
/ glen
/ Templates
/ on April 20, 2005 at 16:41
page_next / page_prev (Smarty extension functions)
These functions provide a context for the next or previous pages in
a specific folder (for a given page in that folder). For example, if a
folder contains pages A, B, C, and D, then the "next" page for B is C,
and the "previous" page for B is A. Note that this function uses the
default folder sort order; for example, if a folder is sorted in date
order (most recent first), then the pages...
0 comment(s)
/ glen
/ Templates
/ on November 6, 2005 at 20:37
page_views (Smarty template function)
This function returns a count of page views in the last N days (default N=1). For example,
<p>There have been {page_views days=7} page views in the last week.</p>
would show the number of page views in the last 7 days.
0 comment(s)
/ glen
/ Templates
/ on August 28, 2005 at 21:54
Template Sets and Directory Structure
In Siteframe Beaumont, all standard templates are stored in the directory identified by the configuration variable dir_templates ,
which is usually named "templates" and is created immediately beneath
the root directory of the website. Templates that are used by common
site functions are stored immediately in that directory and are called
"site templates." These templates are used for...
0 comment(s)
/ glen
/ Templates
/ on April 9, 2005 at 11:18
template.ini
template.ini is a template definition file that maps between
"logical names" of templates and the physical filenames that actually
hold the template content. Each directory has a template.ini file with
line in the format: <logical-template> = <physical-template> Internally,
Siteframe uses the logical-template name to refer to templates; the
template.ini file translates...
0 comment(s)
/ glen
/ Templates
/ on April 9, 2005 at 07:40
The Blue Blog Template Set
This is another template set based on a design taken from Open Source Web Design . Nothing special here; it's a clean, softly-colored design primarily intended for text applications such as blogging. This template set will be available in the next regular release of Siteframe. You can see it in action at http://broadpool.com .
1 comment(s)
/ glen
/ Templates
/ on January 6, 2006 at 07:10
The Widescreen Template Set
It's called "widescreen" because it's a liquid layout that uses the
entire screen width, rather than a fixed-width column. I'll attach some
screenshots later. Configuration To use this as your default template set, set default_site_templates="widescreen" in your siteframe.ini file. This will use the templates unmodified. Custom CSS. Widescreen
allows you to specify an optional CSS...
0 comment(s)
/ glen
/ Templates
/ on November 21, 2005 at 07:36
thumbnail (Smarty extension function)
The {thumbnail} function is at the center of Siteframe's ability to
provide dynamically-sized images on demand. It creates resampled
versions of uploaded image files with special features and caching. Syntax {thumbnail file=" string " type=" string " size= integer center= boolean rotate= integer } When invoked, the function returns the name of a file that meets the
desired...
0 comment(s)
/ glen
/ Templates
/ on April 20, 2005 at 16:42
userdate (Smarty extension function)
userdate is a Smarty extension function that formats a date or time string and adjusts it for the logged-in user's timezone. Example: {$doc_created|userdate:"%Y-%m-%d %H:%S"} This will display the document creation date adjusted for the user's timezone.
The format string uses the standard PHP strftime()
function; it is recommended that you not include a timezone...
0 comment(s)
/ glen
/ Templates
/ on April 2, 2005 at 17:34
ydate (Smarty extension function)
ydate is a Smarty extension function that formats a date or time value according to certain rules:
if the time is < 91 seconds, it shows "about a minute ago"
if the time is < 31 minutes, it shows "about X minutes ago"
if the time is < 91 minutes, it shows "about an hour ago"
if the time is < 12 hours, it shows...
0 comment(s)
/ glen
/ Templates
/ on April 2, 2005 at 17:38

