Mercurial > hg > rr-repo
comparison sites/all/modules/semanticviews/help/semanticviews-tutorial.html @ 4:ce11bbd8f642
added modules
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Thu, 19 Sep 2013 10:38:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:b28be78d8160 | 4:ce11bbd8f642 |
---|---|
1 <p>This tutorial will guide you through specifying the elements for your views output using <em>Semantic Views : Fields</em> settings. This tutorial assumes you have Views installed.</p> | |
2 <ul> | |
3 <li><strong>Create a view</strong> | |
4 <ol> | |
5 <li>Visit the <a href="base_url:admin/build/views">Views administration page</a></li> | |
6 <li>Click Add new view. Type in the name test_semantic view, select type 'Node', click <strong>Next</strong>.</li> | |
7 </ol> | |
8 </li> | |
9 <li><strong>Modify the view to use Semantic Views options</strong> | |
10 <ol> | |
11 <li>Locate the Basic settings column, click the <strong>Style:</strong> settings. </li> | |
12 <li> At the bottom section of this area, you will see a list of options under <em>How should this view be styled</em>. Select <em>Semantic Views</em>, and click <strong>Update</strong>. </li> | |
13 <li>Click options next to <strong>Row style. </strong>Select <em>Semantic Views : Fields</em>.</li> | |
14 </ol> | |
15 </li> | |
16 <li><strong>Select which fields to style</strong> | |
17 <ul> | |
18 <li>Click the <strong>+</strong> icon next to <strong>Fields</strong>.</li> | |
19 <li>In the <strong>Groups</strong> drop-down menu select 'Node', then check <em>Node: Body</em>, <em>Node: Post Date</em> and <em>Node: Title</em>. Click <strong>Add</strong>.</li> | |
20 <li>Under the next three options for Body, Post Date and Title, click <strong>Update</strong>, staying with the default settings for this tutorial.</li> | |
21 <li>Scroll back up to <strong>Fields</strong> and click the <strong>↑↓</strong> icon to rearrange fields, so it is Title first.</li> | |
22 </ul> | |
23 </li> | |
24 <li><strong>Preview the default </strong></li> | |
25 <ol> | |
26 <li>At this stage you can preview the default settings. Click <strong>Save</strong>.</li> | |
27 <li>View the unstyled fields previewed at the bottom of the Views User Interface.</li> | |
28 </ol> | |
29 <li><strong>Modify the output for these fields</strong> </li> | |
30 <ol> | |
31 <li>Click the settings gear icon next to Row style: Semantic Views : Fields.</li> | |
32 <li>Scroll down to the <em>Row style options</em>, you can see the menu built for the fields you have chosen Title, Body and Post date.</li> | |
33 <li>Do not capitalize the elements and do not use <> symboles to specify the elements in the form.</li> | |
34 <li>Under <em>Ttitle</em> specify the element: <strong>h3</strong>. Optional: You can also edit your settings and specify custom Class attributes. put spaces in between each class attibute, and do not wrap class attributes in "double quotes".</li> | |
35 <li>Under <em>Body</em> specify the element <strong>div</strong>. You are likely to have other block level elements such as a paragraph or blockquote. </li> | |
36 <li>Under <em>Post date</em> specify the element <strong>p.</strong></li> | |
37 <li>Select Skip empty fields</li> | |
38 <li>Click <strong>Update</strong>.</li> | |
39 <li>Click <strong>Save</strong> to save your settings.</li> | |
40 </ol> | |
41 <li><strong>You're done!</strong> You should see the modifications to your view when you preview it. </li> | |
42 </ul> |