SidebarWhat do you think?
What do you think of this project?
"Your book is a big help because it shows me what can be done." Is Smarties helpful? Smart TweetsSmart ReadersAdvertising |
Creating Custom ModulesWhen you added a poll to a module and included a menu in a module, you created a custom (albeit simple) module (i.e., a user module) instead of selecting a pre-defined module. In addition to adding Tiki objects (such as polls and menus) to modules, you can use HTML or Smarty syntax as well.
Using HTMLYou can add custom HTML to a module. This allows you to add widgets, application, and scripts from other sources. For example, you can add an automatic weather forecast (from www.weatherreports.com<script type="text/javascript" language="javascript1.2" src="http://weatherreports.com/jscript.html?width=125&height=125&theme=lred_no_search_box&location=Washington%2C%20DC&units=f"></script> <div><a href="http://www.weatherreports.com/"><small>Free Weather Reports</small</a></div>
Use the User Modules tab on the Admin: Modules page to create a new, custom module.
We'll convert this HTML to wiki syntax by using the JavaScript plugin.
The module includes the weather report for Washington, DC.
Including SmartyYou can include Smarty syntax in your modules to do all sorts of neat things, such as displaying Tiki variables. For example, using this code:Hello {if $user}{$user}{else}anonymous visitor{/if}!will create a module that:
Contributors to this page: Rick Sapir
,
Rogelio F. Galliano
and
System Administrator
.
|



















