foss

Table view with rows/columns switched

Submitted by ravisagar on Fri, 04/03/2009 - 05:35

These days I am working on my other site www.ggsipu.info to build the database of all the colleges affiliated to GGSIPU. I created a Custom Content Type to have various fields like college address, phone, fax, email, rating, etc. During the counselling time the students wants to compare various colleges based on various parameters like infrastructure, campus and other things. Now I wanted to create a view where a table is shown with the names of the colleges in the header and these parameters on rows.

  1. This views snippet allows you to render a tableview with columns and rows switched. Suppose you have the following output:
  2.  
  3. Title   | Price 1 | Price 2
  4. ----------------------------
  5. Node #1 | $10     | $20
  6. Node #2 | $15     | $25
  7.  
  8. but what you really want is the node titles displayed in the header, and the prices as the rows:
  9.         | Node #1 | Node #2
  10. ----------------------------
  11. Price 1 | $10     | $15
  12. Price 2 | $20     | $25

I created a view table, but obviously it showed the college names in the rows as it is the dynamic part. I searched around a lot on drupal and google and found this amazing piece of code that transpose the rows/columns.

You just need to replace YOURTHEME with the name of the theme and VIEWNAME with the view name and that's it!

Flash in Firefox 3

Submitted by ravisagar on Fri, 04/03/2009 - 05:30

I know I am late. I installed firefor3 on my fedora 8 just three weeks back. I have been using FF3 on windows workstation in office ever since it was launched.

When I installed FF3 I noticed that the flash content is not working in it, though I have it installed on my system. I searched around the internet and found this way around.

  1. ln -s  /usr/lib/firefox-2.0.0.8/plugins/libflashplayer.so /usr/lib/firefox3/plugins/libflasplayer.so

You just need to link the flash module from your old firefox folder to the new folder.

How drupal got its name?

Submitted by ravisagar on Tue, 03/31/2009 - 08:00

Drupal is an English rendering of the Dutch word “druppel”, which means “drop” (as in “a water droplet”).

Delhi Drupal Meetup

Submitted by ravisagar on Sun, 02/22/2009 - 13:23

Drupal Delhi meetup is a gathering of drupal enthusiasts in Delhi. This meetup is focused at getting together and coding for drupal. The event will focus on module development and theme development for drupal. There will be two talks, one focused on drupal module development and another one focused at drupal theme development. Following the talks we will have hacking session for coding a module and a theme.

Convert .cue/.bin to .iso format

Submitted by ravisagar on Sat, 11/29/2008 - 08:14

Today I was installing something on Windows using Sun VirtualBox but the package was in the form of .cue and .bin files. I was not aware of these two format and didn't know how to mount them in Virtual Machine.

Blank admin page in Drupal 6

Submitted by ravisagar on Tue, 11/25/2008 - 08:31

I installed Drupal 6 today on my windows machine in office. After creating the first user I tried to access the Administration Page, but a blank page was returned. I searched google to fix this problem and got this link.

Subscribe

* indicates required

Please confirm that you would like to from Sparxsys:

You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices.

Want to contact me?