Hi
I tried to understand views theming using template and...obviously it didnt work out

so far adding a view-view--myview.tpl.php to my theme rep with this code :

<?php if ($rows): ?>
<div class="view-wrapper theme-default">
    <div id="myview">
      <?php print $rows; ?>
    </div>
</div>
  <?php elseif ($empty): ?>
    <div class="view-empty">
      <?php print $empty; ?>
    </div>
  <?php endif; ?>
<?php /* class view */ ?>

I managed to have something like this :

<div class="view-wrapper theme-default">
 <div id="myview">
  <div class="row">...</div>
  <div class="row">...</div>
  <div class="row">...
   <strong><div class="myfield>~~</div></strong>
  </div>
 </div>
</div>

but what I want is to get the myfield DIV outside the myview DIV :

<div class="view-wrapper theme-default">
 <div id="myview">
  <div class="row">...<div>
  <div class="row">...<div>
  <div class="row">...<div>
 </div>
 <div class="myfield>~~</div>
</div>

...so if someone could guide me in the right direction I would really appreciate it. Thanks for your time.

Comments

Melcain’s picture

Assigned: Melcain » Unassigned
mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (outdated)