0

I've inherited a Drupal 7 site that's having an issue. The field "date" appears on the test site, but not on prod, and the field "title" is linked on test, but not prod. On both sites, the "date" field shows up in views "preview."

Update: I've figured out as much as the view is scanning the wrong template file. There is a file with an identical name learning/views-view-fields--block.tpl that is being used in the view instead of news/views-view-field--block.

How does this happen and how can it be fixed (I'm new to Drupal view templates, so I apologize if there's a simple solution).

  • do you have any field permissions module in place? – longboardnode May 19 '17 at 14:50
  • @longboardnode nope, nothing per-field.. – Jillian Hoenig May 19 '17 at 15:01
  • hmmm, is the testing db identical to prod? or have you tried cloning your prod db to local to see if the problem reproduces? – longboardnode May 22 '17 at 3:45
  • @longboardnode The date time field is definitely set for the content on prod. It even shows in the preview of the view (below the edit page)... – Jillian Hoenig May 22 '17 at 13:25
  • That doesn't answer the questions... do you regularly clone the prod database to dev? have you tried downloading the prod db to your local? you have to add a lot more info on this, otherwise this question is too localized and can't be answered. – longboardnode May 22 '17 at 16:07
0

I fixed this by going into structure->views->the-specific-view-causing-the-issue(News)->advanced->theme information, and found a more specific name for "Row style output," in this case views-view-fields--news--block.tpl.php.

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