Groups within a table?

Groups within a table?

ministrypixelministrypixel Posts: 12Questions: 0Answers: 0
edited October 2011 in General
I have setup a sermon table that load the sermon series and sermons within that series. The structure should look like this:

SERIES 1
Message 1
Message 2

SERIES 2
Message 1
Message 2
Message 3

and so on....

Below is my code setup:
[code]




Subtitle
Passage
Date






SERIES TITLE





MESSAGE TITLE
SCRIPTURE
DATE



EMPTY SPACING







[/code]

The following is my setup:
[code]


$(document).ready(function() {
$('#sermons_all').dataTable( {
"bStateSave": false,
"aaSorting": [
[2,'desc']
],
"aoColumns": [
null,
null,
{ "sType": "date" }
]
} );
} );

[/code]

Since it is more of a complex setup, it seems to not want to keep series and messages together: http://compassbiblechurch.tryhifi.com/ministries/pastor-mike?show=all_sermons# This may not even be possible, but it's worth a shot. Thanks in advance for your help!

Replies

  • ministrypixelministrypixel Posts: 12Questions: 0Answers: 0
    Anyone know if this is possible? If so, please explain how. Thank you so much!
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    I don't remember the details, but someone did have either a grouping plug-in or some sample code to deal with groupings.

    have you seen this page?
    http://www.datatables.net/examples/advanced_init/row_grouping.html
This discussion has been closed.