<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Sealyu

    --- 博客已遷移至: http://www.sealyu.com/blog

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks

    In this example you will create a page view listing users on your site. Through this step-by-step process, you will become familiar with some basic steps in creating a view, and familiarize yourself with the Views User Interface.

    1. Creating a new view

      Go to add new view. Give your new view the name 'user_list', description 'A simple user listing.', tag 'users', type 'User' and click Next.

    2. About the Interface

      You have been brought to the Views User Interface. As you start, you are editing the "Default" options for the view. In the 1st column on the left you can see the drop-down menu offers 'block', for example, to select settings specific only to block views. In the remaining columns, you will be able to add or change options by clicking on links or icons. These options will then appear below this main area. Most likely, you will need to scroll to see the options appear. As you make changes, these options will appear in bold until you save your view.

    3. Creating a page display; choosing a URL and creating a menu link

      1. In the 1st column, ensure that 'Page' is selected in the drop-down menu, and click Add Display.
      2. Next we'll define the path for this page. A page must have a path, and we define it early so that Views doesn't warn us "Display Page uses path but path is undefined." Locate the Page settings in the 2nd column, and click the None link next to the Path setting. In the options editing area that appears below, set the path to 'user_list' (or something else if you prefer) and click Update.
      3. Next to Menu setting, Click the No menu link. In the options which appear below, select Normal menu entry, and set the title to 'User list' and click Update.
      4. Scroll up to Basic settings, in that same 2nd column, and click the No link next to Use pager. Below, in the options, select Full pager and click Update default display.
    4. Selecting the fields to display

      1. In 3rd column locate the Fields options. Click the + icon to add fields.
      2. Scroll down to Defaults: Add fields. In the Groups drop-down menu select 'User', then check the following fields: User: Created date, User: Delete link, User: Edit link, User: Last access, User: Name and User: Picture. Then click Add.
      3. You will be taken through the fields you added one at a time. Click Update default display to go to each next field. Leave the default options on all fields except Delete link; change that field's label to 'Operations'.
      4. Scroll back up to Fields and click the ↑↓ icon to rearrange fields. Down below, drag the Name field, by dragging its four-sided arrow, to the top. Drag the Delete link (Operations) field to the bottom, and the Edit link field just above it. Then click Update.
    5. Seeing what we've done so far

      At this point, you have done enough to create a valid view. If you scroll down, you will see a preview of your view. If it doesn't show already, click the Preview button; but generally this display updates automatically whenever you finish working in one of the mini forms.

    6. Styling the view as a table; combining related fields into columns

      1. Under Basic settings, in the 1st column, click the Unformatted link next to the Style setting. In the options below, under Page: How should this view be styled, choose Table and click Update default display.
      2. You will be taken to a Page: Style options form to edit the table settings. Locate our Edit link field in this mini form, and notice the Column drop-down. Change this drop-down to show Operations. In the Separator column next to the Operations field, type ' | ' (note the spaces around the | symbol). Check all of the Sortable checkboxes, and set Default sort to Name. When finished, click Update default display.
    7. Filtering the user list to exclude unwanted entries

      1. Click the + icon next to Filters.
      2. In the Groups drop-down menu select 'User', then check the User: Name filter, and click Add.
      3. Select Is not one of and enter 'Anonymous' in the Usernames box. Click Update default display.
    8. Adding an argument to list users by role dynamically

      1. Scroll up to Arguments, and click its + icon.
      2. Check the User: Roles argument, and click Add. Set the title to '%1' (don't type the quotes), and under Action to take if argument is not present select Summary, sorted ascending. Leave the other settings as they are. Click Update default display, and click Update through the prompts that follow to accept their default values.
    9. Saving the view

      Finally, click the Save button to save your work. At the very top, click View "Page" to go to your new view!

    posted on 2010-08-18 15:39 seal 閱讀(314) 評論(0)  編輯  收藏 所屬分類: PHP
    主站蜘蛛池模板: 亚洲日韩精品无码专区加勒比| 亚洲国产一成久久精品国产成人综合| 99re这里有免费视频精品| 两个人的视频www免费| 国产免费黄色无码视频 | 国产免费黄色大片| 在线观看免费a∨网站| 成人免费视频一区二区三区| 最近中文字幕无免费视频| 在线观看无码的免费网站| 日韩免费观看视频| 免费在线观看一级毛片| 亚洲国产香蕉人人爽成AV片久久 | 日本视频免费高清一本18| 成全动漫视频在线观看免费高清版下载| 两性色午夜免费视频| 国产精品免费无遮挡无码永久视频| 先锋影音资源片午夜在线观看视频免费播放 | 久久精品亚洲福利| 亚洲精品制服丝袜四区| 亚洲AV第一页国产精品| 亚洲人成网站18禁止久久影院 | 日日噜噜噜噜夜夜爽亚洲精品| 国产亚洲视频在线播放| 亚洲AV无码乱码国产麻豆穿越| 久久精品国产亚洲av麻豆小说| 亚洲国产精品日韩在线观看| 亚洲av无码专区在线观看下载| 香蕉视频在线观看免费| 三根一起会坏掉的好痛免费三级全黄的视频在线观看 | 中文字幕亚洲图片| 中文字幕在线观看亚洲| 在线精品亚洲一区二区| 美女视频黄视大全视频免费的| 中文字幕成人免费高清在线| 亚洲成人免费在线观看| 无码国模国产在线观看免费| 国产亚洲日韩一区二区三区| 亚洲网站在线免费观看| 亚洲精品无码久久久久YW| 一个人看的hd免费视频|