Views theming template file placement?

Events happening in the community are now at Drupal community events on www.drupal.org.
pkcho's picture

I created a panel page and am trying to place a variant of the Homepage Articles block in a panel. When it displays, some of the formatting is lost...

The "views separator" is gone and therefore the "clear: both" from the css, so basically, the space between articles is messed up and the articles are blending into each other without separation.

I went into the View and am trying to duplicate the views theme template file and rename it for this panel.

For starters, I attempted to duplicate the: views-view-field--articles--field-teaser-value.tpl.php from the Views/articles folder and renamed it to: views-view-field--articles-for-panel-taxonomy--field-teaser-value.tpl.php.php for use with my new view...

But, when I "rescan template files" it does not find the new template.

Is there a special place that I need to place this new template file? This is in my sub-theme.

Thank you,
Joe

Comments

Apparently, that was the

pkcho's picture

Apparently, that was the incorrect template file to start with.

After testing a few other template files, I copied the "views-view-unformatted--block.tpl.php" template file in the views folder, renamed it appropriately to: "views-view-unformatted--articles-for-panel-taxonomy.tpl.php" and after rescanning, it found it and now displays properly.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: