Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You'll need to use the 'Row style output' template (e.g. views-view-fields.tpl.php).</p> <p>To make it unique to your view, you'll want to use a more specific template name than that, such as the last possible template name showed in that section - e.g. <code>views-view-fields--myview--default.tpl.php</code>.</p> <p>Once there, you'll need you have a global variable to keep track of the current row, something like:</p> <pre><code>&lt;?php global $is_first_of_term; if(!isset($is_first_of_term)){ $is_first_of_term = TRUE; } else { $is_first_of_term = FALSE; } // Then use $is_first_of_term below (unmodified original script) // to print whatever you want. ?&gt; &lt;?php foreach ($fields as $id =&gt; $field): ?&gt; &lt;?php if (!empty($field-&gt;separator)): ?&gt; &lt;?php print $field-&gt;separator; ?&gt; &lt;?php endif; ?&gt; &lt;&lt;?php print $field-&gt;inline_html;?&gt; class="views-field-&lt;?php print $field-&gt;class; ?&gt;"&gt; &lt;?php if ($field-&gt;label): ?&gt; &lt;label class="views-label-&lt;?php print $field-&gt;class; ?&gt;"&gt; &lt;?php print $field-&gt;label; ?&gt;: &lt;/label&gt; &lt;?php endif; ?&gt; &lt;?php // $field-&gt;element_type is either SPAN or DIV depending upon whether or not // the field is a 'block' element type or 'inline' element type. ?&gt; &lt;&lt;?php print $field-&gt;element_type; ?&gt; class="field-content"&gt;&lt;?php print $field-&gt;content; ?&gt;&lt;/&lt;?php print $field-&gt;element_type; ?&gt;&gt; &lt;/&lt;?php print $field-&gt;inline_html;?&gt;&gt; &lt;?php endforeach; ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload