Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-rc1
Component:
node data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2011 at 10:23 UTC
Updated:
24 Oct 2011 at 11:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
bojanz commentedCreate a view.
Add a filter: "Node: post date", set it to "greater than" : "-1 day". This will show all items created in the last 24h (Views doesn't really understand "today").
You can also filter by node type, to show just articles and not all nodes.
Enable grouping (Use Grouping: Yes, in the first column under the heading "Advanced Settings")
Add the field Node: nid. When asked for "Group type", select "Count".
In the next screen, enable "Rewrite the output of this field" and in the textbox bellow enter "[nid] articles published today". You have "Replacement patterns" bellow that textbox giving you all the patterns you can use.
That should be it. Let me know if you need additional help.
Comment #2
htalwala commentedThanks a lot for that... I will implement it soon and let you know how it goes.
Comment #3
leoklein commentedAh 'count'! Helpful to me as well.
Comment #5
GlitchFreak commentedExcuse my ignorance, but where do I enable grouping in my view? There is no 'advanced settings ' column.
Comment #6
GlitchFreak commentedComment #7
bojanz commentedSee image.
Comment #8
GlitchFreak commentedAh, its D7.
Any idea on how to achieve this in D6?
Comment #9
bojanz commentedThe same. You just need Views 3 (not Views 2). Use the dev version, not that year old alpha3.
Comment #10
yeniv commentedI'm using views 7.x-3.0-rc1 and having trouble getting it to work.
I've followed all the steps, although in my views it's called 'use aggregation' instead of 'grouping' (i assumed this was the same thing?)
I'm getting a result for each of my content belonging to the content type 'item'. They don't seem to be grouping together and the count = 1 for all of them.
I've only been drupaling for a week. Sorry for the noobness. Please help.
Comment #11
bojanz commentedUpdate Views to 7.x-3.x-dev. Less bugs.
Yes.
I can't see the generated query (should be in the preview area if you enabled it in the "Advanced" tab of admin/structure/views), so you'll have to provide it, and give me a view export so that I can help you further.
Comment #12
yeniv commented@bojanz thanks for the speedy reply!
I have 6 content types which fall under the category of 'item'. As you can see, i get an identical result for each content type.
Comment #13
bojanz commentedAs I said:
You're not giving me any info.
Comment #14
yeniv commentedI apologise. Here is the generated query:
Comment #15
yeniv commentedHey bojanz, any idea where i've gone wrong? Thanks :)
Comment #16
yeniv commentedI figured it out. I didn't have my SORT CRITERIA 'Aggregation settings' set to COUNT.