Don't know which component to set this for...
I have played a bit with the theming, the previous dev version did it correct, but the latest screws up the output, the data cells are sorted in the wrong order:
Without copying the two tpl's to my theme it looks like this, which is correct:
Col A Col B
Prod A 150 200
Prod B 280 360
Prod C - 450
Prod D 1000 1000
When just copying the templates and rename the matrix template to my matrix field name it looks like this:
Col A Col B
Prod A - -
Prod B 1,000 1,000
Prod C - 450
Prod D 280 360
Prod E 150 200
As you can see with the template in my theme it views every row, but both Col A and B are in reversed order.
Comments
Comment #1
aaron1234nz commentedThat's weird.
I cannot see any reason why this should happen, but I have come across similar behaviour before, but could never replicate it myself. I've attached a theme template which will output some debug information. Can you run this then post the output back in this issue please.
Comment #2
tsvenson commentedHere you go:
Comment #3
aaron1234nz commentedThat's very strange, the output is as it should be.
Comment #4
tsvenson commentedYes, strange. I have checked the HTML output and it is the same there.
I assume it is using the same tpl.php in the module folder when I don't override it?
Just asking since I noticed that the hard coded red style in the tpl.php only showed up when copying it to my theme when it was working before.
Comment #5
aaron1234nz commentedThe tpl.php file is only used when it is overridden (its the way cck works). Otherwise it uses this code:
Comment #6
tsvenson commentedJust downloaded and tested the latest dev version. Tried both with and without the ksort and it did nothing to change the output.
Both problems; empty rows showing and it is sorted in wrong order remains with or without ksort.
Comment #7
aaron1234nz commentedim still very confused by this, but i'll continue to try and isolate the cause of the problem
Comment #8
tsvenson commentedThanks mate, glad your not giving up. I can tell I have learned quite a bit about Drupal modules trying to figure out what is going on here... I'll do what I can from my side so we hopefully are able to find the problem soon.
Comment #9
aaron1234nz commentedI've had another idea about this. check the latest version and see if it works better. I can't reproduce this issue on my system which makes it really hard to debug.
Comment #10
tsvenson commentedAaron, I am very happy to report that the latest dev finally nailed it. The field is now viewed correct, both regards the sort order and it works perfectly with hide empty cells on and off.
Thanks for hanging in there mate, fantastic work.