Table of Contents
Smarty Tags
- {areatree} - returns an HTML subtree navigation for the current area of a webpage
- {bigace_copyright} - returns a formatted and linked BIGACE copyright footer
- {bigace_version} - displays or returns the BIGACE version
- {breadcrumb} - returns an HTML Breadcrumb navigation
- {captcha} - create and validate a Captcha image
- {configuration} - fetch or cache a Configuration
- {content} - fetch content for a menu
- {directory} - returns a directory of the CMS (e.g. to display images)
- {import} - imports the given class
- {is_leaf} - returns whether the item has childs or not (leaf)
- {item_category} - returns the linked Categories of an Item
- {last_created_items} - last created Items (website or submenu)
- {last_edited_items} - last edited Items (website or submenu)
- {link_admin} - the URL to the “Administration Panel”
- {link_auth} - the URL to perform a “login” authentication
- {link_editor} - the URL to open an content Editor
- {link_item_languages} - creates links to the available item language version
- {link_locale} - the URL to switch the Session language
- {link_login} - the URL to the “Login” formular
- {link_logout} - the URL to perform a logout
- {link_register} - the URL to the “Register Account” formular
- {link_search} - the URL to the “Search” application
- {link} - creates a link to an Item
- {load_item_childs} - fetches an array of Menu Items from a specified parent
- {load_item} - load an Item and assign it to a Smarty variable
- {load_translation} - load a translation file
- {metatags} - echo's html metatags for a page
- {modul_check} - checks if a special modul is installed
- {modul} - load a menus configured Module
- {most_visited} - returns an array of the most visited items
- {navigation} - renders the HTML of a Navigation
{navilink} - creates the URL to a Menu- deprecated: use {link} instead- {permission_editcontent} - checks if a user is allowed to edit a pages content
- {portlet} - fetch one defined portlet
- {portlets} - fetch portlets for an Item
- {redirect} - sends a redirect header
- {sitename} - the configured sitename
- {skype_online} - shows the status of a skype user as image
- {stylesheet} - fetch a Smarty Stylesheet or its URL
- {switch_language} - renders HTML for diplaying a Language switcher with Flag images
- {template} - assign a Smarty Template or returns its full URL
- {thumbnail} - create a URL to display a dynamically created Image thumbnail
- {translate} - fetches a String from the Translation
- {user} - fetches a User or the Username
Only for administration templates:
The following TAGs are only meant for developer who create own admin templates.
Extension TAGs
The following TAGs are available through Extensions, which are linked on their description page.
- {tip_of_the_day} - assign or display a random tip
- {google_analytics} - show Google Analytics Javascript code
News Extension
- {news} - load a list of (categorized) News entries
- {news_item} - load one special News Item
- {news_category} - fetch all Categories for one News
- {news_categories} - fetch all News Categories
Comments Extension
- {comment_counter} - counts the number of comments for an item
- {comment_spam_counter} - returns the number of “eaten” spam
- {comments_latest} - fetch (latest) comments
- {comments} - displays the Comment formular
- {gravatar} - constructs the URL for a gravatar image (officially named at Gravatar.com)
FAQ Extension
- {faq_entries} - fetch all entries for one section
- {faq_latest} - fetch the latest enrties throughout all sections
- {faq_section} - fetch one section by its id
- {faq_sections} - returns an array of all available sections
Smileys Extension
- {smileys} - a modifier to parse smileys to icons in any string
Smarty Modifier
- {filesize} - display a formatted filesize (from a bytes value)
- {htmlspecialchars} - calls htmlspecialchars on the value
- {text_input} - change ” (double quote) ' (single quote) to html entities and call stripslashes
Smarty Help
Read more about using Smarty int the official Docu at:
Writing own Smarty TAGs
Smarty plugin directory: /addon/smarty/plugins/
- Lets assume you want to create the function/TAG {hello_world}
- Create a file called /addon/smarty/plugins/function.hello_world.php
- Place a function inside:
function smarty_function_hello_world($params, &$smarty) { echo "Hello World, says " . $params['name'] . "!"; }
- Call {hello_world name=“Bob”} inside your template
The output would be:
Hello World, says Bob!
