I have been playing around with this for two days without success. I have a newsletter set up using Simplenews and have a view inserted into the body using Insert View. What I haven't been able to figure out how to do is to properly set up the arguments in the view and provide them to Insert View that establishes a date range of to such that each time I submit the newsletter, I give it a new set of dates to determine the articles that are included in the newsletter.
It seems like the insert view tag ought to look something like [view:name_of_view==20080101,20080115]
But how can the arguments be configured to use these values as a filter against the creation date range?
I have views date range filter installed and can use that to select the range of creation dates, but I can't use the insert view tag to pass the values to the filter ... or can I. In the URL I would reference it as filter0[date1]=01012008&filter0[date2]=01152008. But I can't see how to pass these arguments to the filter via the Insert View tag.
Any ideas what I need to do here?
Thanks in advance.
Comments
Comment #1
Anonymous (not verified) commentedI may be wrong but think you missed how the module works
http://drupal.org/node/85771
'You then create your view with the Views module and define an argument on Taxonomy Term ID (or Taxonomy Term name).'
Comment #2
mlsamuelson commentedI haven't played around with the Views Date Range Filter, but I think your confusion is coming from the fact that Views Date Range Filter provides a Views "filter" that's to be defined within the view, rather than being defined as an argument that would need to be defined in an Insert View tag.
mlsamuelson
Comment #3
Anonymous (not verified) commentedI actually have a news section on my website and all i do is sort the news by creation date decending in views, and then set Insert view to display 'x' nodes. i.e. the latest 50.
Is there a reason you need to put the dates in as arguments? As this to me would seem like you may be creating a lot of work for yourself in the long term
Comment #4
jarea commentedThanks to everyone for replying to this post. I have an email newsletter that is driven by an embedded view. I wanted to set it up so that if I was just publishing today, I would put in today's date in the to and from arguments. Alternatively, if I wanted to publish three days worth of articles, I could enter the start and stop dates. I think the first reply about arguments being tied to taxonomy values is likely correct. I have tested that method of using arguments and it works very well. Based on this I have restructured the way that I assemble articles for the newsletter to not be dependent on the date ranges.
Thanks again.
Changing status to closed.