By Gavin Bruce


2017-09-29 13:59:07 8 Comments

i'm using drupal 7. I have created a content type called Title and content navigation.

I have setup a template override in /sites/all/themes/themename/templates/views/title-and-content-navigation/block/views-view-fields--title-and-content-navigation.tpl.php which works correctly for all of the displays which are blocks.

I have one of the displays for this view which has a machine readable name of block_8. I am trying to have a separate template file for this but I cannot work out what I need to name the file. I have tried many suggestions from SO and I can't get this to work. I have been flushing all caches. What to name the template files is very confusing.

Thanks in advance

1 comments

@Clive 2017-09-29 14:10:15

Click on "Theme: Information" under "Advanced" on the right hand side of the View edit page.

All the available template suggestions for the View and its displays are listed in the resulting modal.

Related Questions

Sponsored Content

1 Answered Questions

1 Answered Questions

[SOLVED] Views Template for first Block being applied to all

  • 2018-04-11 18:58:31
  • Travis Johnston
  • 10 View
  • 0 Score
  • 1 Answer
  • Tags:   7 views theming

1 Answered Questions

[SOLVED] I cannot get fields to render in a view fields template

  • 2018-04-05 14:14:31
  • DJ Monzyk
  • 910 View
  • 1 Score
  • 1 Answer
  • Tags:   views 8 theming

4 Answered Questions

[SOLVED] Create a template for a specific view

  • 2016-01-29 17:55:38
  • James
  • 3224 View
  • 3 Score
  • 4 Answer
  • Tags:   theming 8

1 Answered Questions

[SOLVED] Custom template for view with block display in a page

1 Answered Questions

[SOLVED] View is using original template rather than new custom template

  • 2016-07-08 18:57:49
  • spuppett
  • 39 View
  • 1 Score
  • 1 Answer
  • Tags:   views theming

1 Answered Questions

[SOLVED] How to properly name tpl file for webform-submission-navigation.tpl.php?

  • 2014-05-21 21:19:50
  • penone
  • 663 View
  • 1 Score
  • 1 Answer
  • Tags:   theming webforms

1 Answered Questions

template file for content header of a view

  • 2012-05-31 01:41:32
  • user1015214
  • 71 View
  • 0 Score
  • 1 Answer
  • Tags:   views theming

1 Answered Questions

[SOLVED] Trouble theming poll block in Drupal 6

  • 2011-12-14 11:29:10
  • optimusprime619
  • 1050 View
  • 0 Score
  • 1 Answer
  • Tags:   6 theming polls

Sponsored Content