Note that there are some explanatory texts on larger screens.

plurals
  1. PODrupal theming a row in a view's display
    primarykey
    data
    text
    <p>I'm trying to theme a single "display" in a view. What I'm trying to achieve is to have some control over how the row is rendered (eg. print the fields in the row, and maybe add some text in between. along with some divs for styling purpose). I've looked for days for the template to edit. I've used even the Theme Developer and the View's Theme Information, but no luck. All </p> <p>My view's name is Calendar, and there are a bunch of displays. Could anyone tell me what I should do in order to customize the rows in this particular display? Does drupal even provide this flexibility?</p> <p>The Name and Title of my display in the Calendar view is:</p> <pre><code>Name: List view Title: List </code></pre> <p>Here's the theme information for row style:</p> <p><code>Row style output: views-view-fields.tpl.php, views-view-fields--calendar.tpl.php, views-view-fields--page.tpl.php, views-view-fields--calendar--page.tpl.php, views-view-fields--calendar.tpl.php, views-view-fields--page-1.tpl.php, views-view-fields--calendar--page-1.tpl.php</code> </p> <p>Could someone tell me how to</p> <hr> <p><strong>Edit:</strong><br> <em>(Some additional information the OP posted in an answer)</em></p> <p>I'm using Drupal 6. I'm not sure what page-1 indicates here The following is the list of display I have in this view: </p> <pre><code>Defaults Calendar page Calendar block Month view Week view Block view Upcoming List view Ongoing Block Feed </code></pre> <p>As you see, none of which has the string "page-1". I edited views-view-list.tpl.php, one of the file listed for "style output". The only variable I have access to is rows, which is an array containing all individual rendered "row". Like I mentioned before, the rows are generated somewhere else, and already contain the rendered fields. How can I customize these rows? </p>
    singulars
    1. This table or related slice is empty.
    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. 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