 using views templates views theme templates are straightforward to use with the drupal theming system if you are unfamiliar with the theming system at all you should probably at least read drupalorg theming documentation  that said these are the important things you need to know copy a base views template to one of the names provided from the theme information section of the view copy this template right into your theme directory clear the theme registry see the instructions for how to do this your new template should now operate assuming you picked a nicely named template that includes the view name that template should now be active for your view a good example is viewsviewlistfoobartplphp which would work for a view named foobar you can now modify this template all you like for any template that uses fields the fields will be in array in order to use this effectively you will need to understand enough php to fetch data from an array this is a place where the devel module can really help you because you can use its dsm function right in your template to see what variables it uses there is an alternative to dsm that works without devel module but it s a bit longer to use for example i placed the following code inside a loop in viewsviewtablephpphp php drupalsetmessage pre varexport row true pre and it produced this output array nid 97 title scisco ideo vicis feugiat qui name luwrepuslan my view had three fields node nid node title user name the contents of the row variable included these fields in precisely the order that i had arranged them to using the views rearrange link also worth noting though is that each field also has an identifier so it can easily be pulled out of the row should i want to display it differently using php print row title would print just the title for that row please remember that i m doing this inside the loop so this will get repeated for every row of the view the ids used to fetch items from the array id  row title  can be quickly and easily looked up on the theme information page once a field has been added to the view its id will not change but note that if there are two title fields in a view one will be title and the other will be title1 in order to prevent namespace collisions the important thing here is that views does provide ids views doesn t tell you what these ids are but it s easy to get them by dumping the row data and doing a simple visual inspection views does guarantee that these ids will not change unless you actually add a new field and remove the existing one in which case title above would become title1  the basic fields template the most common template people will need to rewrite is the simple viewsviewfieldstplphp which is the template used by the fields row style and all it does is display a simple list of fields however it is not that simple to the user because the template can t inherently know what the fields are it has to go through an array in a loop this loop isn t very handy when you really want to have fine control over the template by placing your fields precisely where and how you want relax though if you know what your fields are you can rewrite this if you end up writing your own html the only part that is really important is the content for each field we know from above that you can get the id for each field on the theme information page from the view in the header for the template we can see that the fields are all in the fields array and each field is an object that leads us to this php print fields someid content assuming you replace someid with an id found on the theme information page this code will print the content for that field you can also get the label and some other data about the field as well as the raw information complete details for what is available are documented directly in viewsviewfieldstplphp keep in mind that if you rewrite your templates using this you ll need to maintain this template whenever changes are made to the fields of the view while this isn t generally recommend sometimes it s necessary to get the kind of control you might ultimately need  