2

I have a content type ("events") that has a date field inside it ("field_e_date"); I want to show on a page some nodes of this content type in calendar format.

Assuming I create a view of style calendar type, I want to display on http://example.com/user/uid 5 events added by this user.

Which exact arguments do I need to pass to the view?

  • CCK is not in Drupal 7. Also, if you have too much trouble with Calendar, you could try the FullCalendar module. – tim.plunkett Apr 22 '11 at 19:00
  • hey..since you are the maintainer of the module can you help me that using your module how would the above thing be done..i just need to know what arguments and other configuration are required? – ayush Apr 22 '11 at 19:06
  • I would not create a view that is viewed at user/<uid> because it would override the user profile page. A view cannot be attached to a page generated from another module; you need Panels, and create a user profile panels that include a calendar view. – kiamlaluno Apr 23 '11 at 18:42
  • @kiamlaluno, that is why in my answer, I suggested creating a block. Also, not sure why my answer was downvoted, since I was explicitly asked for help. – tim.plunkett Apr 25 '11 at 16:22
  • i did not downvote..i upvoted you.. – ayush Apr 25 '11 at 17:40
4

Download and install FullCalendar. Create a new block view with the Format: FullCalendar, and the Style: FullCalendar (Fields).

Add the date field you want to display, set the pager to only display 5 events. Set the Contextual Filter (argument) to User: ID, provide a default value of "User ID from URL".

Save the view, and place the block on the user page. Should work fine.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.