Closed (outdated)
Project:
Views Bulk Operations (VBO)
Version:
6.x-1.x-dev
Component:
Theming
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2011 at 15:51 UTC
Updated:
6 Dec 2016 at 19:41 UTC
Jump to comment: Most recent
Comments
Comment #1
Chris Gillis commentedThe $view variable is available. It is an object that carries a lot of data. I tend to run a case statement on $view->name.
Note: this is not explained in the @file comment.
Comment #2
bojanz commentedUpdating version. Seems like we need some improvements done in this area (pass variables to allow multiple templates, document the basic variables in the template)
Comment #3
infojunkieThis issue has actually regressed since #1280776: Bring back "select all" checkbox because the VBO table template was not as flexible as the standard Drupal
theme('table').You suggestions as to what would be the ideal case for theming are welcome.
Comment #4
infojunkieComment #5
ksenzeeI know this post is pretty old, but in case anyone else needs to theme specific VBO views in D6, here's what I did. These instructions are specific to modules; it may actually be easier from a theme but I haven't tried it.
1. Create a template file named whatever you want (such as 'views-bulk-operations-table--grid.tpl.php'). The name doesn't matter. Put it in your module (or theme) directory.
2. Add your new file as a template suggestion in hook_preprocess_views_bulk_operations_table():
Make sure you leave off the .tpl.php part of the filename you used.
3. Let the theme system know it should use your module directory as one place to look for VBO template files. (This is the step that is probably unnecessary for themes.)
Clear the theme registry and views should start using your template file for the particular display you wanted to theme.
Comment #6
kenorb commentedIs this still a problem in 7.x?
Comment #7
joelpittetClosing this as 6.x is no longer being maintained.