Hi,
I'm working on a calendar view to show employees' vacation. For that I setup 2 content types: -Employee: Name and Department (Term reference to 'Department' vocabulary) -Vacation: Date field with start and end dates and Employee (Node reference to Employee content type)
I got views to show the calendar with vacation time for the employees, but I want to colorcode them based on the department their in. So I setup the relationship to the Employee content type and added the Department field using that relationship.
Views recognised the term reference field and allows me to set colors for each vocabulary term. Everything looks ok, except the actual calendar view which doesn't show any colors at all. There is no "stripe" keyword in the html source.
To test I added a dummy term reference field to my Vacation content type itself to test the behaviour without a relationship and everything works as expected.
So it seems the colorcoding doesn't work on term reference fields via relationships. I could add the department reference field to my Vacation content type, but that would mean have the same reference in both the Employee and Vacation content types, which isn't something I'd like to have.
Has anyone come across this problem or better yet, solved it? Thanks in advance.
I'm running:
Drupal 7.14
Calendar 7.x-3.4+0-dev
Date 7.x-2.5+15-dev
Views 7.x-3.3+175-dev
Chaos tools 7.x-1.0+32-dev
Comments
Comment #1
johnvDoes this patch help you?
#1556676: No Taxonomy Stripes for terms attached to Entity type or via Relationship
Comment #2
aweizd CreditAttribution: aweizd commentedYes, that's the one :)
Comment #3
aweizd CreditAttribution: aweizd commentedAfter further inspection... no, this still doesn't fix it. Sorry for the confusion.
Comment #4
Neslee Canil Pinto