<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 閱讀(315) 評論(0)  編輯  收藏 所屬分類: PHP
    主站蜘蛛池模板: 一本久久A久久免费精品不卡| 亚洲一区二区三区深夜天堂| 99re热精品视频国产免费| 亚洲AV日韩精品久久久久久久| 日本zzzzwww大片免费| 亚洲免费在线视频观看| 狼色精品人妻在线视频免费| 亚洲精品免费观看| 国产AV无码专区亚洲AWWW| 亚洲一级免费毛片| 久久国产免费直播| 亚洲制服丝袜在线播放| 精品亚洲视频在线观看 | 亚洲av片在线观看| 在线播放亚洲第一字幕| 最近中文字幕mv免费高清视频8| 一级女性全黄久久生活片免费 | 亚洲国产精品激情在线观看 | 成人免费无码大片A毛片抽搐 | 精品国产麻豆免费网站| 91在线视频免费观看| 亚洲综合色区中文字幕| 国产伦精品一区二区三区免费下载| 怡红院免费全部视频在线视频| 亚洲AV无码成人网站在线观看| 亚洲av无码国产精品夜色午夜| 午夜亚洲福利在线老司机| 亚洲视频免费在线播放| 一区二区三区福利视频免费观看| 成人妇女免费播放久久久| 四虎精品免费永久免费视频| 亚洲av无码专区在线电影天堂 | 91麻豆国产自产在线观看亚洲| 国产免费人成视频在线观看| 国产一级淫片视频免费看| 成人免费一区二区无码视频| 国产电影午夜成年免费视频| 亚洲精品日韩一区二区小说| 亚洲av女电影网| 久久久久亚洲AV片无码| 国产成人精品日本亚洲|