View with custom filter
I'll try to explain my problem as complete as possible, and sorry for my bad english ^^:
Well, we have divided up news into:
- General news
- Department -> ICT
|----> Team |---> 'Analysis and programming'
|---> 'Support'
So every Department has several teams, for example ICT has the teams 'Analysis and programming' and 'Support'.
Now, on the home page it should be possible to view the general news and the department and team news for the logged on user. The logged on user is coupled to Active Directory via the LDAP Integration module. Via the username we also know the department and team for that user, this information is pulled from a MSSQL 2000 database.
What I'm trying to do with the Views module is viewing the news with
- taxonomy News=General AND
- taxonomy Department=department of logged on user (pulled down via PHP-code) AND
- taxonomy Team=team of logged on user (pulled down via PHP-code)
The problem is that I can't insert PHP-code in a view. I tried with the Views PHP Filter module, but that didn't seem to work.
Is this a possible solution: http://drupal.org/node/180924 ? Where do I put this code?
I hope my explanation is clear!
Thanks in advance!

Hmmm
Hi, this is not a complete answer, but I would suggest you use blocks. The code you mentioned goes in a block.
Using a combination on blocks, views and PHP for block visability you should be able to achieve your goal.
Thanks for the fast
Thanks for the fast answer!
If I understand you right, I have to make a block for every department and for every team? By PHP I set the visibility?
I think there are about fifty teams, still growing. I think this isn't really a 'dynamic' solution or am I misunderstanding your answer?
OK
I misunderstood your requests, If you are looking for a dynamic solution, I would think you need to investigate arguements for views.
This is something that I am not too familiar with, there are many clever contributors in this forum, perhaps one of them can offer you better assisstance/direction than I can.
Good luck!
oops, how many ss's in "assistance"
Working!
I now use arguments for views with some arguments handling code. This works perfect!
Thank you for your help!
I'm glad you solved your
I'm glad you solved your problem.
If I may -- what didn't work with Views PHP Filter? I'd like to keep track.
Provident Data Services
Returned all content
It returned all content, instead of displaying only content of the content type 'News'. I don't know why, but it just didn't work.