advanced-style-settings.html

File

help/advanced-style-settings.html

View source
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.


<ul>
<li> Customize field HTML</li>
With Customize field HTML you can generate html tags around the field.

<li>Customize label HTML</li>
Here you can generate html tags around the label of a field.

<li>Customize field and label wrapper HTML</li>
Here you can generate html tags around the wrapper of the label and field
</ul>

<a href="path:images/views3-semanticviews.png"><img src="path:images/views3-semanticviews.png" /></a>

Usage example

In a view with a field:
<ol>
<li>Configure the field. (Click on the field.)</li>

<li>In the modal that opens, scroll down to <strong>Style Settings</strong>.</li>

<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>

<li>Decide if you want to keep the Views default classes. Unchecking this box means your markup is *it*.</li>
</ol>

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>.