History: 模块
Source of version: 4 (current)
Copy to clipboard
{syntax type="markdown" editor="wysiwyg"} # {{page}} {DIV(class="lead")}在Tiki中, a **module** is simply a box of content (which may or may not have "chrome" such as borders and title backgrounds). All side-column information of this site is presented through modules. The {TranslationOf(orig_page="Modules Admin" translation_lang="cn" translation_page="") /} page is used to add modules to and manage modules in the module zones of a Tiki site.{DIV} Here's a screenshot: {img fileId="442" thumb="y" rel="box[g]" width="200" alt="Module" desc="Default Tiki page with the Menu module in the left column." stylebox="border:1px solid darkgray; float:left; margin-right:70px;margin-left:50px" imalign="center" button="y"} {DIV(float="left" width="250px")}{BOX()}Some common uses for modules are to: - Display {TranslationOf(orig_page="menus" translation_lang="cn" translation_page="") /} - Add special {TranslationOf(orig_page="features" translation_lang="cn" translation_page="") /} - Display custom information to users - List most recent or most frequent actions or items{BOX}{DIV} {DIV(clear=both)}{DIV} After adding modules, you can re-order them, assign {TranslationOf(orig_page="permissions" translation_lang="cn" translation_page="") /} to them (so they appear only for specific user {TranslationOf(orig_page="groups" translation_lang="cn" translation_page="") /} ), or even allow them to be customized by specific users. {REMARKSBOX(type=tip, title=Note)} *尽管它们被称为“模块”,但几乎所有内容都包含在默认的Tiki安装中。没有额外的“附件”需要安装才能使用这些模块。*{REMARKSBOX} ### 配置和显示模块 For site-wide module settings, click the **General** icon {icon name="admin_module" size="2" title="Image may vary depending on icon set in use."} on the {TranslationOf(orig_page="Admin Panels" translation_lang="cn" translation_page="") /} or Access **http://example.org/tiki-admin.php?page=general**. These settings will apply to all modules on the site and are explained in more detail at {TranslationOf(orig_page="Module Admin" translation_lang="cn" translation_page="") /}. 有两种方法可以配置和显示单个模块: 1. Using the Admin Modules Panel - Located at **Admin->Modules** or **tiki_admin_modules.php** - Allows you to: - Set module parameters - Create custom modules - Place modules in the left or right column and, since {TranslationOf(orig_page="Tiki7" translation_lang="cn" translation_page="") /}, other areas like the page header and footer - Documentation at {TranslationOf(orig_page="Module Admin" translation_lang="cn" translation_page="") /} 2. Using {TranslationOf(orig_page="PluginModule" translation_lang="cn" translation_page="") /} - Allows you to: - Display a module in a page or within other features (like blogs, articles, etc.) besides the left or right columns - Also place module content inside of a user module - Set module parameters - See {TranslationOf(orig_page="Index of Modules" translation_lang="cn" translation_page="") /} ## Modules vs. Plugins The distinction between **modules** and **{TranslationOf(orig_page="wiki plugin" translation_lang="cn" translation_page="") /}** is a little blurry. Technically speaking, modules are the *containers* and plugins are the *content.* However, the predefined modules included with the default Tiki installation contain plugins/content, but they are commonly called **modules**, too. ## Where to Go From Here - {TranslationOf(orig_page="Module Admin" translation_lang="cn" translation_page="") /}--Introduction to the module admin pages for site-wide and individual module settings - {TranslationOf(orig_page="Assigning Modules" translation_lang="cn" translation_page="") /}--How to select a module to configure it - {TranslationOf(orig_page="Module Settings Interface" translation_lang="cn" translation_page="") /}--Interface for configuring individual module settings - {TranslationOf(orig_page="Module Settings Parameters" translation_lang="cn" translation_page="") /}--Explanation of standard parameter settings for modules - {TranslationOf(orig_page="Creating Custom Modules" translation_lang="cn" translation_page="") /}--How to create custom modules - {TranslationOf(orig_page="Index of Modules" translation_lang="cn" translation_page="") /}--Links to the documentation of individual modules {DIV(class=titlebar)}相关页面{DIV} - {TranslationOf(orig_page="User Modules" translation_lang="cn" translation_page="") /}--how (if the feature is active) users can choose and place their modules - {TranslationOf(orig_page="Creating Custom Modules" translation_lang="cn" translation_page="") /}--how to create simple and advanced custom modules includin small tutorial - {TranslationOf(orig_page="Mods Type Modules" translation_lang="cn" translation_page="") /}--links to modules that are installed as components {DIV(class=titlebar)}别号{DIV} - ... ---