1. Trang chủ
  2. » Công Nghệ Thông Tin

Thiết kế web với joomla 1.6(5).x part 45 pptx

11 54 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 11
Dung lượng 2,09 MB

Nội dung

Part III: Working with Components, Modules, and Plugins Click the New icon on the toolbar at the top of the Module Manager The New Module dialogue opens Refer to Figure 17.2 Select the option Sections and then click the Next button The Sections Module dialogue loads in your browser In the Title field, type a name for the module This field is required Set the Enabled option to Yes Set the position control to assign the module to a position on the page Set the Menu Assignment to specify the pages upon which the module will appear Select any additional options or parameters you want; all other fields are optional 10 Click the Save icon on the toolbar at the top right to save your new module The system creates the module, closes the dialogue, and returns you to the Module Manager Tip Sections, as the term is used by this module, refers to only content sections, not to any other kind of section that may exist in your system Note as well that your content sections are subject to the access level control settings you gave them If you have restricted access to any sections, links in the Sections module may not be visible to all users If you are having problems with the display of this module, check both the access level settings for the sections and the Section parameter named Show Unauthorized Links Statistics The Statistics module displays information about your site and hosting environment in a module position The module is configurable and can be set to display basic information about your server, your site visitor traffic and information on the contents of your site, including the number of articles and web links The default system with the sample data includes a Statistics module but it is neither enabled nor assigned to any pages The module is named simply Statistics and is shown in Figure 17.36 Note The system name for this module type is mod_stats The Parameters section is divided into two sections: Module parameters and Advanced parameters, as shown in Figure 17.37 The Module parameters section contains five controls For example to display on your site, at least one of the first three controls must be set to Yes l 408 Server Info: Set this to Yes to display basic information about your server, including the OS, the Time, whether Caching or Gzip are enabled, and the version number of your PHP and MySQL installations The default setting for this control is No Chapter 17: Working with the Site Modules l Site Info: Set this to Yes to display basic information about your site and its contents, including the number of members, Content items, and web links The default setting is No l Hit Counter: Set this to Yes to display how many views your content items have received The default setting is No l Increase Counter: Enter an integer value here to increase the number of hits shown on the Hits counter l Module Class Suffix: This field allows you to specify a suffix that will be automatically appended to all CSS styles that affect this module The use of a specified suffix makes it possible for you to style this module individually The Advanced parameters section contains only one option: Caching This control allows you to exempt a specific Module from the site’s caching, as set in the Global Configuration Select the option No Caching to prevent the contents of this module from being cached The default setting is Use Global FIGURE 17.36 The front-end output of the Statistics Module Statistics module 409 Part III: Working with Components, Modules, and Plugins FIGURE 17.37 The Statistics module parameters To add a Statistics module to your site, follow these steps: Log in to the admin system of your site Access the Module Manager To so, go to the Extensions menu and select the Module Manager option The Module Manager loads in your browser Click the New icon on the toolbar at the top of the Module Manager The New Module dialogue opens Refer to Figure 17.2 Select the option Statistics and then click the Next button The Statistics Module dialogue loads in your browser In the Title field, type a name for the module This field is required Set the Enabled option to Yes Set the position control to assign the module to a position on the page Set the Menu Assignment to specify the pages upon which the module will appear 410 Chapter 17: Working with the Site Modules Select any additional options or parameters you want; all other fields are optional 10 Click the Save icon on the toolbar at the top right to save your new module The system creates the module, close the dialogue and return you to the Module Manager Tip Although the Statistics module is a convenient way to add a bit of extra content to your site— content that you don’t have to maintain — you may want to think twice before exposing information about your server configuration to the world Syndicate The Syndicate module displays an RSS feed icon that is automatically linked to the RSS feed for the page upon which it appears The module is used when you want visitors to know they can subscribe the content of a particular page There are no filters that allow you to refine this functionality; it always links to the feed for the page contents There is a Syndicate module included in the default site’s setup It is assigned to the Syndicate module position on all pages The Module is named Syndicate, as shown in Figure 17.38 FIGURE 17.38 The front-end output of the Syndicate module, shown here in the default system in the Syndicate module position of the default template Syndication module 411 Part III: Working with Components, Modules, and Plugins Note The system name for this module type is mod_syndicate The Parameters section includes only four module parameters, as shown in Figure 17.39 l Caching: The only option for this module is Never This cannot be changed l Text: Set the text label you want associated with the icon Leave it blank for none l Format: Select the format of the feed Joomla! supports both RSS 2.0 and Atom 1.0 l Module Class Suffix: This field allows you to specify a suffix that will be automatically appended to all CSS styles that affect this module The use of a specified suffix makes it possible for you to style this module individually To add a Syndicate module to your site, follow these steps: Log in to the admin system of your site Access the Module Manager To so, go to the Extensions menu and select the Module Manager option The Module Manager loads in your browser Click the New icon on the toolbar at the top of the Module Manager The New Module dialogue opens Refer to Figure 17.2 Select the option Syndicate and then click the Next button The Syndicate Module dialogue loads in your browser In the Title field, type a name for the module This field is required Set the Enabled option to Yes Set the position control to assign the module to a position on the page Set the Menu Assignment to specify the pages upon which the module will appear Select any additional options or parameters you want; all other fields are optional 10 Click the Save icon on the toolbar at the top right to save your new module The system creates the module, closes the dialogue, and returns you to the Module Manager Tip While the default system has the Syndicate module assigned to all the pages of the site, this is unlikely to be the preferred choice for most people The module provides visitors access to a feed for every page on which it appears — a feature that is unlikely to be needed for most sites The better choice is to show the module on only those pages where it is relevant To so, use the Menu Assignment option in the Syndicate module dialogue to assign the module to the desired pages 412 Chapter 17: Working with the Site Modules FIGURE 17.39 The Syndicate module parameters Who’s Online The Who’s Online module is a way of showing activity levels on your site The module displays the number of members online at any time, and can also be configured to list their names as well The default system with the sample data installed includes one Who’s Online module The module is assigned to the Right module position and configured to show only a count of users The module name is Who’s Online, as shown in Figure 17.40 Note The system name for this module type is mod_whosonline The Parameters section includes only three module parameters, as shown in Figure 17.41 l Caching: The only option for this module is Never This cannot be changed l Display: Select what you want the module to display The options are # of Guests / Members, Member Names, and Both l Module Class Suffix: This field allows you to specify a suffix that will be automatically appended to all CSS styles that affect this module The use of a specified suffix makes it possible for you to style this module individually 413 Part III: Working with Components, Modules, and Plugins FIGURE 17.40 The front-end output of the Who’s Online module, shown in the default configuration in the Right module position The module is configured to show only the number of Guests and Members Who’s Online module To add a Who’s Online module to your site, follow these steps: Log in to the admin system of your site Access the Module Manager To so, go to the Extensions menu and select the Module Manager option The Module Manager loads in your browser Click the New icon on the toolbar at the top of the Module Manager The New Module dialogue opens Refer to Figure 17.2 Select the option Who’s Online, and then click the Next button The Who’s Online module dialogue loads in your browser In the Title field, type a name for the module This field is required Set the Enabled option to Yes Set the Position control to assign the module to a position on the page Set the Menu Assignment to specify the pages upon which the module will appear 414 Chapter 17: Working with the Site Modules Select any additional options or parameters you want; all other fields are optional 10 Click the Save icon on the toolbar at the top right to save your new module The system creates the module, closes the dialogue, and returns you to the Module Manager Note The Who’s Online module dialogue says “Guests,” but it means “users who are not logged in.” When the dialogue refers to “Members,” it means “authenticated users.” FIGURE 17.41 The Who’s Online module parameters Wrapper The Wrapper module provides you with a way to display external web pages in your site A Wrapper is just another name for an iFrame, which can be configured to display an external URL, as shown in Figure 17.42 The parameters associated with this module relate to the URL content, the appearance, and the size of the iFrame There is no Wrapper module included in the default Joomla! installation 415 Part III: Working with Components, Modules, and Plugins FIGURE 17.42 The front-end output of the Wrapper module, shown here wrapping an external web site (in this example, Google), inside the Footer module position Wraper module Note The system name for this module type is mod_wrapper The Parameters section is divided into two sections: Module parameters and Advanced parameters, as shown in Figure 17.43 The Module parameters section contains the following controls: l l URL: The address of the web page you want to display inside the Wrapper l Scroll Bars: Set the control to No to hide scrollbars, to Yes to show them Setting the control to Auto means that the system will only display scrollbars when they are needed to display the entire page l 416 Module Class Suffix: This field allows you to specify a suffix that will be automatically appended to all CSS styles that affect this module The use of a specified suffix makes it possible for you to style this module individually Width: Specify the width of the iFrame in either pixels or as a percentage Chapter 17: Working with the Site Modules l Height: Specify the width of the iFrame in either pixels or as a percentage l Auto Height: Setting this control to Yes will result in the iFrame sizing itself automatically to match the web page being displayed l Auto Add: Set this to Yes to automatically append the prefix http:// to the URL Set the control to No to disable this feature l Target Name: Specify a name for the iFrame This is optional and only needed where you are using the iFrame as a target for opening a URL The Advanced parameters section contains caching options: l Caching: This control allows you to exempt a specific module from the site’s caching, as set in the Global Configuration Select the option No Caching to prevent the contents of this module from being cached The default setting is Use Global l Cache Time: The time, in minutes, you want the contents to be cached Enter an integer value here The default value is 900 minutes, meaning that after 900 minutes the system will re-create, or refresh this module Note this control is only meaningful if the caching for the module is enabled FIGURE 17.43 The Wrapper module, as it appears in the admin system 417 Part III: Working with Components, Modules, and Plugins To add a Wrapper module to your site, follow these steps: Log in to the admin system of your site Access the Module Manager To so, go to the Extensions menu and select the Module Manager option The Module Manager loads in your browser Click the New icon on the toolbar at the top of the Module Manager The New Module dialogue opens Refer to Figure 17.2 Select the option Wrapper and then click the Next button The Wrapper Module dialogue loads in your browser In the Title field, type a name for the Module This field is required Set the Enabled option to Yes Set the Position control to assign the module to a position on the page Set the Menu Assignment to specify the pages upon which the Module appears Specify the URL of the web page in the Module parameters URL field 10 Select any additional options or parameters you want; all other fields are optional 11 Click the Save icon on the toolbar at the top right to save your new module The system creates the module, closes the dialogue, and returns you to the module Manager Tip The Wrapper module is typically used in module positions located in, above, below, or inside the main content area, as the sidebar columns are typically too small for the wrapper to work effectively If you intend to use the wrapper in the side columns, be aware that the scrollbars can take up a lot of space when they are active If you have control over the web page that is being displayed, this can be accounted for If, however, the web page you want to display is not controlled by you, then the wrapper display may be more difficult to control Placing the wrapper at the top or bottom of the content area, in contrast, give you a much wider area to work with, plus the ability to expand the height without completely breaking your page layout Summary In this chapter, we have covered the use of the Site modules You learned the following: l The nature and uses of the core Site modules l 418 How to use the Site Module Manager l How to create, copy, edit, and delete Site modules ... the default Joomla! installation 415 Part III: Working with Components, Modules, and Plugins FIGURE 17.42 The front-end output of the Wrapper module, shown here wrapping an external web site (in... of space when they are active If you have control over the web page that is being displayed, this can be accounted for If, however, the web page you want to display is not controlled by you, then... it appears The module is used when you want visitors to know they can subscribe the content of a particular page There are no filters that allow you to refine this functionality; it always links

Ngày đăng: 04/07/2014, 06:20