Calendar doesn't display nodes without a date Field in the View
Guardian - June 11, 2009 - 16:46
| Project: | Calendar |
| Version: | 6.x-2.1 |
| Component: | Documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hello,
I have installed the calendar module version 6.x-2.1
I created a content type Calendar Item which i want to display on my calendar.
The content of type Calendar Item needs to get displayed on the day of the FROM datetime field that has been filled in.
Unfortunatly he does not display anything at all :(
You can find a screenshot of my views config here:
http://img8.imageshack.us/i/naamloosetz.jpg
Any help would be fantastic!
Thanks in advance
Grtz
Guardian
| Attachment | Size |
|---|---|
| naamloos.JPG | 56.36 KB |

#1
Have a look at the attached settings for my site - NaFoF.It does pretty much what your asking for.
If you need more help; let me know.
Richard
#2
#3
Hi richard,
My settings are exactly the same as yours.
No change unfortunatly
Thanks for helping out so far though
#4
Hi
Can you send a screenshot of your calendar page settings (on the left).
I am no expert on Calendar, but I managed to get it working, so lets have a look at your settings.
Rich
#5
Thanks a lot :-)
Hereby my screenshot
#6
ok,
I think you need the node date time start in the field list.
You can hide the event date from within the settings of the field item.
Give that a try... send back another screenshot if it doesn't work. Especially send screenshots of the fields and arguament settings. there are quite a few pages of them!
Rich
#7
Nice!
You where right!
It worked like a charm.
What is the difference between arguments and fields then?
I alwasy thought that you needed the arguments to select ur content...
Thanks a lot!
#8
Yes, that is true, sort of.
Karen could answer this better than I, but I think it has something to do with the calendar grid display and themeing and placing stuff in the right place.
The arguements help determine the query to get your nodes, and the fields are used by the theme to display the nodes. If the date is not in fields, the theme engine does not know where (on the calendar) to put the nodes.
I could be completely wrong, though. Suffice to say, you need your date field in the fields list.
#9
OH MY GOD THANK YOU! I was struggling with this exact same problem yesterday; upgrading to dev, flushing caches, etc. Views and Date all seemed to be working correctly as the query was returning all the correct nodes and displaying them if I set the View to Unformatted (or any other) style, but not with the Calendar style. I don't want to display the date field of the event in the calendar view because that's the purpose of the calendar. So I didn't have the date field in the Fields list. But if the Calendar style depends upon that field, I'll use "exclude from display". I suggest this Field dependency gets added into some documentation somewhere.
#10
I, too, suggest this Field dependency gets added into some documentation somewhere. I have lost a lot of time to find this.
#11
Especially as the docs currently say:
-- http://drupal.org/node/262064
This is either a bug in the code or in the docs.
#12
Yes, the documentation at http://drupal.org/node/262064 is wrong.
The date field must be added to the 'Fields' section of the view for it to work properly.
I would love to help out and edit that documentation page, but I am not sure how or if I have the right permissions....
#13
Anyone logged in can edit docs, but I would wait for the maintainer to say whether the docs or the code are in need of fixing.
#14
That is what I thought too, but I am logged in and I cannot figure out how to edit... am I missing something (see screenshot)
I remember KarenS saying that she reverted back to requiring the date field be to the views 'Fields' list because doing it automatically behind the scenes was causing some other problems.
See #389294: The argument date field must also be added to View Fields or Calendar does not work #25 & #27 for details.
So, I would feel comfortable changing the docs... Karen cannot do everything alone, and I am glad to help.
I just can't figure out how to change the docs....
#15
My screenshot... how do I edit the docs from here?
#16
Strange -- last I knew was any logged in user could edit.
I've checked the input format.
Maybe ask in the drupal docs IRC channel?