<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
    主站蜘蛛池模板: 日本免费网站观看| 无码免费午夜福利片在线| 亚洲色精品三区二区一区| 久久免费视频精品| 日本亚洲视频在线| 免费看男人j放进女人j免费看| 亚洲精品无码Av人在线观看国产| 伊人免费在线观看| 免费黄网在线观看| 亚洲AV日韩AV永久无码色欲| 国产国产人免费人成免费视频| 精品亚洲国产成人av| 免费a在线观看播放| 日韩电影免费在线观看网址 | 亚洲色大成网站WWW国产| 亚洲人成在线免费观看| 国产成人精品日本亚洲专 | 日本一道在线日本一道高清不卡免费| 亚洲色成人四虎在线观看| 免费鲁丝片一级在线观看| 黄色a级片免费看| 日韩精品亚洲aⅴ在线影院| 国产麻豆成人传媒免费观看| 久久亚洲AV无码精品色午夜| 久久午夜免费视频| 18禁亚洲深夜福利人口| 久久99亚洲综合精品首页| 免费女人高潮流视频在线观看| 亚洲人成日本在线观看| 免费jjzz在在线播放国产| 国产一精品一AV一免费| 亚洲人成免费电影| 亚洲黄片毛片在线观看| 一级毛片免费毛片一级毛片免费| 亚洲色偷偷色噜噜狠狠99| 久久久久亚洲AV无码专区桃色| 亚洲毛片免费视频| 日韩大片在线永久免费观看网站| 久久精品国产亚洲av麻豆色欲| 日韩高清在线免费看| 久久精品国产免费一区|