I have created the view. It displays all comments from a certain time period. So I need filter created date and between option, isn’t it?
But also I need to get these MIN and MAX options from node: MIN – created node time and MAX – node`s filed “to_date”.
So, How can I pass these parameters to view? Is here some solution?
Edit:
Case: I should create contest module(contest for most popular comments).
Process: Admin creates a node of type Contest. There he must specify contest “To date” and add the description. So in order to determine contest winners, I have created view, that must sort all comments by total views and filter by range date(node created and “To date” field) from node on which page view is displaying.
I need to display this view under node: I do it in this way:
$page['content']['winners'] = array('#markup' => views_embed_view('contest_winners_one', 'block'));
But how to change view filter for every view instance?