In this chapter we will get a calendar up and running on our demo site. We will cover the necessary modules, how to install them, as well as basic site configurations. We'll also show how simple it is to get a calendar on your site using a views template, and then give a tour of some calendar features.
Additional resources
In this starting chapter, Karen is going to set up some basic things we'll need to start building calendars. We'll enable the modules we need, including Date and Views, and take care of some core configuration for our dates. Then we'll use Date Tools (which comes packaged with the Date module) to quickly create an Event content type with a date field, and use Devel to generate a bunch of dummy content so we can see how things are shaping up as we start building. If you would like to see more detail about creating Date fields you can review the Dates with Drupal 7 series.
Additional resources
In this series, we give you step-by-step tutorials to get a calendar on your website.
We’ll create a field that will help you get data into your calendar, go over all the proper modules you need to install, and introduce you to a new way of getting your calendar going with a template. Then we’ll configure some blocks, add them to our website to display a mini calendar and upcoming events, and bring taxonomy in to get some organization inside your calendar. We’ll customize the look and feel of the calendar and get involved in using repeating dates or multiple dates.
By the end of this series, you will become a calendar guru.
Additional resources
Calendars with Drupal 7
CourseThe Learn Drupal Ladder
CourseToday we have a new series that we're very excited about! Back in March we talked about a new community initiative called Learn Drupal, and the great plan they have to get more people contributing back to core by creating a ladder of lessons. I've personally started to have some meetups for this here in Copenhagen, and I made some time to create videos to go with the lessons.
In this first step of the Learn Drupal Ladder we will install Drupal on our computer. This follows the instructions to Install Drupal locally on learndrupal.org. We start by getting and installing the Dev Desktop, which is an all-in-one web server which comes with Drupal 7. We then install our own Drupal 8 site in Dev Desktop.
If you do not wish to use Dev Desktop as your local web server, we have videos for three other web servers, based on operating system:
- Installing WampServer (for Windows)
- Installing MAMP web server (for Mac)
- Installing a web server on Ubuntu
Additional resources
More information on Development Environments
In this series we introduce the Drupal Ladder project, and walk through the lessons in the Drupal Ladder.
In this video we'll be looking at some background on this project, and then we'll be looking at how you can actually get involved and progress to becoming a contributor yourself.
The Drupal Ladder Project was a community initiative that started in 2011. The purpose of the project was to get more people contributing to Drupal Core, by teaching people the skills that they need, exposing them to the tools that they need to use within the Drupal Community, and teaching people not just Drupal best practices in terms of code, but also how to actually interact and work with the community.
Additional resources
Release Day: Finishing up Dates
Blog postThis Wednesday we are wrapping up our Dates with Drupal 7 series. We take a look at some more ways of using dates with the Views module, by using Views to create a summary listing and creating a display of our content grouped by date. The last video in this series introduces the Context module and shows you how to use this with Date context to display one of two blocks, depending on the date for a given piece of content. Enjoy!
In this final video Kyle will show us how to use the Date context module, which comes as a part of the Date project, along with the Context module to display some blocks based on the date associated with the content we are viewing. We create two blocks, one for dates in the future, and another for dates in the past. We then configure Context to display the correct block based on the content's date.
in this chapter Kyle shows you how to create a view of content which shows the content grouped by the year in which it was created. We'll be making a table view that displays the title and post date, but is also grouped such that there will be one table displayed per year.
In this video Kyle will show you how to use views to create a summary list block which lists the months and years for our content, and shows how many posts were created in each month/year. We'll be using Views contextual filters and the core date created field.
For today's releases we are continuing the Dates with Drupal 7 series by playing around more with using dates with Views, as well as turning our attention to having multiple dates in one field and setting up repeating dates on your content. We present:
In this chapter we go one step further with multiple-value date fields, and use the Date Repeat API and Field to create automatically repeating dates. We cover all of the different ways you can configure a repeating date and explain what is going on behind the scenes.
In this chapter Karen introduces you to using the date field with multiple values. She looks at how to set up a content type with multiple dates, tweak the way they are displayed, and also how to use a multiple-value date in a view.
In this chapter we will walk through using dates as contextual filters, also known as arguments in Drupal-speak. We will create a block which shows us content per month, based on pur date field, and allow users to page through the months.
In this chapter we continue working with Date filters in Views and look at using the created and updated core date fields.
We've got a new series out today: Dates with Drupal 7! We may not be able to help you find that special someone, but we can help you navigate the world of dates and time in Drupal. This new series will cover all aspects of working with dates, from basic core configuration, to creating content types using the Date module, and seeing how this all works with Views.
Dates with Drupal 7
CourseIn this chapter Michelle will walk us through using our new date field with Views to create a listing of our content showing the dates associated with them. We'll be listing our date content, with an exposed filter for selecting the date range, and we look at how to set relative dates to fill in the form's default values.
You'll need to the Views and Chaos Tools modules for this chapter. If you would like a refresher on using Views, you can watch our Intro to Views for Drupal 7 series.
Note: With an update in Date module (7.x-2.x), you can now change the format of the date in the exposed filter. It's not a completely smooth process, but here are some instructions for how to get this working.
1. Ensure that the following modules and their dependencies are enabled: Date, Date Views, Date Popup, Views UI.
2. Add a date field to a content type. Collect only the date (not the time -- uncheck hours, minutes, seconds). Create some content with a date.
3. Create a new view of fields filtered by the content type in which you added a date field.
4. Update the format as described in the video to table and add a label to the Title field.
5. Add the date field to fields. Choose the "short" format to display.
6. Add the date field to filters. Select "day" as granularity.
7. Expose the date filter. Configure it as described in the video.
8. The exposed date filter should show a long format in the text field, which is not what we want.
9. In a new tab, go to Configuration > Regional and Language > Date and time > Types
10. For the Date Type of "Short", select the 2nd option (10/21/2014 - 12:29). Save configuration.
11. Go back to your view and refresh the page. The date popup format should now be in the short format. It should now respect whatever format you choose for "Short" in the Date and Type settings.