This is a little related to my earlier question, I'm using a hook_views_query_alter to only show results for the latest (last) value in a list field, and then also in that set only show the results with the latest (last) value in another list field. So, with a bunch of articles, I want to show the ones of the latest issue in the latest volume. I think I'll need these field values to use in my query alter, but I'm at a loss trying to get them, for example in $view->field["field_article_volume"]. I wonder now if I'm even going about this correctly, this seems like a common scenario so I'd hate to make it more complicated than it needs to be. Is there an way to take those field values and use them as arguments in my helper functions to then alter the condition value?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.