Monday 12 January 2009

Making a calendar of upcoming events in drupal


** Minor modification of ( http://drupal.org/node/326061 ) ** Thanks to
fhsm.

Install below mentioned modules under /sites/default/modules

  • CCK
  • Views
  • Calendar
  • Date
Step 1:

Go to Administer › Content management › Content types > add content type

The following settings are largely a matter of site needs and personal preference:
Under “Submission form settings”
Title = “Event”
Body = “Details”

Under “Work flow settings”
Decide to best fit your site. It is worth considering unchecking “Promoted to front page” if you expect to have numerous small events posted.

Under “Comment settings”
Make decisions which are appropriate for your site.

Save your new event content type.

Step 2:

From the content type screen (Administer › Content management) select manage fields next to your new content type.

Add a new field

Label = “Event Date and Time”
Field name = “event_datetime”
Type = “Datetime”
Widget type = “text field with custom input format”

Save your newly created event date/time field.


Step 3:

Create your first event
Create content > Group Event
Fill out the form for your event and save it.


Step 4:

Configure your calendar view

Administer > Site building > Views

This is where the hurt started for me 6 hours ago...

Enable the Default Node view: calendar (Calendar)
Clone the default view

View name = “calendar”
View description = “Calendar of group events”

Nextshould take you to the views edit screen

Down the right side you'll see all the different types of calendar (page, block etc) just work with the default view to start (it should be where you are by default).

In the Arguments panel
Click Date: Date (node.changed)
Near the bottom of the page under Date field(s):

uncheck = Node: Update date
check Content: Event Date and Time (field_event_datetime value)

Click Update

This set the start time of your event instead of the node update time as the argument for the view.

Click Add ... for Fields, and select the following:

Content: Event Date and Time (field_event_datetime value) Default
Content: Event Date and Time (field_event_datetime value2) Default

(remove) the default item "Node: Published"

On the Filters panel click the “+” logo to add a new filter
Check = Node: Type
Click add
On the following screen
Leave operator = “Is one of” and check = Events to limit your calendar to only the event content type.

Click Update

On the Sort criteria click the “+” to add a new criteria

Check = Content: Event Date and Time (field_event_datetime value)

click Add

Save it all by clicking Save


























3 comments:

Anonymous said...

Ηeу thеrе! ӏ ϳust wanted to ask if you evеr hаve any iѕѕueѕ with hacκerѕ?
My laѕt blog (ωordpress) ωas hacked and I еnded up losing а
few months оf hard ωorκ due
tο no data backuρ. Do you have anу ѕolutіons to prеvent haсkers?



mу web-sіte ... raspberry ketone

Anonymous said...

After I initіally commented I ѕeem to haѵe clickеd the -Notify me when new commеnts aгe adԁeԁ- checkbox and nоw each time
a comment is added I recieve four emаils ωith the same comment.
There has to bе a means you aгe
able to rеmоve mе from that serviсe?

Тhank уou!

my web-site ... national debt relief review

Anonymous said...

I think this іѕ аmong the mοst vіtаl infогmаtion fоr me.
And i аm glaԁ гeadіng your агticle.
But ωanna remark οn some general things, The websitе stylе is perfect, the articlеs is really
niсe : D. Gоod ϳоb, cheeгs

Feel frеe to surf tο my weblog tens units for sale