Drupal Tutorials

Events listing system using Date, CCK and Views modules - Part 1

It is assumed you have good basic Drupal knowledge and already have the Date, CCK and Views modules installed on your site.

This tutorial was originally requested by droople.

In this tutorial we will be creating an events listing system using CCK, Date and views as opposed to using the events and calendar modules.

I’m going break this tutorial up into 3 parts so it’s manageable. In part 1 I’m going to check we have the right modules installed and then look at the CCK setup of our events system.

Module Installation

For this tutorial you’ve probably worked out we’re using the CCK, Date and Views modules, but these modules all contain other “sub” modules so i’ll quickly run through which ones you need and don’t need.

On your Modules page (http://yoursite.com?q=admin/build/modules) verify you have the following modules installed:
CCK
Content
Text

Date/Time
Date
Date API
Date Popup
Date Timezone

Views
Views
Views UI

If you got those modules installed you’re ready to begin.

CCK Setup

Ok the first thing we need to do is create a new content called “event”.
Step 1 – Create your content type

  1. Go to http://yoursite.com?q=admin/content/types/add
    (admin > Content management > Content Types > Add content type)
  2. In the add content form input the following:
    Name: Event
    Type: event (lowercase)
    Title field label: Event Name
    Body field label: Event Description
    The other fields can be adjusted to whatever preference you like.
  3. Click the “Save content type” button at the bottom, your new content type is now saved. You’re now ready to add fields to it.

Step 2 – Add new fields to your content type

  1. At your content type admin page (admin/content/types) click the edit link under “operation” for the event content type we just made.
    Then you click the “Add field” tab along the top.
  2. We are going to now add a start and an end date for our events, so:
    Start Date
    Name: Start Date
    Field Type: datestamp > Text Field with jquery pop-up calendar

    (If you don’t see a “Text Field with jquery pop-up calendar” option go to the modules page and make sure you have the “Date Popup” module install under Date/Time).

  3. On the next screen everything can stay as it is minus the following:
    Widget settings > Default value: Now
    Data settings > Required: True (check the box)

    Now repeat steps 1 to 3 exactly the same but change the Name (on the first form screen) to End Date rather than Start Date.

  4. Great! Our events now have a start and an end date, optionally you can now tweak the form order by going to http://yoursite.com?q=admin/content/types/event/fields and adjusting the weight of each form item

Step 3 – Add some events
Let test out our new event content type by adding some new events.
Go Create Content > Event and add 5-6 events.

Well done you’ve completed part 1 and CCK is all set up and ready to use!
Next up we’ll look at using Views to create an events list page.

Commenting on this Tutorial is closed.

Categories:

Comments (33)

droople's picture

Part 1,quiet straight forward.

Thank you Tom

I think this is one of the most important information for me,the laminate flooring in your shop is what i want to buy parquet flooring, provided you adopt the actions currently offered concerning hardwood flooring.

All food are eaten warm and at room temperature. Along with rice, there might be soup, a salad, a steamed dish, a stir-fry, a curry, some sauces and possibly a deep-fried dish. Gandhi Restaurant

Seascape Web Design's picture

Hello,
I am trying to set up an Events Calendar with Drupal 6.8 and the RC6 versions of Date and Calendar. Would you please provide a step by step recipe? I would really appreciate it.
I think the above tutorial is specifically written for Drupal 5, is that correct?

Yes, I find myself in the same position as Katy. I have checked, checked and checked, modules are installed and permissions upt o date, and I do not see a “Text Field with jquery pop-up calendar” on datestamp fields.

DrupalSN's picture

Hi,

Yes this is for Drupal5 (it was requested by Droople to be Drupal 5) but it should be a very similar process for Drupal6.
I’ll put the events calendar tutorial on the todo list :)

As for the pop-up calendar it’s part of the date module package for Drupal 5 (version 5.2), it’s a module called date pop-up, here’s the version i used http://drupal.org/node/342848.

Let me know how you get on, more than happy to help!! :)
Tom

Hi all. Thanks for this great post – I will be sure to check out your drupals more often.. Greetings
by chat

This is a really good read for me. Must agree that you are one of the coolest blogger I ever saw. Thanks for posting this useful information. This was just what I was on looking for. I’ll come back to this blog for sure! I bookmarked this blog a while ago because of the useful content and I am never being disappointed. Keep up the good work .Thanks
mortise machines

Thank you for the Module Installation tutorial…

Carpet Water Damage

miranta's picture

well , sometimes i try to understand all this.
Torrents

I am new into drupal and I am very fortunate that I chanced upon this site. I am also thankful for this valuable piece of information. Keep posting quality articles like this.
cellulean

This is a famous brand renowned very well concerning the devise industry. It is indeed individual of the forces to reckon with at what time it comes to real period devise boosting especially between the women folk all finished the humanity. The Cataloger is indeed a real collection of wonderful devise accessories that boost the devise make-up of many ladies concerning the humanity today.
642-185 | HP0-Y30 | 1Y0-A18 | HP0-S30 | 1Y0-A15 | 70-513 | 642-583 |

thanks you very good – nice site
شات الحبشات بنات مصردردشة مصريةدردشة الحب

very nice
thanks

The main idea of online shopping is not just in having a good looking website that could be listed in a lot of search engines or the art behind the site. It also is not only just about disseminating information, because it is also about building relationships and making money. Mostly, hp braindumps / icnd braindumps / iseb braindumps / jncia braindumps / juniper braindumps / mcdba braindumps / mcdst braindumps / mcitp braindumps organizations try to adopt techniques of online shopping without understanding these techniques and/or without a sound business model. Rather than supporting the organization’s culture and brand name, the website should satisfy consumer’s expectations.

The main idea of online shopping is not just in having a good looking website that could be listed in a lot of search engines or the art behind the site. It also is not only just about disseminating information, because it is also about building relationships and making money. Mostly, hp braindumps / icnd braindumps / iseb braindumps / jncia braindumps / juniper braindumps / mcdba braindumps / mcdst braindumps / mcitp braindumps organizations try to adopt techniques of online shopping without understanding these techniques and/or without a sound business model. Rather than supporting the organization’s culture and brand name, the website should satisfy consumer’s expectations.

I was a Wordpress user before when I discovered some glitches just last few weeks with it. And so I am now into php code igniter but it’s pretty hard for me to do hard code. But this new feature Drupal did a very good job and that’s why this is a very nice offer for techies like me.

I just wanted to draw your attention to the “I” of the module. It allows you to specify / me / in a link in the menu. The module will replace it with the UID. This means you can now direct their point of menu item in their view of the user and everything works without having to enter and modify templates, etc. graduate school personal statement

Get ideas for digital scales wholesale in our website. For a limited time, all new subscribers to the email newsletters will receive a free ebook on a popular white bandage dresses topic!

Same is the case with trendy looking injection molding. When these are China 4×4 accessories, the excitement just gets doubled. Most Hong Kong Company Formation are in fashion now. These are one of the favorite fashion accessories for men and women long time ago.

Thank you for another fantastic blog. Where else could I get this kind of information written in such an incite full way? I have a project that I am just now working on. law personal statement

I wanted to drop you a quick note to express my thanks as I have enjoyed the way you’ve structured your site which is very nice one and gives in depth information. I think it will be helpful for me as well. http://angrywhitey.com/

I am new into drupal and I am very fortunate that I chanced upon this site. I am also thankful for this valuable piece of information..!! Winnebago Hire

Now that was a really healthy dialogue right there. Gets your blood pumping really fast and strong. Thanks a lot for sharing this with us games puzzle

Gilet couramment giubbotto senza maniche Moncler sont de mode, le commerce des escogita en momento ce Ainsi que tous proporre manteau stile Moncler découvrir ce discours de. Actuellement, à l’intérieur des projets de Moncler, Moncler inclure une bonne quantité de fideles sostenitori à travers le monde. Pouvez vous vous des procacciatore Manteaux moncler femmes ont obtenu colorazione distincte, tout comm moncler outlet ONU trita apparaissent indivi, vos propres opzioni comandante de eux-Mêmes une sorte de giubbotto senza maniche Moncler. Une des Meilleures aspetto sieri, vous le savez déjà, ils auront la motivazione. Gr? Ce à la mise en commun, de la fourrure élégante possède changé dans directement manteau de forme moderne de haute technologie, rien de sa per determinate autres vêtements. Doudoune Moncler commettre ONU mois d’habitude froid au lieu de sa Manière pour la bonne raison que les agneaux. En ce momento, nous sommes en mesure de trouver d’achat est réellement Interessante monclers pris au dépourvu. Vous pourriez éventuellement seront certainement nous tous d’exprimer fille tout simplement commun, sieri Compliqué à fa? Su. Il est vraiment mauvaise! piumini moncler En réalité, vous fait dans pouvez easlily obtenir la décision meilleur choix, Vujacic. Pouvez vous vous exprimer, il est vraiment recevoir più froides en plus froid, en vogue manteau moncler certainement est difficile à trouver. Il peut être inapproprié! savez déjà que vous vous Moncler attrazione est la première, finalement jusqu‘à ce que pour un lungo momento. Dans le cas où vous avez une alternative più enrichissante, Moncler est la plus EFFICACE. Pouvez vous comme elle SI. Pas simplement dans le très chaud la stagione estivale, mais votre froids mois d’hiver, vous aurez peut-être sur élégant? Base di une quotidienne. En raison de Manteaux fait des femmes en cuir Moncler? habituellement sont? lun ma propre, mais il est fait généralement aujourd’hui. . . Moncler attrait visuel le lunghe d’une soluzione completa ferme versare cet été Précis, Garder ce mois d’hiver hivernal. Semplice, diretto, sans éclat, offrent une personne en particulier le sentimento, louable. L’hiver est fantastique réellement, aussi giacche moncler

Zum Beispiel, als ein Hotel, können Sie wählen, Moncler in jedem Disney Ferienwohnungen Aufenthalt in der Gegend, die billiger accommodations.Set bieten die Dauer der vacationThe Preis einer Pauschalreise hängt stark von der Moncler Jacken online Kids Branson Daunenjacke Blau Anzahl der Tagen nicht enthalten in dem Paket, das heißt mehr Urlaub höheren Preisen zu haben. Zum Beispiel, wenn Sie die richtige Tour aus den Universal Studios Pakete angeboten wählen möchten, müssen Sie auch entscheiden, ob Sie eine 3-Tages-, 4-Tages-oder sogar eine 5-tägige Pauschalreise in Anspruch nehmen möchten. Tatsächlich ist die Dauer der Reise eine der wichtigsten Faktoren, die Ihnen bei der Auswahl der richtigen Pauschalreise kann. Trotzdem, denken Sie daran, dass, obwohl mehr Urlaub mag attraktiver, einen Urlaub mit weniger Tagen in der Moncler damen Verpackung kann genauso unvergesslich wie lange es die richtige Kombination aus tollen Unterkunft und jede Menge Spaß Aktivitäten do.Check aus den Merkmalen der hat die packageBasically Pauschalreisen müssen Flugpreise (wenn nötig), Moncler Hotelzimmer, und die Route für den Urlaub. Eine große Pauschalreise ist eine, die andere Extra-Features neben den grundlegenden oben erwähnten Angeboten. Beispielsweise übergibt einige Universal Studios Pakete bieten Kombination von Disney World und Sea World, damit Sie und Ihre Familie, um weitere Orte in Ihrem Urlaub besuchen. Andere Pakete umfassen auch den freien Zugang zu Bars, Restaurants, Fitness-und Sportanlagen, Spa-Behandlungen, Moncler jackets und die like.Finally, vor der Buchung einer Reise, ob die Firma, die Sie zu tun haben ist ein professioneller und vertrauenswürdiger eins. Durch die Überprüfung der Website für Hotelkritiken und Sicherheitssiegel, können Sie sicher sein, dass Sie es mit einer legitimen company.William F. Gabriel Umgang werden gibt praktische Ratschläge für die Auswahl der besten Disney Reise. Für weitere Informationen über Universal Studios Pakete, bitte Disney Vacation Homes.

femmes Vestes Gris doudoune moncler femme Down ont une forme élégante. Cela aussi poss Esses poches zippées et a donc une doublure en laine cousue à l’extérieur. Sinon, choisissez une cire vérifiez Mac qui donne la forme classique de tranchées robe une touche moderne. Tout comme Moncler, Manteaux Moncler ont été au pouvoir depuis des décennies et ils ont toujours maintenu la popularité avec une variété de styles et de motifs. Ils gagnent le c?ur de chaque femme dans le monde entier. Bien s?r, si vous n‘êtes pas skier beaucoup plus mais qui veulent simplement passer autour du chalet de ski, avec certaines méthodes de protection peut être utilisé pour quelque chose de beaucoup sexier.Have-vous jamais été courirveste moncler chaud ou froid? La température du corps est assez différent pour chacun, et d‘être trop chaud peut être tout aussi inconfortable que d‘être trop froid. Beaucoup de vestes de ski ces jours-ci viennent avec une doublure en polaire qui peut être facilement enlevé. Bien que je ne sais pas ce qu’il écrit, je suis certain qu’il est perspicace, brillant et beau. Aujourd’hui, avec l’effort qui a fait de Moncler, Moncler a beaucoup de fidèles à travers le monde. Disponible partout dans le monde, de l’Asie grace à l’Europe, ils continuent d‘être la veste de choix pour beaucoup de gens autour du globe. Il semble têtue commandant quand il est conservé dans l’utilisation pendant une longue période. Les plus agés des vestes moncler obtenir le plus rude qu’ils regardent. Cependant, vous pouvez l’age que vous moncler vestes plus vite par vous-même. moncler pas cher Utilise le revêtement duveteux sur la face intérieure qui aide à maintenir la température du corps l’article normal.This est affiché par Susan

Innerhalb ’06, ein Mitglied der Alessandra Facchinettibecame ganzen Moncler Group.She Ranges RougeSeries erstellt Ihre eigenen moncler jacken outlet in ihrem Ansatz, die effektiv verdienten successful.During Normalerweise sind die bis kommenden zwei Jahren Facchinettidesigned Alessandra vier profitable Serie im Hinblick auf Ihre Frau Monclerapparel.Following links im Jahr 2009, Vallirequired beliebte Künstler Giambattista moncler daunenjacke mehr als das M?dchen Film director.The Position Weil Design für moderne Folge Giambattista Vallimade Ranges Rougeline was ideal ist daher Moncler Daunenjacken, berühmt zu sein für style.This Ihre individuellen Farben sowie offen reichlich Utilized TEND Stil sowie zusammen als Sportliche Aktivit?ten moncler jacken damen completely.These kenne zwei Entwickler haben gro?e Beitr?ge zur Weiterentwicklung der etablierten Unternehmen aus Moncler.They die Position von out-of-Türen sportliche Aktivit?ten auf den zahlreichen up-to-dateclothing Bezüglich Moncler.

Innerhalb ’06, ein Mitglied der Alessandra Facchinettibecame ganzen Moncler Group.She Ranges RougeSeries erstellt Ihre eigenen moncler jacken outlet in ihrem Ansatz, die effektiv verdienten successful.During Normalerweise sind die bis kommenden zwei Jahren Facchinettidesigned Alessandra vier profitable Serie im Hinblick auf Ihre Frau Monclerapparel.Following links im Jahr 2009, Vallirequired beliebte Künstler Giambattista moncler daunenjacke mehr als das M?dchen Film director.The Position Weil Design für moderne Folge Giambattista Vallimade Ranges Rougeline was ideal ist daher Moncler Daunenjacken, berühmt zu sein für style.This Ihre individuellen Farben sowie offen reichlich Utilized TEND Stil sowie zusammen als Sportliche Aktivit?ten moncler jacken damen completely.These kenne zwei Entwickler haben gro?e Beitr?ge zur Weiterentwicklung der etablierten Unternehmen aus Moncler.They die Position von out-of-Türen sportliche Aktivit?ten auf den zahlreichen up-to-dateclothing Bezüglich Moncler.

Hi this is Mark from Site explorer and I got a question guys, why is it that my website always prompt a message that my page cannot be loaded. I checked the connection and the server, it is all good. This is the first time I got a problem with drupal.

Thank you for this module. The module working perfectly as i wanted it to be.
Can we modify it as per our need?
Chicago fitness

Ray Tango's picture

Well think about it, how many people use their credit card to buy something? Almost every person you know, uses their credit card at least once or twice a week. If you don’t accept credit cards, think of all the money you are losing.

Ray Tango's picture

The Business Insurance Magazine recently released a list called ?The 2011 Largest Independent Safety Consultants? and Bureau Veritas welcomed the top spot with revenues that reached $ 43,452,760. Safety Resources was second largest with revenues of 15 million and Safety Management Group of Indiana Inc. rounded off the top three with 11 million. Business Insurance Info

Date of Issue and Status: Date manual is acknowledged as acceptable (mm/dd/yyyy) and whether manual is draft or approved. Also include version number.
essay writers