Latest posts

Browse topics

How to Automatically Publish Future Posts in Drupal with Views Module

Drupal is a popular content management system that allows users to easily create and manage their websites. One of the features that Drupal offers is the ability to schedule posts for future publication.

This can be especially useful for bloggers and content creators who want to plan and publish their content in a systematic way. However, if you are using Drupal, you may find that scheduling posts can be a time-consuming process.

In this article, we will explain how you can use the Views module to automate the process of scheduling posts in Drupal.

One of the reasons why someone may want to schedule posts in advance is to plan their content publishing schedule. For example, if you write 10 articles in one night, you may want to have them published in the next 10 days. Scheduling posts in advance can also be useful if you are traveling or if you want to maintain a consistent blogging schedule.

However, scheduling posts manually can be a time-consuming task, especially if you have many articles to publish. This is why you may want to consider using the Views module to automate the process. The Views module is a powerful tool that allows you to create custom views and displays for your content. You can use Views to filter and sort your content based on various criteria, including date.

To schedule posts in Drupal using Views, you will need to have the Views module installed and enabled on your site. If you don't have the Views module installed, you can download it from the Drupal website. Once you have installed and enabled Views, you will need to create a blog page for your site using the Views module.

Once you have created a blog page using Views, you can add a filter to show only posts that have not yet been published. To do this, go to your Views settings, and add a filter for the post date. Under the operator, choose "Is less than or equal", and in the value field, enter "now". This will ensure that only posts with a publication date in the future will be displayed.

The solution to scheduling posts in Drupal using Views is simple and straightforward. By adding a filter for the post date, you can easily control which posts are displayed on your site. You can write your future posts and schedule them for publication, and they will remain hidden until the date of publication has arrived. This will save you time and allow you to plan your content publishing schedule more effectively.

In conclusion, if you are a blogger or content creator using Drupal, you may want to consider using the Views module to automate the process of scheduling posts. By adding a filter for the post date, you can easily control which posts are displayed on your site and ensure that your content is published consistently and on schedule. Whether you are planning your content publishing schedule, traveling, or simply want to maintain a consistent blogging schedule, scheduling posts in Drupal using Views is an effective and efficient solution.

Simplify Image Uploads on Your Drupal Site with Multiupload Modules

Historical Drupal 7 tutorial, originally published in October 2013. The wording has been edited for clarity while preserving the original Drupal 7 context.

Uploading images one at a time can become tedious when you have a large gallery to add to a Drupal site. In Drupal 7, the Multiupload Filefield Widget and Multiupload Imagefield Widget modules provide a way to select several files in a single operation.

The image widget extends the file widget, so both modules are needed for this image-upload workflow. Drupal’s core Image module must also be enabled.

A person browsing a collection of photographs on a laptop
Illustration: managing a collection of photographs.

Configure multiple image uploads in Drupal 7

  1. Download the Drupal 7 versions of Multiupload Filefield Widget and Multiupload Imagefield Widget.
  2. Extract the modules into your Drupal 7 contributed-modules directory, typically sites/all/modules, or the appropriate site-specific modules directory.
  3. Go to Modules at admin/modules and enable both modules and their required dependencies.
  4. Go to Structure → Content types, select the content type, and open Manage fields.
  5. For the image field, select the multiple-upload widget supplied by the module, labelled Multiple in the module documentation.
  6. Check the field’s Number of values setting. It must allow more than one image. Choose a suitable limit, or Unlimited if the field should not impose a fixed item limit.
  7. Save the configuration.

Upload several images at once

Create or edit content of that type and find the image field. Click the file-selection button, select several images in the file picker, and click Open. Upload the selected files if the widget presents a separate upload button, then complete the image details and save the content.

The widget changes how files are selected; it does not override the field’s allowed file types, file-size limits, or item limit. If uploads fail, check those settings as well as the server’s upload limits.

For a photo-heavy Drupal 7 site, this workflow reduces repetitive file selection and makes adding a gallery more convenient.

Another Drupal 7 tutorial from the same period: displaying taxonomy terms on a map.

Have a Drupal website or an image-management workflow you would like to discuss? Contact me with a brief description, and we can see whether there is a fit.

Tbilisoba 2013 in Photos: Food, Music and Old Tbilisi

In October 2013, I photographed Tbilisoba, Tbilisi’s city festival, with my old Sony DSC camera. Three years later, I revisited the photographs and processed them in Adobe Lightroom. These seven images capture the music, food and street life of that celebration.

This is a photo story from 2013. The original photographs and historical setting have been preserved; the text and captions have been edited for clarity.

Tbilisoba (Georgian: თბილისობა) celebrates Tbilisi’s history and culture. In these photographs, that celebration takes the form of outdoor performances, crowded Old Town streets, autumn produce and meals shared in the open air.

Music and street life in Old Tbilisi

Musicians playing brass instruments and drums in Rike Park during Tbilisoba 2013
Live music in Rike Park during Tbilisoba 2013.

Rike Park and the nearby Bridge of Peace are two places featured in my other Tbilisi articles. The park provided a setting for live music during this visit.

Festival crowds walking along a street lined with balconies in Old Tbilisi
Tbilisoba crowds in the streets of Old Tbilisi.

The photographs continue into the Old Town, where balconies, narrow streets and festival crowds form the backdrop to the celebration.

Performers in traditional Georgian dress beside the Abanotubani sulphur baths, with spectators on the domes
Performers beside the sulphur baths in Abanotubani, with spectators watching from the domes.

The brick domes belong to the sulphur-bath area of Abanotubani. Here, performers in traditional Georgian dress stand beside the baths while spectators watch from the domes above.

Autumn produce and Georgian food

An autumn harvest display with grapes, pumpkins and other produce at Tbilisoba 2013
An autumn harvest display at Tbilisoba 2013.

Food and harvest displays are another part of this photo story. Grapes, pumpkins and other produce bring the autumn setting into view.

A cook tending a steaming pot of khinkali at an outdoor festival food stall
Khinkali cooking in a large pot at an outdoor food stall.

A large pot of khinkali adds to the outdoor food scene. The steam, cooking stalls and busy tables make these photographs as much about eating together as about the festival performances.

Festival visitors eating at wooden tables beside a Tbilisi bus stop
An outdoor meal beside a bus stop during Tbilisoba 2013.

Even the space beside a bus stop became a place to sit down for a meal.

People sharing food at outdoor tables beside festival tents during Tbilisoba 2013
Busy outdoor tables and food stalls at Tbilisoba 2013.

These photographs preserve a small part of Tbilisoba in 2013: musicians in Rike Park, performers by the sulphur baths, and people sharing food in the streets of Tbilisi.

More Tbilisi stories

How to Display Drupal Taxonomy Terms on a Map

Historical Drupal 7 tutorial, originally published in October 2013. The wording has been edited for clarity while preserving the original Drupal 7 context.

Displaying taxonomy terms on a map can be useful for a Drupal site that organizes information by place. In this Drupal 7 setup, the Location and GMap modules work with Views to give taxonomy terms a geographic location and display them on a map.

A red pin marking a location on a printed street map
Illustration: organizing places geographically.

Modules used in this Drupal 7 setup

The original setup used Taxonomy, Location, GMap, Views, Location for Taxonomies, Location CCK Field, and Field UI. Enable the relevant modules and their dependencies before configuring the taxonomy vocabulary.

For background on the components, see the Location and GMap project pages. This article records the historical configuration; module labels and settings may vary between Drupal 7 releases.

Add location information to taxonomy terms

  1. Go to Structure → Taxonomy and select the vocabulary you want to use.
  2. Open Manage fields and add a location field using the available Location widget.
  3. Save the field settings, then edit the terms in that vocabulary and enter their location information. Make sure the terms you want to display have usable geographic coordinates.

Create the map with Views

  1. Go to Structure → Views and create a view based on taxonomy terms. Give it a descriptive name, such as Taxonomy Map.
  2. Limit the view to the vocabulary containing your location-enabled terms.
  3. Add the taxonomy term name and the location fields required by the GMap display.
  4. Choose the GMap display format and configure it to use the terms’ location data.
  5. Preview the results and save the view. Depending on the display you created, you can expose the map as a page or place it in a block.

If the map is empty, check that the view returns the expected terms and that those terms have location data. Adding a location field alone does not populate the coordinates for each term.

The result is a geographic view of your taxonomy terms. This can be useful for a travel blog, a directory of places, or another site where visitors need to explore information by location.

Another Drupal 7 workflow from the same period: uploading multiple images with Multiupload modules.

Have a Drupal website or a related project in mind? Contact me with a brief description, and we can see whether there is a fit.