Latest posts

Browse topics

Georgia's Parliament: Moving Back to Tbilisi?

In 2012, the Parliament of Georgia was relocated from Tbilisi to Kutaisi by then-president Mikheil Saakashvili.

The move was meant to give a boost to the city of Kutaisi. However, after the Parliament elections in 2012, which were won by the Georgian Dream coalition, plans were made to move the Parliament back to Tbilisi due to communication issues with other government institutions and high travel expenses.

As an impartial observer, I have always seen the potential benefits of moving the Parliament to Kutaisi. The city has also gained a new Parliament building and an international airport, which seemed like positive developments.

The Georgian Parliament building now is located in Tbilisi, the capital city of Georgia. It was previously located in Kutaisi, but was relocated back to Tbilisi after the 2012 Parliament elections.

Drupal 7: How to Show a Custom Image When No Image is Provided

In Drupal 7, managing images can be quite challenging, especially when the default image is not provided. The platform provides an option to display a default image under "manage fields," but this approach can be limiting as the same default image will be displayed wherever the image field is used.

To overcome this limitation, you can follow these steps:

  1. Disable the default image option under the image field settings.
  2. Create a view that contains the image and filter the results you want to display.
  3. Under the image settings, open the "No result behavior" section and add the path to your custom image.

With these steps, you can have complete control over the image display, and the custom default image will only be shown when no images have been added to the image field.

 

  1. Another solution to display a custom default image is to use conditional statements in your theme’s template file. If you have a custom theme, you can add the following code to the template file where the image field is displayed:

{% if image_field is empty %} <img src="path/to/your/default/image.jpg" alt="Default Image"> {% else %} {{ image_field }} {% endif %}

This code will check if the image field is empty and if it is, it will display the custom default image you specified. If there is an image present, it will display that instead.

In Drupal 8, the process is similar, but with some differences. You can follow these steps to display a custom default image in Drupal 8:

  1. Create a view containing image field and filter the results you would like to display.
  2. Go to the view display settings and under the Format section, click on Settings next to the Image field.
  3. Under Image style, choose the style you want to use for the images.
  4. Under No results behavior, choose the path to your custom default image.

With these steps, you can have complete control over the display of default images in your Drupal website.

In conclusion, there are several ways to display a custom default image in Drupal, whether it be through the Views module, or through the use of conditional statements in your theme’s template file. With a custom default image, you can ensure that your website always looks polished and professional, even if an image is not provided.

Autumn in Borjomi

Borjomi altogether with Samtskhe - Javakheti region are among my Top destinations in Republic of Georgia. I have spent here countless days and nights. One of the best times to head here definitely is Summer, when temperature in nations capital Tbilisi rises above +40 Celsius, a lazy rest on the rocks in Borjomula river is like a safe haven. See Borjomi trip.

You can explore Borjomi either doing rafting on Mtkvari river (See: Rafting in Georgia - Khertvisi - Aspindza - Borjomi) or just by heading here by local transport called - marshrutka. See Tbilisi - Borjomi Transfer by Marshrutka (Minibus). 

Borjomi is a paradise for hikers, there are many cool hiking routes available in Borjomi National park.

Borjomi is great for photography as well and Fall is one of the best times to head here for photography, in this article I have submitted some historical photos from my travels to Borjomi from Autumn 2013 (October 11).

Reconstruction works in Borjomi

Reconstruction works in Borjomi

Bridge in Borjomi

Bridge in Borjomi

Construction works in Borjomi

Construction works in Borjomi

​Borjomi Mineral Water Park

Borjomi Mineral Water Park

Borjomi mineral park is located in town on Borjomi, some 120 km from nations capital Tbilisi, is a lovely place to enjoy a lazy day, preferable for slow walking and enjoying beautiful aroma coming from pine cons.You can read my review about this park here: Borjomi Mineral Water Park in Georgia

Legendary Borjomi cable car

Legendary Borjomi cable car

One of the most interesting attractions in Georgian resort town of Borjomi is a cable car leaving from Mineral Water Park and heading uphill offering lovely and scenery views of Mineral Water park. Sometimes it's just enough to take that ride here to enjoy those scenery and beautiful views of Borjomi. See details here: Borjomi Cable Car (Aerial Tram)

Ferris wheel in Borjomi

Ferris wheel in Borjomi

​Borjomi spring

Borjomi spring

Visitors can take a free Borjomi mineral water at this spring

Spectacular views to the mountains

Spectacular views to the mountains

View towards Borjomi

View towards Borjomi

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.