i was in the middle of trying to get a row style theme template preprocessor picked up in template.php. i had named the template file + the preprocess function correctly but it was not picking up when i tried to print_r() on the $variables collection.
upon further inspection i went inside _views_theme_functions() insideht theme.inc of the views module and tried to print_r() on the $themes array it is returning.
I noticed than only the display output and the style output template suggestions were getting picked up -
fyi my view is called 'product_funnel_questions' , here are the list of template files recognised in _views_theme_functions() -
(
[0] => views_view__product_funnel_questions__block_1
[1] => views_view__block_1
[2] => views_view__funnel
[3] => views_view__product_funnel_questions__block
[4] => views_view__block
[5] => views_view__product_funnel_questions
[6] => views_view
)
Array
(
[0] => draggableviews_view_draggabletable__product_funnel_questions__block_1
[1] => draggableviews_view_draggabletable__block_1
[2] => draggableviews_view_draggabletable__funnel
[3] => draggableviews_view_draggabletable__product_funnel_questions__block
[4] => draggableviews_view_draggabletable__block
[5] => draggableviews_view_draggabletable__product_funnel_questions
[6] => draggableviews_view_draggabletable
)
Array
(
[0] => pager__product_funnel_questions__block_1
[1] => pager__block_1
[2] => pager__funnel
[3] => pager__product_funnel_questions__block
[4] => pager__block
[5] => pager__product_funnel_questions
[6] => pager
)
as you can see from the above all the field style templates + the row style are missing. I think this may be a prob with draggableviews as opposed to the views module itself because i have other views which are non-draggable, and those row-style preprocess functions are being picked up. any ideas? this is making it difficult to theme my view =(
Comments
Comment #1
sevi commentedFirst you should know about the latest change to the -dev version: There is no row style plugin for draggableviews any longer (actually it has never been being supported). See http://drupal.org/cvs?commit=252070.
I'm not sure, but I think your output above shows only the functions used to build the view after running through all fields and rows (..but I don't know).
But I can tell you for sure that my output of _views_theme_functions() doesn't contain more theme functions than yours. (I called the function for views with and without the draggabletable style plugin in use).
All preprocess functions and .tpl.php files for my draggable view (both fields and the table itself) work.
Example for files and preprocess functions (..for all other users reading this issue):
garland/template.php:
garland/views-view-field--myview--page-1.tpl.php
garland/views-view-field--myview--page-1--title.tpl.php
garland/draggableviews-view-draggabletable.tpl.php
garland/draggableviews-view-draggabletable--myview--page-1.tpl.php
..where "myview" is the name of my view that uses DraggableViews Style plugin.
Comment #2
sevi commentedComment #3
tayzlor commentedhi sevi,
thanks for the great response. fair enough, if yours is the same as mine, then all good i guess =) must have been an oversight, misunderstanding by me expecting more templates to appear!
Comment #4
sevi commentedSeems to be waiting to get closed :)