Closed (fixed)
Project:
Date
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2006 at 16:55 UTC
Updated:
19 Oct 2006 at 21:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
karens commentedI just committed something to the cvs version you might try. It adds a date browser plugin that works in combination with the date range argument. You create a view that uses the date range argument and give the argument an option of the period you want to page by (year, month, week, day, or hour), then select Date: Date Browser for your page type (instead of table or list). Then when you go to your view it will default to the current period that you selected and provide back/next links to the next and previous period. You may need to clear your cache to get it working.
That's not exactly what you asked, but maybe what you want???
Comment #2
tmp commentedHey Karen,
Thanks again for these new features.
Would it be possible to make something like the screenshot in attachment ? The pager would always be on top of the view and would alow easy scrolling by year, month or week, ... depending on the argument settings.
It's just a thought :-)
Comment #3
tmp commentedHey karen,
This is what I need for a date browser BUT in my case I need to display the games-nodes in a table view.
Cheers
Comment #4
karens commentedThe display is themeable. Look at the bottom of date_views.inc and you'll see a theme called theme_date_views_browser_full_view(). Copy that function to your template.php file in your theme and rename it to mytheme_browser_full_view(). Then where it says $display='views_view_teasers' change it to say 'views_view_table';
Comment #5
karens commentedI mean rename it to mytheme_views_browser_full_view(). (Replace 'date' with your theme name).
Comment #6
karens commentedI still got it wrong. I mean rename 'theme' with your theme name. :-)
I'm marking this as fixed, reopen if necessary.
Comment #7
tmp commentedHey Karen,
I pasted this piece of code in the template.php. This will display the date brower in table format.
Thanks
Comment #8
tmp commentedHey Karen,
When the date browser is opened, I would like to display to current week by default.
?games/@P1W doesn't seem to work with the datebrowser to display the current week.
Comment #9
karens commentedThe date browser displays the current week (or year or month or day or hour) when you have nothing in the argument. Any reason why you don't want to leave the argument blank?
Comment #10
tmp commentedHey Karen,
Leaving the argument blank doesn't seem to work. This displays all nodes.
Comment #11
karens commentedDo you have the Date:Date Browser type selected for the page view? If so, please export your view and paste it here. That ought to be working...
Comment #12
tmp commentedKaren,
The view is set to datebrowser.
This is the export:
Comment #13
karens commentedI was just about to tell you I couldn't replicate this when I finally got something set up that behaves this way. I'm working on it...
Comment #14
karens commentedI just made changes to both cvs and 4.7 version. I think that will fix the problems.
Comment #15
tmp commentedI had a quick look at it. It looks fine.
Comment #16
(not verified) commented