my views output is like this.


<li ..>  
  <div class="views-field-field-cimg-fid">
    <span class="field-content">....</span>
  </div>

  <div class="views-field-field-yma-value">
    <span class="field-content">...</span>
  </div>

  <div class="views-field-field-price-value">
    <span class="field-content">....</span>
  </div>

  <div class="views-field-changed">
    <span class="field-content">....</div></span>
  </div>
</li>

now i want to add

around the following snippet.

<div id="test">
<div class="views-field-field-yma-value">
  <span class="field-content">...</span>
</div>

<div class="views-field-field-price-value">
  <span class="field-content">....</span>
</div>
</div> 

Comments

dawehner’s picture

Priority: Major » Normal
Status: Active » Fixed

Click on "theme information" and you will see a -fields.tpl.php

There you can create a template file and wrap the output with your div.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.