- Drupal 6.x
- CCK 6.x-3.0-alpha3
- Slickgrid 6.x-1.x-dev
- jQuery Update 6.x-2.0-alpha1*
* - The site uses jQuery version 1.3.2 from the jQuery Update module but this Slickgrid module comes with jQuery 1.4.3 and inserts it into the HEAD section of the markup stack after the first version.
Slickgrid is a module that adds a special type of view display option for fields. In other words, whenever you use Views to create a view, you can select "grid", "table", etc. but with this module, you can also use a "slickgrid" view, too. All it really does is output the fields in a way that transforms the output into a spreadsheet layout. It's pretty awesome and opens the door to many data filtering possibilities, which is one of the main reasons I decided to try and use it: the module page shows a tiny thumbnail of a spreadsheet grid which has filtering inputs at the top of each column, but, I have yet to see ANYTHING work at all...!
When I try to use this Slickgrid module, I get a blank space in the preview area of the actual view edit page but I also have problems getting it to display on a page the end user would see (not the views edit page but rather, the actual page for the node). Anyway, despite the blank spacing being displayed in the view edit page, I can get the view to work when I create a generic / vanilla Slickgrid view that doesn't do anything special and that uses a Page View, but what I NEED to do is create a Slickgrid view that I can be embeded into a theme file. This is proving to be almost impossible.
Here's what happens:
- I create a default view.
- I tell this view that I want the display type to be of type slickgrid.
- I leave everything at default (I do not set it to be a Page type of view because I need to embed this inside a theme file).
- Of course, I select my fields I want to use and leave everything in these to default, too.
- I then save the view.
I then put the following code inside my respective theme file:
print views_embed_view('name-of-theme', 'default');
Finally, after saving the theme file and reloading the respective node page, all I see is blank space where the Slickgrid spreadsheet should be. Page view types seem to work, but this forces me into using a static URL, which I can't have because I plan on allowing users to create their own nodes with this view.
Long story short, I just need to create a Slickgrid view and output it into my theme file so that when users create these kinds of nodes, they end up using normal backend node creation pages but only publish to the page's theme file which displays their data in a Slickgrid view.
I hope someone can shine some light on this...