? views-examples-282755-14.patch
Index: help/example-recent-stories.html
===================================================================
RCS file: help/example-recent-stories.html
diff -N help/example-recent-stories.html
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ help/example-recent-stories.html	21 Jul 2008 03:26:07 -0000
@@ -0,0 +1,39 @@
+<!-- $Id -->
+<ol>
+<li>Go to <a target="_blank" href="base_url:admin/build/views/add">add new view</a>.</li>
+<li>Give it the name 'recent_stories', the description 'Recent Stories', the tag 'story', and the type 'Node', and then click <strong>Next</strong>.</li>
+<li>Next to <strong>Fields</strong> click the <strong>+</strong> icon to add fields.</li>
+<li>In the <strong>Groups</strong> section below, select 'Node', then check the following two fields: <em>Post date</em>, <em>Title</em>. Then click <strong>Add</strong>.</li>
+<li>You will be taken through the fields you added one at a time. Make the changes specified below, then click <strong>Update</strong> to go to the next field
+<ol>
+<li>For the <em>Post date</em> field: Delete the 'Post date' label. </li>
+<li>For the <em>Title</em> field: Delete the 'Title' label. Select <em>Link this field to its node.</em></li>
+</ol>
+<li>Next to <strong>Fields</strong> click the up/down icon to rearrange fields.</li>
+<li>Drag the four-sided arrow next to <em>Node: Title</em> so that it appears above <em>Node: Post date</em>. Click <strong>Update</strong> to save the new field order.</li>
+<li>Click the <strong>+</strong> icon next to <strong>Filters</strong>.</li>
+<li>In the <strong>Groups</strong> section below, select 'Node', then check the <em>Node: Published</em> and <em>Node: Type</em> filters, and click <strong>Add</strong>.</li>
+<li>Select the <em>Published</em> checkbox, and click <strong>Update</strong></li>
+<li>Select <em>Is one of</em> and check <em>Story</em> in the <em>Node Type</em> field. Click <strong>Update</strong>.</li>
+<li>Click the <strong>+</strong> icon next to <strong>Sort criteria</strong>.</li>
+<li>In the <strong>Groups</strong> section below, select 'Node', then check <em>Node: Post date</em>, and click <strong>Add</strong>. Alternatively, you may instead check <em>Node: Last comment time</em>, or <em>Node: Updated/commented date</em>, or <em>Node: Updated date</em>.</li>
+<li>Select <em>Descending</em> <strong>Sort order</strong>. Click <strong>Update</strong>.</li>
+<li>Next to the <em>Items to Display</em> setting, click <em>10</em>. Change the '10' to '4'. Click <strong>Update</strong></li>
+<li>Next to the <em>Style</em> setting, click <em>Unformatted</em>. Change to <em>List</em>. Click <strong>Update</strong>.</li>
+<li>In the dropdown on the left, select <em>Block</em>, and click <strong>Add Display</strong>.</li>
+<li>Under <strong>Basic setttings</strong>, click the <em>None</em> link next to the <em>Title</em> setting. Fill in the <em>Block: title of this view</em> as 'Recent stories'.</li>
+<li>Under <strong>Block setttings</strong>, click the <em>None</em> link next to the <em>Admin</em> setting. Change <em>Block: Block admin description</em> to 'Recent stories'.</li>
+<li>Click the <strong>Save</strong> button to save your view (don't skip this step!).</li>
+</ol>
+
+<h3>Block configuration</h3>
+<ol>
+<li>Configure your block by going to the <a target="_blank" href="base_url:admin/build/block">Blocks page</a>.</li>
+<li>Under <strong>Disabled</strong> the blocked labeled 'Recent stories', select a region and press <strong>Save</strong>.</li>
+<li>You may press <em>Configure</em> to set a different title, to determine which roles can view the block, and on which pages it appears. If you want your block on the front page only, enter '&lt;front&gt;'.</li>
+</ol>
+
+<!-- 
+(A quick way to get there is to replace everything in the URL from 'view' on, with 'block'.)
+
+Change the <strong>Date format</strong> to <em>Custom</em>, and the <strong>Custom date format</strong> to 'F j, Y, g:i a' (don't type the single quotes).  (In Firefox and Internet Explorer you may also Ctrl+Click on <em>the PHP docs</em> to bring up a new browser tab or window for more formatting options. If you simply click, and the PHP date help opens in the same window, you may lose Views unsaved settings when you press Back.) -->
Index: help/example-users-by-role.html
===================================================================
RCS file: help/example-users-by-role.html
diff -N help/example-users-by-role.html
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ help/example-users-by-role.html	21 Jul 2008 03:26:07 -0000
@@ -0,0 +1,21 @@
+<!-- $Id$ -->
+<ol>
+<li>Go to <a target="_blank" href="base_url:admin/build/views/add">add new view</a>.</li>
+<li>Give it the name 'user_list', description 'A simple user listing.', tag 'users', type 'User' and click <strong>Next</strong>.</li>
+<li>On the left, ensure that <em>Page</em> is selected, and click <strong>Add Display</strong>.</li>
+<li>Next to <strong>Fields</strong> click the <strong>+</strong> icon to add fields.</li>
+<li>In the <strong>Groups</strong> section below, select 'User', then check the following user fields: <em>Created date</em>, <em>Delete link</em>, <em>Edit link</em>, <em>Last access</em>, <em>Name</em> and <em>Picture</em>. Then click <strong>Add</strong>.</li>
+<li>You will be taken through the fields you added one at a time. Click <strong>Update default display</strong> to go to the next field. Leave the default options on all fields except <em>Delete link</em>; change that field's label to 'Operations'.</li>
+<li>Under <strong>Page settings</strong>, click the <em>None</em> link next to the <em>Path</em> setting. Set the path to 'user_list' (or something else if you prefer) and click <strong>Update</strong>.</li>
+<li>Click the <em>No menu</em> link under the <em>Menu</em> setting. Select <em>Normal menu</em> and set the title to "User list" and click <strong>Update</strong>.</li>
+<li>At this point, you have done enough to create a valid view. If you scroll down, you will see a preview of your view. At any time you can click the <strong>Preview</strong> button, but whenever you finish one of the mini forms, the preview will update automatically, so you don't need to, generally.</li>
+<li>Next to <strong>Fields</strong>, click the rearrange icon, which is to the right of the + icon. Down below, drag the <em>Name</em> field to the top, the <em>Delete link (Operations)</em> field to the bottom, and the <em>Edit link</em> field just above it. Then click <strong>Update</strong>.</li>
+<li>Under the <strong>Basic settings</strong>, click the <em>Unformatted</em> link next to the <em>Style</em> setting. Change this to 'Table' below, and click <strong>Update default display</strong>.</li>
+<li>You will be taken to the table settings form. Next to <em>Edit link</em> change the column to <em>Operations</em>. Next to <em>Operations</em> set the Separator to ' | ' (note the spaces around the | symbol). Check all of the <em>Sortable</em> checkboxes, and set <em>Default sort</em> to 'Name'. When finished, click <strong>Update default display</strong>.</li>
+<li>Click the <strong>+</strong> icon next to <strong>Filters</strong>, select <em>User</em> under <strong>Groups</strong> below, choose the <em>User: Active</em> filter, and click <strong>Add</strong>.</li>
+<li>Check <em>Active</em> and click <strong>Update default display</strong>.</li>
+<li>Back under <strong>Basic settings</strong>, click the <em>No</em> link next to <em>Use pager</em>. Select <em>Full pager</em> and click <strong>Update default display</strong>.</li>
+<li>Next to <strong>Arguments</strong>, click the <strong>+</strong> icon, choose the <em>User: Roles</em> argument, and click <strong>Add</strong>. Set the title to "%1", the "Action to take if argument is not present" to "Summary, sorted ascending". Leave the other settings as they are. Click <strong>Update default display</strong>, and click <strong>Update</strong> through the prompts that follow to accept their default values.</li>
+<li>Finally, click the <strong>Save</strong> button to save your work.</li>
+<li>At the very top, click <strong>View "Page"</strong> to go to your new view!</li>
+</ol>
Index: help/getting-started.html
===================================================================
RCS file: /cvs/drupal/contributions/modules/views/help/getting-started.html,v
retrieving revision 1.4
diff -u -p -r1.4 getting-started.html
--- help/getting-started.html	2 Jul 2008 02:13:42 -0000	1.4
+++ help/getting-started.html	21 Jul 2008 03:26:07 -0000
@@ -3,28 +3,3 @@ For those new to Views, it can be a comp
 
 It helps to have something particular in mind that you want to accomplish when using Views. Here are a couple of ideas and a brief sketch of how to accomplish what you want.
 
-<h2>Create a page to list users by role</h2>
-<ol>
-<li>Go to <a target="_blank" href="base_url:admin/build/views/add">add new view</a>.</li>
-<li>Give it the name 'user_list', description 'A simple user listing.', tag 'users', type 'User' and click <strong>Next</strong>.</li>
-<li>On the left, ensure that 'Page' is selected, and click <strong>Add Display</strong>.</li>
-<li>Next to <strong>Fields</strong> click the + icon to add fields.</li>
-<li>In the <strong>Groups</strong> section below, select 'User', then check the following user fields: <em>Created date</em>, <em>Delete link</em>, <em>Edit link</em>, <em>Last access</em>, <em>Name</em> and <em>Picture</em>. Then click <strong>Add</strong>.</li>
-<li>You will be taken through the fields you added one at a time. Click <strong>Update default display</strong> to go to the next field. Leave the default options on all fields except <em>Delete link</em>; change that field's label to 'Operations'.</li>
-<li>Under <strong>Page settings</strong>, click the <em>None</em> link next to the <em>Path</em> setting. Set the path to 'user_list' (or something else if you prefer) and click <strong>Update</strong>.</li>
-<li>Click the <em>No menu</em> link under the <em>Menu</em> setting. Select <em>Normal menu</em> and set the title to "User list" and click <strong>Update</strong>.</li>
-<li>At this point, you have done enough to create a valid view. If you scroll down, you will see a preview of your view. At any time you can click the <strong>Preview</strong> button, but whenever you finish one of the mini forms, the preview will update automatically, so you don't need to, generally.</li>
-<li>Next to <strong>Fields</strong>, click the rearrange icon, which is to the right of the + icon. Down below, drag the <em>Name</em> field to the top, the <em>Delete link (Operations)</em> field to the bottom, and the <em>Edit link</em> field just above it. Then click <strong>Update</strong>.</li>
-<li>Under the <strong>Basic settings</strong>, click the <em>Unformatted</em> link next to the <em>Style</em> setting. Change this to 'Table' below, and click <strong>Update default display</strong>.</li>
-<li>You will be taken to the table settings form. Next to <em>Edit link</em> change the column to <em>Operations</em>. Next to <em>Operations</em> set the Separator to ' | ' (note the spaces around the | symbol). Check all of the <em>Sortable</em> checkboxes, and set <em>Default sort</em> to 'Name'. When finished, click <strong>Update default display</strong>.</li>
-<li>Click the + icon next to <strong>Filters</strong>, select <em>User</em> under <strong>Groups</strong> below, choose the <em>User: Name</em> filter, and click <strong>Add</strong>.</li>
-<li>Select <em>Is not one of</em> and enter 'Anonymous' in the <strong>Usernames</strong> field. Click <strong>Update default display</strong>.</li>
-<li>Back under <strong>Basic settings</strong>, click the <em>No</em> link next to <em>Use pager</em>. Select <em>Full pager</em> and click <strong>Update default display</strong>.</li>
-<li>Next to <strong>Arguments</strong>, click + icon, choose the <em>User: Roles</em> argument, and click <strong>Add</strong>. Set the title to "%1", the "Action to take if argument is not present" to "Summary, sorted ascending". Leave the other settings as they are. Click <strong>Update default display</strong>, and click <strong>Update</strong> through the prompts that follow to accept their default values.</li>
-<li>Finally, click the <strong>Save</strong> button to save your work.</li>
-<li>At the very top, click <strong>View "Page"</strong> to go to your new view!</li>
-</ol>
-<h3>Create a block to list recent story nodes</h3>
-<ol>
-<li>TODO</li>
-</ol>
Index: help/views.help.ini
===================================================================
RCS file: /cvs/drupal/contributions/modules/views/help/views.help.ini,v
retrieving revision 1.13
diff -u -p -r1.13 views.help.ini
--- help/views.help.ini	26 Jun 2008 16:41:01 -0000	1.13
+++ help/views.help.ini	21 Jul 2008 03:26:07 -0000
@@ -10,6 +10,15 @@ weight = -40
 title = "Getting started"
 weight = -45
 
+[example-users-by-role]
+title = "Create a page to list users by role"
+parent = getting-started
+weight = -10
+
+[example-recent-stories]
+title = "Create a block of recent stories"
+parent = getting-started
+
 [view-type]
 title = "View types"
 
