Skip to main content
3 of 3
replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/

Node template.tpl.php for custom view mode?

I tried this http://www.fredparke.com/blog/using-custom-template-files-different-display-modes-drupal-7, but doesn't work, gives errors and tried this How to provide template for particular view mode? kind of works, but gives errors.

My content type is product_display and view mode is Product List, created with display suite. I need this, so I could delete h2 title from it, because views forces title output via rendered entity format no matter what.

Errors I get are either Notice: Undefined index: product_display in mytheme_preprocess_node() (line 170 of /template.php).

or this https://i.sstatic.net/s6bEn.jpg

Optimus Prime
  • 457
  • 1
  • 6
  • 23