Active
Project:
Views 'Group-By' Pack
Version:
5.x-1.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 May 2008 at 20:09 UTC
Updated:
26 Jul 2008 at 02:18 UTC
hey there,
I want to create a monthly archive, either as a list or as a drop-down menu. is it possible with this module? and if yes, can I get some "for dummies" approach on doing so?
you see, I'm quite new to Drupal and I've downloaded it to avoid learning more PHP.... so if you could break it down nicely I'd appreciate it. this module has no documentation whatosoever.
thanks in advance.
Comments
Comment #1
drew reece commentedYou could try using the Bonus: monthly archive module, I believe it is in the views bonus pack. It will be easier than trying to explain the group-by pack. There is also a view you can import called The simple monthly archive > http://drupal.org/node/52037
Which ever one you choose you will need to get familiar with views, so try the views handbook and the countless views tutorials on the web, (Google is you friend).
Drew
Comment #2
el_reverend commentedHello,
this is my question as well (and google brings me here). I'd like to do this with view or any other simple method.
Thanks
Comment #3
drew reece commentedHave you tried all of the above suggestions el_reverend?
Both will do what you need. There is also the 'Views Group by' pack (search the module downloads) that allows content types with date fields to be grouped by month etc. I think you can group by creation or modification date too.
Are you using views, cck and date field? Have you used views at all?
Not sure I can make it any easier without knowing what you have done or tried (other than using google).
Comment #4
el_reverend commentedDrew,
thanks and yes you are right. What have I tried? CCK and views. I have since then added a few modules.
Isn't each node created with a date? What would be the reason to add a date field (I'm assuming a cck addition)?
Should I not be able to select all nodes (or types) sort by date and display by custom date (month)? Somehow that does not work. I am wondering if I am missing soemthing. Logically that is.
Going to play around w/ views again.
Comment #5
drew reece commentedEl_reverend,
The reason for adding a cck date field would be if the type needed a date other than a published or modified date, like events etc.
This is mostly from memory, since I don't have time to look it up on my sites at the moment. It is also for Drupal 5.7 not 6, you may find it easier to use 5.7 if you are trying this with 6. You will also need to have the following modules enabled.
CCK (I think)
Views
Views Theme Wizard
Views UI
Bonus: monthly archive
Date << Only if you want a date in addition to the created/modified date
If you enable the bonus monthly archive module you get an 'archive view' in the views listing page, click 'add' to clone this view and alter the type filter in the view to get just the type you need. Pay attention to any arguments and argument handling code, it's this that makes it work & getting to grips with it make you grok views.
Did you try doing an import of the view mentioned in post 1? I think it is set up to use the 'node published' date field. Once it is imported (via the views import/export wizard). Have a look at the sort options. It may also use 'argument handling code' too, so that the page can show different listings based on the url. I settled for the bonus monthly archive for my project.
The third way is to create the view using the 'group by pack' module. This is actually a 'View type' so it needs to be selected in the page or block options.
Add a filter for node published and the content type. You will also need to specify some date fields to sort on or the view will complain when you submit it.
The read me in the group by pack module folder has some info about what it needs to work.
FWIW
Here is an example of a group by pack view, it's just the top nodes, not the bottom list. The bottom list is just from filtering by a date range (Daterange module) and applying sorting to the date fields.
The group by pack will always want to return full nodes, but you can alter it's styling by using a views-node-list-content-type.tpl. Have you used the theme wizard to theme particular views, again this is a major part of using views.
Try the views handbook too, another perspective always helps with views :)
Hope this helps,
Drew
Comment #6
el_reverend commentedHey Drew,
thanks for the follow-up, I have gotten something to work, but I will re-work this when I have the time. Currently it works. FYI I did try the import of the post mention in comment #1 but it would not let me import.
So thank for your help and I'll report back later.