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

52 275 0
Thiết kế web với joomla 1.6(5).x part 19 pot

Đ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

Part II: Working with Content and Users 168 Menu item types The Joomla! menu item types provide options for creating various layouts on your pages. By choosing one type over another, you are able to show content or functionality in a variety of styles. The parameters associated with each menu item type allow you to tailor the result more closely to your needs. Although menu item types are set when you create a new item, they can also be modified after the item is created. To change the item type of an existing menu item, simply edit the menu item and choose the Change Type button at the top of the workspace. The menu item types are divided into four groups: l Internal Link l External Link l Separator and l Alias Each of the types within a specific group shares a number of common parameters, but they also frequently have unique parameters. In the following sections, I go through all the various menu item types in the default Joomla! 1.5.x system and note the parameters involved. If you have installed additional extensions, you may see even more menu item types in your system. Joomla 1.6 The extent of the changes to the menu item types in Joomla! 1.6 was unclear at the time of the writing of this text. Internal Link - Articles The Internal Link group of menu item types contains the largest number of options. This category includes the links to all internal content and functionality. The grouping is divided into eight sub- groupings: l Articles l Contacts l News Feeds l Polls l Search l User l Web Links l Wrapper The menu item types located in the group labeled Internal Link - Articles share common compo- nent parameters and system parameters, as shown in Figure 8.7. Individual item types, however, often have specific advanced parameters. Each is discussed in turn in the following text. Chapter 8: Working with the Menu System 169 FIGURE 8.7 The Internal Link - Articles menu type parameters. The Component parameters section of all the Internal Link - Articles menu types contains the fol- lowing options: l Show Unauthorised Links: Determines whether the visitor can see links to which they do not have access. If set to Yes, then all links will show, regardless of whether the user has sufficient access privileges to view them. If users click a link that they cannot access, the system shows them an error message and prompts them to log in. l Show Article Title: Hide or show the article title. l Title Linkable: Whether the article title in the teaser view is hyperlinked to the full article text. l Show Intro Text: Whether to show the article in teaser view. l Section Name: Hide or show the section name. l Section Title Linkable: Whether the section title will be hyperlinked to the section page. l Category Title: Hide or show the category title. l Category Title Linkable: Whether the category title will be hyperlinked to the category page. Part II: Working with Content and Users 170 l Author Name: Hide or show the author’s name on the article. l Created date and time: Hide or show the date and time the article was created. l Modified Date and Time: Hide or show the date and time the article was last modified. l Show Navigation: Whether to hide or show the page navigation controls. l Read more… Link: Hide or show the Read more… link on the article teaser. l Article Rating/Voting: Whether to enable the article rating functionality. l Icons: This control governs how the PDF, print, and e-mail options, discussed later, are displayed on the screen. Setting this to hide causes the links to be displayed as text; set- ting it to show forces the links to use icons. Note that this control has no effect if the PDF, print, and e-mail options are disabled. l PDF Icon: Hide or show the PDF link. l Print Icon: Hide or show the Print link. l E-mail Icon: Hide or show the E-mail link. l Hits: Hide or show the number of views the article has reviewed. l For each feed item show: This control relates to the display of the output of feeds. If set to Intro Text, only the intro text will be shown; the visitor has to click to read the rest of the entry. If set to Full text, the entire text of the feed item is displayed. In addition to the parameters contained in the menu item types, the articles in your Joomla! system are also subject to two other groups of parameters: Article Manager parameters, and the Advanced param- eters section of the Article Editing dialogue. It is important to understand the hierarchical relationship between these three sets of parameters to avoid undesired results caused by entering contradictory set- tings. The system works as follows: First, the system examines the settings in the Advanced parameters of the Article Editing dialogue. If a specific Yes/No, Show/Hide value is set, then those values are applied to the article and no further checking is done. However, if the values are set to Use Global, then the sys- tem looks next to the Component parameters set in the menu item type. If a specific Yes/No, Show/Hide value is set, then those values are applied to the article and no further checking is done. However, if the values are set to Use Global, then the system looks finally to the Article Manager parameters. The hierarchy of article and item parameters Chapter 8: Working with the Menu System 171 The System parameters section of all the Internal Link - Articles menu types contains the following options: l Page Title: Enter the text you want to show in the title bar of the browser when the visitor views the page. If no value is entered, the system will use the menu title. This option can also be used to control the display of the Page Title on the article itself, where the control, Show Page Title, is enabled. l Show Page Title: Enable this control to show the Page Title specified in the field above on the article. If the option is set to Yes but no text is entered in the Page Title parameter, then the Menu Title is used. Note also that this control has no effect on the Article, Section Table, and Category Table menu item types. l Page Class Suffix: Enter a text value here to create a suffix that will be added to all CSS classes related to the page. This allows you to add specific styling tailored to specific pages. l Menu Image: Select an image from the combo box to be associated with the menu item. Note that you can add your own images by uploading them to the directory images/ stories . l SSL Enabled: Elect whether this page should use SSL and the Secure Site URL. Archived Article List The Archived Article List format is used to create a page containing a list of the site’s archived con- tent items, as shown in Figure 8.8. The items are typically searched by date. You can control the display order of the items using the options in the Basic parameters section. Cross-Reference A discussion of archiving articles can be found in Chapter 5. The Basic parameters section contains only the Order option. This option sets the display order of the items on the page. The default order is most recent first. Note also that the option named Order follows the display order set in the order column of the Article Manager. Part II: Working with Content and Users 172 FIGURE 8.8 Example of the Archived Article List menu type in action. Article Layout The Article Layout menu item type is used to display a single article on a page, as shown in Figure 8.9. This is probably the most commonly used menu item type, as it is the basis for the display of the majority of a typical site’s content items. Chapter 8: Working with the Menu System 173 FIGURE 8.9 Example of the Article Layout menu item type in action. The Basic parameters section contains only the Select Article option. Click the Select button to dis- play a list of the site’s content items. Click the name of the content item you want to display. This field is required. Article Submission Layout The Article Submissions Layout is a specialty menu item type used to create a page specifically for the purpose of allowing front-end visitors to add content, as shown in Figure 8.10. This menu item type is only relevant to users assigned to the User Group Author or higher. Part II: Working with Content and Users 174 FIGURE 8.10 Example of the Article Submission Layout menu type in action. Chapter 8: Working with the Menu System 175 There are no basic parameters for this menu item type. Tip If your site does not employ the front-end content creation process, there is no reason to create items of this type. Category Blog Layout This menu item type displays all of the articles in a category, laid out in a blog-type format. In Joomla!, a blog-type layout divides the content area of the page into three sections. At the top are one or more lead articles. Lead articles span the width of the page. Below the lead articles are the intro articles, which are typically displayed in multiple columns. At the bottom of the content area of the page is a links area which shows a list of links to additional articles. The number of arti- cles, the number of columns, and the number of links can all be controlled through the basic parameters. Figure 8.11 shows a Category Blog Layout in the default configuration, that is, with one leading article, two intro articles displayed in two columns, and with a list of four links at the bottom. This menu item type includes both Basic and Advanced parameters options. The Basic parameters are the following: l Category: Select the name of the category you want to display from the combo box. This is field required. l Description: If set to Yes, the system displays the category description. The descriptions are set in the Category Edit dialogues. l Description Image: If set to Yes, the system displays the category image. The image is set in the Category Edit dialogues. l # Leading: Enter an integer value to set the number of leading articles displayed. l # Intro: Enter an integer value to set the number of intro articles displayed. l Columns: Enter an integer for the number of columns to be used for the intro articles. Note the only valid values here are 1, 2, and 3. If set to 1, then the intro articles will span the width of the page, the same as the leading articles. l # Links: Enter an integer for the number of links to be used in the Links section of the layout. Part II: Working with Content and Users 176 FIGURE 8.11 Example of the Category Blog Layout menu type in action. Chapter 8: Working with the Menu System 177 FIGURE 8.11 (continued) [...]... page 193 Part II: Working with Content and Users FIGURE 8.21 Example of the Category Layout menu type in action Single Feed Layout This Menu item type displays the contents of a single news feed on a page, as shown in Figure 8.22 One parameter is unique to this menu item type: Feed This allows you to select from the combo box the name of the news feed you want to display This field is required 194 Chapter... are the subject of Chapter 15 195 Part II: Working with Content and Users FIGURE 8.23 Example of the Poll Layout menu item type in action This menu item type includes both Basic and System parameters, as shown in Figure 8.24 The Basic parameters section contains only one option: Poll Select from the combo box the name of the poll you want to display This field is required 196 Chapter 8: Working with... form, by category, or individually, as shown in Figure 8 .19 The types share common Component and System Parameters; individual types, however, have specific Basic parameters 190 Chapter 8: Working with the Menu System FIGURE 8 .19 The News Feeds menu type parameters The Component parameters section contains the following options: l Table Headings: Show or hide the table column headings on the display... Show or hide the intro text for an item l Word Count: Type an integer value to limit the display to a certain number of words per news feed item Leave this field blank to display the entire feed item 191 Part II: Working with Content and Users The System parameters section contains the following options: l Page Title: Enter the text you want to show in the title bar of the browser when the visitor views... with one leading article, two intro articles displayed in two columns, and a list of four links at the bottom 181 Part II: Working with Content and Users FIGURE 8.14 Example of the Section Blog Layout menu type in action 182 Chapter 8: Working with the Menu System FIGURE 8.14 (continued) 183 Part II: Working with Content and Users This menu item type includes both Basic and Advanced parameters options... or hide the category name in the breadcrumb trail 189 Part II: Working with Content and Users FIGURE 8.18 Example of the Standard Contact Layout menu type in action Internal Link - News Feeds The Internal Link - News Feeds group of menu item types enables you to display news feeds in list form, by category, or individually, as shown in Figure 8 .19 The types share common Component and System Parameters;... item types l Page Class Suffix: Enter a text value here to create a suffix that will be added to all CSS classes related to the page This allows you to add specific styling tailored to specific pages 197 Part II: Working with Content and Users l Menu Image: Select an image from the combo box and it will be associated with the menu item Note that you can add your own images by uploading them to the directory... Set this parameter to Yes if you want the system to gather statistics on the usage of the search form l Show Created Date: Whether search results will show the date and time the articles were created 199 Part II: Working with Content and Users The System parameters section contains the following options: l Page Title: Enter the text you want to show in the title bar of the browser when the visitor views... pages l Show a Feed Link: This allows users to subscribe to an RSS feed for the contents of this page Category List Layout The Category List Layout menu item type displays a list of all the articles in a particular category, as shown in Figure 8.12 This menu item type includes both Basic and Advanced parameters options l Category: Select from the combo box the name of the category you want to display This... articles that are currently assigned and published to the Front Page This is the menu type that is used by the default system for the front page of the site The articles are laid out in a blog-type format In Joomla! , a blog-type layout divides the content area of the page into three sections At the top are one or more lead articles Lead articles span the width of the page Below the lead articles are the intro . layout. Part II: Working with Content and Users 17 6 FIGURE 8 .11 Example of the Category Blog Layout menu type in action. Chapter 8: Working with the Menu System 17 7 FIGURE 8 .11 (continued) Part. the default Joomla! 1. 5 .x system and note the parameters involved. If you have installed additional extensions, you may see even more menu item types in your system. Joomla 1. 6 The extent of the. bottom. Part II: Working with Content and Users 18 2 FIGURE 8 .14 Example of the Section Blog Layout menu type in action. Chapter 8: Working with the Menu System 18 3 FIGURE 8 .14 (continued) Part

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

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan