Hi,
It would be easier to explain the problem by describing what I have done:
- I have three related to each other content types: Site, Task and Expense - a Site links to many Tasks and each Task links to many Expenses. The Task content type has a field 'Site' to specify to which Site is the Task related, and the Expense content type has a field Task to specify which Task incurred the Expense.
- I have created a view 'Expenses', which lists all expenses for the respective Tasks and Sites which has an exposed filter by Site and Task. All works fine:
- Then in order to distinguish the Tasks (if they happen to have duplicate name for different Sites) when adding new Expense, I've created another view - without a page but with reference (following this screencast: http://vimeo.com/27726850). This works perfectly well when creating new Expense:
- However when I open the 'Expenses' view I see that the Task's exposed filter it totally messed up:
Does anybody knows how can I fix the broken exposed filter?
Thanks in advance,
Pimmy
Comment | File | Size | Author |
---|---|---|---|
vdrupalViewsReferencesProblem03.png | 18.26 KB | Pimmy | |
vdrupalViewsReferencesProblem02.png | 4.89 KB | Pimmy | |
drupalViewReferencesProblem_01.png | 8.53 KB | Pimmy |
Comments
Comment #1
Pimmy CreditAttribution: Pimmy commentedI have played quite a lot and I believe the problem is general and not specific to the particular use case. The root cause is the fact that whenever a View based on References is created based on a field, the exposed filters of other views for the same field take the generated value of the 'References View' instead of directly from the content filed. Therefore in the drop-down of the exposed filter you get values like this:
<a href="/?q=node/45">The Mall</a> -&gt; <a href="/?q=node/47">Partitioning</a>
instead of just
Partitioning
So far I could not find a way to workaround this problem. Please help.