1

I have a view page named latest and try to override the template views-view-unformatted.tpl.php by creating below templates in the theme folder

views-view-unformatted--latest.tpl.php views-view-unformatted--latest--page.tpl.php views-view-unformatted--page.tpl.php views-view-unformatted.tpl.php

but none of them works. I clear the caches, rescan template files. I use views 3 and Drupal 7.23.

Can anyone please help me override this template views-view-unformatted.tpl.php

4
  • quick glance suggests that the names are correct, are the permissions as well? eg, are you creating them so that your web server can read them?
    – Jimajamma
    Commented Sep 13, 2013 at 11:51
  • I can override other views' default templates. Only the Style Output template is unable to override.
    – rongok
    Commented Sep 13, 2013 at 12:21
  • d'oh. I think you need to be trying views-view-unformatted..., eg, only one dash before unformatted. Check the suggestions via the Views UI to confirm.
    – Jimajamma
    Commented Sep 13, 2013 at 12:26
  • I have edited the question. It should be only one dash brfore unformatted.
    – rongok
    Commented Sep 13, 2013 at 12:40

1 Answer 1

2

In the "Advanced" section of the views configuration, click in "Theme:informaction" and you will see all the possible templates

Regards

3
  • I have give above in my question the possible template names from "Theme:information" and tried by creating them one by one in my theme folder but none of them works.
    – rongok
    Commented Sep 13, 2013 at 11:48
  • 1
    You can try clicking on "rescan templates" in "Theme:information" in this way you can see if it is recognizing your template, saving the view and clearing caches.
    – Enxebre
    Commented Sep 13, 2013 at 11:50
  • I have clear the caches, rescan template files as I mention in my question but doing those doesn't pick the template from my theme folder.
    – rongok
    Commented Sep 13, 2013 at 12:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.