Hi, i want to change the output of my view "summary-sheet" by overriding views-view-fields.tpl.php. I
created a file named views-view-fields--Summary-Sheet.tpl.php as suggested in the Theming information, but its not overriding the original views-view-fields.tpl.php. What am i doing wrong?

Comments

nevets’s picture

Did you click the 'Rescan templates' button?

jacksaghbazarian’s picture

Thanks for the reply, I clicked the rescan button, nothing changes.

hansyg’s picture

That should have worked. Make sure you verify the name of the file and the location, the file has to reside in your theme folder.

Once you rescan templates, if everything is correct, then the newly recognized template will be in bold, which means that Drupal now recognizes it. Save the view and you should be good to go.

polgard’s picture

I am trying to add a tpl.php file for a view I have created. Under theming information, I have copied the one of the more specific names:

views-view-unformatted--MYVIEW.tpl.php

There is now a file of this name in the modules/views/theme folder. I have cleared all caches, rescanned, but still cannot get theming information to highlight the new file. I do not want to change the default views tpl.php files as these will apply to all views.

Can anybody help?I have looked on all the forums I can find & so far have come up with no solution.

dharani87’s picture

Place the template file in your theme folder
i.e sites/all/themes/themename/views-view-unformatted--MYVIEW.tpl.php

polgard’s picture

Thank you Dharani,
that worked. Once I used the folder for the theme, the more specific .tpl.php files came up bold in theme information.

Paul