[support] how to show a view in a table format

Warren Vail warren at vailtech.net
Thu Jan 16 18:37:00 UTC 2014


Not sure what the best answer would be here, in DB terms, you are trying to
establish a many to many match, a course can be active during many
semesters and a semester can have many courses in it.  In the form you
showed me the student selects (or it's selected for him, based on the
upcoming semester) a series of 5 semesters, and courses appearing in any of
those 5 semesters are shown.  That was the reason I had suggested
flattening one of the dimensions of the match bo coding each of the 5
semesters as a separate column, and you are correct, you do wind up with
redundant columns for as long as you keep the hidden columns, but
implementing it in Drupal is simpler IMO.  for example; flattening the
joins results in a simple test to see if any columns are checked (of the
current 5 semesters) to decide whether who list the course, not listing
courses that are not checked in any of the current 5 semester columns.
Right or wrong that is the approach I would take.


On Wed, Jan 15, 2014 at 6:34 PM, vibanu <vibanu at gmail.com> wrote:

>
> We added semester as taxtonomy term with values  Spring 2013, Fall
> 2013 and Spring 2014 for now to test this. Created a view of table format.
> We were thinking of showing a filter of semester for students to pick from
> and show one semester at a time. However, this also did not work because I
> could only see the courses that were offered. I was unable to list all
> courses with offered YES or NO next to it.
>
> On adding new field each semester, we will end up with so many redundant
> fields in this so called 'courses' content type. Is this a suggested
> practice?
>
> On Wed, Jan 15, 2014 at 2:09 PM, Warren Vail <warren at vailtech.net> wrote:
>
>> It's easy to get tangled up in the details with Drupal, Datatables has a
>> good interface with views, and hiding old columns, while not automatic, is
>> simple.  I would add a single checkbox for each semester as a separate
>> column and hide the old ones from displaying in the view, adding new
>> columns each year or semester.  Displaying the checkbox (checked or not)
>> would do the trick.  You might like the search box with datatables, it
>> produces a very responsive filter that works with each character you type,
>> and your table is not so large that response issues will show up.  You will
>> need to play with CSS for styling, but nothing major as long as you don't
>> mind manually hiding columns from time to time.
>>
>>
>> On Tue, Jan 14, 2014 at 10:59 AM, vibanu <vibanu at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> We would like to replicate the following page into DRUPAL
>>>
>>> http://www.cs.stonybrook.edu/students/undergrad/CSEcourses.html
>>>
>>> We have content type of courses. We are struggling to find a solution on
>>> how or the best way to show the 4 semesters.
>>>
>>> Any ideas are appreciated.
>>>
>>> Thanks in advance.
>>>
>>> --
>>> [ Drupal support list | http://lists.drupal.org/ ]
>>>
>>
>>
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>>
>
>
>
> On Tue, Jan 14, 2014 at 1:59 PM, vibanu <vibanu at gmail.com> wrote:
>
>> Hi All,
>>
>> We would like to replicate the following page into DRUPAL
>>
>> http://www.cs.stonybrook.edu/students/undergrad/CSEcourses.html
>>
>> We have content type of courses. We are struggling to find a solution on
>> how or the best way to show the 4 semesters.
>>
>> Any ideas are appreciated.
>>
>> Thanks in advance.
>>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20140116/c7701e03/attachment.html 


More information about the support mailing list