1 |
85ad3d82
|
Assos Assos
|
In Views 3 you can set Advanced Style Settings, they help you to insert markup of your own from the Views UI, so that you can fairly easily override the default markup without having to restyle via templates.
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
<ul>
|
5 |
|
|
<li> Customize field HTML</li>
|
6 |
|
|
With Customize field HTML you can generate html tags around the field.
|
7 |
|
|
|
8 |
|
|
<li>Customize label HTML</li>
|
9 |
|
|
Here you can generate html tags around the label of a field.
|
10 |
|
|
|
11 |
|
|
<li>Customize field and label wrapper HTML</li>
|
12 |
|
|
Here you can generate html tags around the wrapper of the label and field
|
13 |
|
|
</ul>
|
14 |
|
|
|
15 |
|
|
<a href="path:images/views3-semanticviews.png"><img src="path:images/views3-semanticviews.png" /></a>
|
16 |
|
|
|
17 |
|
|
Usage example
|
18 |
|
|
|
19 |
|
|
In a view with a field:
|
20 |
|
|
<ol>
|
21 |
|
|
<li>Configure the field. (Click on the field.)</li>
|
22 |
|
|
|
23 |
|
|
<li>In the modal that opens, scroll down to <strong>Style Settings</strong>.</li>
|
24 |
|
|
|
25 |
|
|
<li>Choose one or more of the three <i>Customize</i> options. This will reveal a dropdown menu where you can choose from one or more HTML tags to use on that field and allow you to add a CSS class specific to that field should you desire.</li>
|
26 |
|
|
|
27 |
|
|
<li>Decide if you want to keep the Views default classes. Unchecking this box means your markup is *it*.</li>
|
28 |
|
|
</ol>
|
29 |
|
|
|
30 |
|
|
In Views 2 you needed for Style Settings the <a href="http://drupal.org/project/semanticviews">Semantic Views</a> Modul, now the Semantic Views module has been mostly incorporated into Views 3.x. Semantic Views is still around for people who need it, though. For some details on how the original module is different from the Views implementation, please see <a href="http://drupal.org/node/1013876">this issue</a>. |