I've been searching through here and haven't found a solution. I'm using a Style: Table for my View and need to convert columns to rows. What I mean by that is currently the default is table header top to bottom content. What I need is table header left to right content in a row instead. Wish there was an option for this but I don't see it. Can any one please give me some direction?
Much appreciated,
Danny
Comments
Comment #1
dawehnerThere was someone, who asked the exact same stuff, as far as i understand what you are asking,
but there are too many people asking in the queue, so i cannot find it.
Basically you can do this using preprocess_views_table.
Comment #2
Anonymous (not verified) commentedI guess everyone has been asking the question differently than I because I never caught it. Thanks for the heads up. That will help in my keyword search.
Cheers
Comment #3
Anonymous (not verified) commentedSolution: http://drupal.org/node/529260#comment-1866248
Comment #4
dawehnerexact.
Thx for finding it.
So this is fixed.
Comment #5
Anonymous (not verified) commentedSorry dereine, can I trouble you to tell me where exactly this snippet is inserted? i'm not a programmer and having from trouble understanding the post in that link. Many thanks.
Comment #6
dawehnerThis snippet has to be added in template.php
Comment #7
Anonymous (not verified) commentedThanks. I've tested it at the top and bottom of the template.php and its not having any effect. Does this snippet require me to insert any additional data? e.g. labels.
Thanks again
Comment #8
dawehnerDid you replaced custom with your themename and cleared the cache?
Comment #9
Anonymous (not verified) commentedThat was it! Thank you so much dereine for your time. Greatly appreciated and I think this newbie learned a thing or two.
Comment #11
WorldFallz commentedI'm working on a module and docs to implement the linked solution in #3 and so far it still seems to work on views3. The only problem I can't seem to solve, and it existing with views2 as well, is that none of the $field_classes show up in the table. I could always make a custom tpl.php file, but it would be really nice to keep this all in the preprocess function. Has anyone solved this yet?
Comment #12
iamjon commentedWorldFallz
http://drupal.org/node/529260#comment-1866248 was for views 2.