Yoyoyo Drupalsqueezes (forgive my cheesiness),

I'm trying to create a 'help desk' type of system without hacking the Drupal core or creating a new module. Here are the requirements:

1) Members can post a ticket that only they (and users with roles that have the necessary permissions) can view.
2) Users with the proper permissions can post comments in response to these tickets that only the original author and users with the proper permissions can view.
3) A table that displays the user's unique support ticket information, with the following info:

Date Opened (date they first posted the ticket, Subject (subject they put for the messages), Read (whether they viewed the last reply or not), Replies (# of comments), Last Reply By (name of the author of the last comment and when it was posted), View Ticket (link to the the ticket that this row applies to)

Now, I have already created the ticket node that only the poster can view, but I need help with a few things.

1) Comments. How do I allow comments on this node type? I want the original author and users with the required permissions to be able to reply to this node type.
2) Styling. Is there a way that I can style this node type to look the way I want it to WITHOUT affecting the other node types? Is there a way that I can style the comments with just this node type? I want to add an author pane kind of like on the Advanced Forum module that is different from the one I use on my forums.
3) As for the table, can I make this with views? I'm fairly new to using views, so I just wanted to know if this was possible before diving into this project.

I've tried the Case tracker module, but I'm not skilled enough to get it to work the way I want it to and there aren't any other help desk type modules for Drupal 5.x.

Even if you can only answer one of these questions, it would be very helpful.

Thanks in advance,
Tiuya

Comments

Tiuya’s picture

I progressed a bit on my own. I dealt with my first question on comments. I also made the table, although it's a little different.

Date Opened | Subject | Entries | Last Entry By | Date of Last Entry |View Ticket

I do want to change it a little bit. I want to combine the "Date of Last Entry" and "Last Entry By" fields into one and add a 'read' field, so that it looks like this:

Date Opened | Subject | Read | Entries | Last Entry By | View Ticket

But, unfortunately, I don't know how to do that.

Also, to style this, would I just need to make a ticket.tpl.php file? And to style the comments, I would just change the comment.tpl.php file, correct?

Thanks in advance,
Tiuya

michelle’s picture

You can configure the table style in views and it lets you pick what column each field goes in. You can put two fields in the same column that way.

node-ticket.tpl.php would be the template file for the node of type "ticket". Make sure you have a node.tpl.php in your theme as well or it won't pick it up.

Michelle