Now, updating for Tiki 9! Get Smart...
Now accepting new user registrations! Become a contributor.
| More
Join Print Print multiple pages Convert to PDF

Creating User Modules


Tiki user modules are modules created from within the Tiki Admin interface.
NoteNote:
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.


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.
    TipTip:
    By default, a new Tiki installation contains a single user module — the Application Menu.
  2. Use the Create New User Module area to create your user module.
    NoteNote:
    To use Tiki wiki syntax in your module (including embedding modules and plugins) you must enable the Must be wiki parsed option.
    User module
  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") /}

    NoteNote:
    Notice we're using the JS Plugin to embed the script.
  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.

    TipTip:
    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.
  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.
TipTip:
You could also use the HTML Plugin include scripts and embedded HTML tags in your module.




Contributors to this page: Rick Sapir .
Page last modified on Monday, January 17, 2011 09:42:43am EST by Rick Sapir.
The content on this page is licensed under the terms of the Copyright Information.

Buy the Books

Tiki Essentials & Tiki for Smarties -- Buy the Books.
Available from Amazon, LuLu, and more as paperback or ebook...

What do you think?

What do you think of this project?



Anti-Bot verification code image Try another code



View Results
(Votes: 20)

"Very good website, super project, thanks to you Rick. "

Is Essentials helpful?

Essential Readers



Advertising



Powered by Tiki Wiki CMS Groupware
Creative Commons Copyright. Some rights reserved.
Tiki Essentials (this site) is © 2011-2012 by Rick Sapir, published by KeyContent.org, and is licensed
under a Creative Commons Attribution-Share Alike 3.0 United States License. Some rights reserved. Privacy Policy.
Permissions beyond the scope of this license may be available at http://twessentials.tikiforsmarties.com/Copyright Information.
Questions, comments, or concerns about this site or the guide? Let me know.
New to Tiki? Try Tiki for Dummies Smarties: A beginner's guide to using Tiki Wiki CMS Groupware.


Feedback Form
Feedback Analytics