We have an internal use eCommerce site where the primary form of navigation is via search. Each product has an "expiration" date. This date is a field on the content type. Creating a view that only displays products that haven't expired for a certain user role is relativity easy.
What I am needing to do is have expired products not show up for the authenticated user role when they search for an item. When a "Store Administrator" role is searching I would like the results to include the expired items.
Another alternative that I would be OK with is to have the Expiration date to change format when it is expired, and still let everyone see all the search results like they do now. Something like a much larger font and a gaudy red/orange color. I am assuming that would be some sort of conditional CSS, and I don't even know where to begin on that one.
Any help would be appreciated.
Comments
---
Not sure how comfortable you are php-wise, but you can create a custom template for search results.
Not that comfortable. I know
Not that comfortable. I know enough to understand what you are suggesting, but not enough to make it happen. If I can't come up with another solution I may have to find someone to do that for me. I am kind of surprised this isn't a more common feature. It would think that there would be many sites where you would want to filter search results based on all sorts of criteria.