I'm trying to create custom templates in views, but the one included with this module 'views-view-field.tpl.php' seems to override any ones I try to use for custom field templates.

Is there a way to remove this or rename it so it doesn't conflict? Views sees this as a custom template file and applies it to all views.

I also have a quick and dirty views integration that I can post here once I clean up part of it. In the meantime, what is the custom views template that's included for and how can I remove it so it doesn't conflict?

Comments

pixture’s picture

The reason I used views-view-field.tpl.php is because it needs to check and convert anchor tags in any Views fields since PDC (Public Download Count) has no way to know where the anchor to the downloadable files exists except for checking all fields.

I will look into this issue to see if I can came up with a fix. I will also take a look at your code too. Thanks!

pixture’s picture

Please do the following steps to remove it.

1) Disable PDC module
2) Go to views and edit any views that uses field format (not node format).
3) Click on Theme Information link
4) Make sure that views-view-field.tpl.php is not in red.
5) Edit pubdlcnt.module and remove the following lines from pubdlcnt_theme()
'view_view_field' => array( ......
.....
.....
'path' => drupal_get_path( ....
),
6) Enable PDC module

I hope this will do it. This worked with my local Drupal site.