Ok deh dari pada kbanyakan omong mending langsung aja kita mulai belajar menampilkan Calendar pada Drupal
Untuk dapat menampilkan Calendar di Drupal anda harus tersedia module :
- Drupal 5.2 or later
- CCK 5.x-1.4 or later
- Views 5.x-1.5 or later
- Date 5.x-1.4 or later
- Calendar 5.x-1.4 or later
Jika folder modules tidak ada maka buat terlebih dahulu, karena smua tambahan module yang akan dipake di Drupal smua akan diletakkan pada folder tersebut, lalu kembali ke
Administer > Site Building > Modules dan aktfkan (enable) :
- Content
- Date (under CCK)
- Date API (under Other)
- Calendar
- Views
- Views UI
- Name=Performance (atau beri nama sesuka kamu)
- Type=performance
- Description = apapun yang kamu mau (hanya untuk penjelasan tentang Content Type)
- Simpan Content Type
Kemudian Edit lagi content type dan kmudian pilih Add field
- Name = Time
- Field Type = Date / Selected list (or Date / Textfield with javascript pop-up calendar - if you have jstools enabled)
- Click "Create Field" and you'll be taken to second form
- Widget = Selected List (or Textfield with javascript pop-up calendar - if you have jstools enabled)(not sure why you have to select this twice)
- Label = Time
- Help Text = apapun yang mau kamu tulis
- Data settings:
Required: checked
Multiple Values: not checked
Granularity: Year,Month,Day,Hour, Minute (but not second) selected
To Date: Optional
Kemudian Create content > Performance
- Title = Check your calendar
- From Date = This Friday at 3:00pm
- To Date = blank
- Body = Hope I'm doing something fun this weekend
- Click Submit
Selanjutnya Administer › Site building > Views dan kmudian akan terlihat Calendar View
Click Add..
- The info under Basic Information, Page, and Block biarkan tetap pada defaultnya.
- Under Fields delete the Node: Updated Time
- Then under Add Field, select Date:Time and click Add Field
- Next to Time Field, Label can be blank, Handler needs to be Do Not Group Multiple Values
- Arguments can all be left alone
- Under Filters ... Add Filter, select Node: Type and click Add Filter
- Operator = Is one of. Value = Performance
- Exposed Filters can be left alone
- Under Sort Criteria, delete Node: Updated Time, and under Add Criteria, select Date: Time (field_time) and click Add Criteria button. Leave the Order Ascending
Selesai sudah and lihat Calendar telah berhasil nongol dihalaman Drupal kamu kalo ada yang gagal dan blum berhasil silahkan dicoba lagi or baca tutorial aslinya di alamat http://drupal.org/node/133341
2 comments:
Makasih Ilmunya..Sebelumnya saya mo minta ijin kapan2 pingin belajar drupal sama sampeyan lewat chat...insyaallah nanti secepatnya saya chat duluan ke YM sampeyan !!!
makasih be4.. ^_^
Terima kasih kembali, thanks for see my blog
Post a Comment