Hi! First of all let me congratulate you on your module. I've been using it for a while and find it really nice with the most important features implemented.

I'm currently working on a heavily themed site and wanted to theme the list of tickets you see in the /support/[client] and /support/user/[uid] pages. Unfortunately you use theme_table() to output the ticket listings. Although there is a lot you can do with CSS to theme the listing there are some things which you just can't do, for example, change the order of the columns or simply remove a column. To be able to correct this I've patched the module so that it implements hook_theme() and the developer can provide a template if the default doesn't suite him.

I'll attach the patch in the next comment so that I have an issue number.

Comments

cesarmiquel’s picture

StatusFileSize
new1.88 KB

Here's the patch. To test it you will need to clear Drupal's cache. In your theme directory you can create a file called support-page.tpl.php and/or support-page-user.tpl.php. You can put something like this in it to see that its working:

<h1>Testing theming function</h1>
<pre>
<?php

  print_r($header);
  print_r($rows);
?>
</pre>
cesarmiquel’s picture

StatusFileSize
new35.52 KB

Just so I can show off what you can do with this I'm including a screenshot from the site I'm working on ;-).

jeremy’s picture

Status: Active » Fixed

Looks great, thanks!

I think your patch was generated against an older version of the support module as it didn't apply cleanly. I fixed the rejects and applied the resulting patch.

Your patch is applied here:
http://drupal.org/cvs?commit=298886

And the necessary update to the install file to flush the cache:
http://drupal.org/cvs?commit=298888

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.