Prevent viewfield from rendering in search results
| Project: | Viewfield |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Is there a way to prevent the Viewfield from rendering in the "snippet" provided with the results of a search?
The search module renders a node with the parameters $teaser=FALSE, $page=FALSE and then post-processes the generated HTML to create a "snippet" which is displayed with the search results.
The problem I have is that I have a fairly complex view and some of the associated fields are rendered when the $page parameter to node_view is FALSE. I may be able to fix the issue by hacking the relevant modules at a lower level but it would be useful if I could control the behaviour at the Viewfield level (or even at the Content Types level??). The only options available seem to be teaser or full page?
Perhaps there should be a "snippet" option as well on Content Types->Display Fields??
