What will be the best way to make such a table with Drupal?

Hi, I have a question about how to make such a table or present a matrix of nodes with Drupal.

I am developing an online course website with Drupal. My purpose is to use the website to provide whatever students need to get from me but not to use it to receive things submitted from students. So I am not in worry about giving feedback, grading, report, etc. For now most course materials have been entered into the site. I use field to indicate each node's lesson ID and taxonomy to indicate the type of files. I have attached an image to this post to show you my current front page setup for registered students. As you can see (from the picture) course materials are listed at the left sidebar, grouped by lesson ID, and sorted by the types of materials. In the center is a table indicating lessons, schedule, and corresponding materials students should get from me. Now, the table is a single page node. All the ys in the table indicates that a "node" is available and can be found at the left side bar. For now those ys are not hyperlinked and have no relation to the nodes.

I was wondering if there is any way to make a matrix of nodes (or nodes' titles with links to the nodes) in a way that looks like the table, or like a monthly calendar, weeks and days are cross-tabulated with clickable events in cells. Any suggestions?

Thank you for your response in advance.

AttachmentSize
kd01 06-Apr-09 09.36.jpg130.52 KB
Login to post comments

Have you tried views?

aniruddhay - Mon, 2009-04-06 15:28

Hi,

from what I see you are simply making a table and entering the information manually. For the kind of layout you are looking for, you can use the views module to the best effect. Please correct me if I am assuming wrongly that you are not using views. With views you can pull in a variety of data ranging from fields, node information and user information. Plus you can have your pulled in information displayed in various ways.

If you need help with views, it can be confusing at first but amazingly simple once you get to know it, let me know. I am trying to put together a simple ppt to help users use the views module.

Hope thi shelped you.

Aniruddha


But how do we get those two

Himanshu's picture
Himanshu - Mon, 2009-04-06 16:50

But how do we get those two level headings through views.

    Reading and Watching

Chapter | PPT | Video
Outline |         | Link

<a href="http://www.iputech.com/" title="Connecting Indraprastha University >Connecting Indraprastha University | IPU Tech


Hi Himanshu,

aniruddhay - Mon, 2009-04-06 17:48

Hi Himanshu,

Let me check something and I will post an answer to your reply soon.

thanks,
Aniruddha


aniruddhay and Himanshu,

kding-gdo - Tue, 2009-04-07 03:11

aniruddhay and Himanshu, thanks for your responses. I do use view2. The content list on the left side is generated by view. I use taxonomy to define node type (PPT, video, reading, etc.) and a content field to define the nth lesson of a node. With such a use I do not see how view will work. I have tried. I may have to use taxonomy or field or even node types differently or look for a module to do so.


Still interested in "grouped headings"

hunter.richards - Tue, 2009-06-23 22:33

Hi all,

First of all, except for the "double" or "grouped" column headings, OP's attached table could definitely be made using Views and CCK.

However, I would love to have an answer to OP's more specific problem: that of grouping headings together under super-headings to make a table with many columns more readable. I consider myself pretty competent with Views, yet I have no idea how I would go about doing this! It's a shame there's no Views equivalent to "Fieldgroup" for viewing single CCK nodes (that I know of).

Thanks for any suggestions,
H


theme Views templates

scottrigby's picture
scottrigby - Wed, 2009-06-24 01:59

You can theme the Views table output.

Here's some old discussion about what you want (theme Views table using colspans etc):
'How to theme view module's "table view"?' http://drupal.org/node/87367

Here's updated info on how to do the same thing in Drupal 6:

  1. first you'll need to know how to build the html table you want ("Tables in HTML documents" - look for colspan & rowspan info):
    http://www.w3.org/TR/html4/struct/tables.html

  2. then how to translate your html table into drupal's theme table function ("Drupal API Reference: theme_table" - see how colspan is used in the example near the top):
    http://api.drupal.org/api/function/theme_table/6

  3. then you'll need to know how to theme the views templates ("Views online help: Theme information" - you'll want to use your theme_table structure to reformat the dynamic data output by the Views module):
    http://views-help.doc.logrus.com/help/views/analyze-theme

Unfortunately there isn't an easier way to do this AFAIK. Good luck!