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?

6
  • CCK is not in Drupal 7. Also, if you have too much trouble with Calendar, you could try the FullCalendar module. Apr 22, 2011 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, 2011 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.
    – apaderno
    Apr 23, 2011 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. Apr 25, 2011 at 16:22
  • i did not downvote..i upvoted you..
    – ayush
    Apr 25, 2011 at 17:40

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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