Important

Major updates are in progress. Some pages and languages may not be available.

Creating User Modules

Tiki user modules are modules created from within the Tiki Admin interface.
{NOTE()}You can also create a custom module by writing the necessary PHP file and its associated TPL template. If you create this type of custom module, please consider contributing your custom module to the Tiki code base.{NOTE}

To create a user module:

  1. From the Admin: Modules page, click the User Modules tab.
    Admin: Modules
    Creating a new user module.

    The User Modules area lists your existing user modules.
    {TIP()}By default, a new Tiki installation contains a single user module — the Application Menu.{TIP}
  2. Use the Create New User Module area to create your user module.
    {NOTE()}To use Tiki wiki syntax in your module (including embedding modules and plugins) you must enable the Must be wiki parsed option.
    User module {NOTE}
  3. In the Data field, enter the content to appear in the module. This could be text, images, a widget, or anything you want.
    For example, to add this weather widget (from weather.com):

    You would add this code:
    Weather.com script
    {JS(file="http://voap.weather.com/weather/oap/USDC0001?template=EVNTV&par=3000000007&unit=0&key=twciweatherwidget") /}

    {NOTE()}Notice we're using the JS Plugin to embed the script.{NOTE}
  4. You can add addition text in the module, as needed.
    Your user module
    Here's the weather where __I__ live.
    {JS(file="http://voap.weather.com/weather/oap/USDC0001?template=EVNTV&par=3000000007&unit=0&key=twciweatherwidget") /}
    [http://www.weather.com/|Click here] to find ''your'' local weather report.

    {TIP()}Use the Objects That Can Be Included area to easily add other Tiki content (such as polls or menus) to the module. Simply select the item to add and click Add .{TIP}
  5. Save the module.



Adding {literal} Tags

To include Smarty syntax or code in a module, you must use the {literal}. For example, you could edit the user module you created to include a personal message for users:

Your user module
{if $user}Hello {$user}!
{/if}
Here's the weather where __I__ live.
{JS(file="http://voap.weather.com/weather/oap/USDC0001?template=EVNTV&par=3000000007&unit=0&key=twciweatherwidget") /}
[http://www.weather.com/|Click here] to find ''your'' local weather report.


You will also need the {literal}to safely use any HTML tags that would otherwise be sanitized by Tiki.
{TIP()}You could also use the HTML Plugin include scripts and embedded HTML tags in your module.{TIP}

Advertising