Answer the question
In order to leave comments, you need to log in
How to split $row in drupal views into components?
I'm working on themeing the template. I embed a block that generates views in the finished layout.
Now there is this code:
<?php foreach ($rows as $id => $row): ?>
<div class="four columns">
<div class="item">
<?php print $row; ?>
</div>
</div>
<?php endforeach; ?>
Answer the question
In order to leave comments, you need to log in
This is the template for "Style output" in views - $row is already generated in html there, you can use str_replace or regexps here.
I recommend going down the template, for example, Row style output or templates by fields (if Views shows fields, if an entity, then change the entity itself in the template).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question