Latest posts

Browse topics

Beata's Orange Juice Bar, Crete

It was on our third-day trip around Crete, when we discovered an interesting roadside cafeteria promising breathtaking views, just later, post-processing photos with the help of Google Maps I was able to track down coordinates and name for this place - Beata's Orange Juice Bar, Crete.

Indeed - views here was lovely, though the most interesting "tourist attraction" was a donkey. A kind owner suddenly got a donkey out of nowhere and here you go - fresh orange juice, donkey, and panoramic views. 

Outdoor deck with great views

Outdoor deck with great views

Could be cool on a cloudy day, walk in the clouds feeling, see my photography from walk in the clouds in Georgia: 5 Days In Georgia Itinerary List - Make Most Of Your Trip

Orange juice

Orange juice

Indeed, they serve orange juice here. What a surprise.

The Donkey

The Donkey

Indeed - great feature.

Back to the Gym - Get Under 99kg Beard Challenge

Getting fit is cool, getting heart rate normal is awesome. Visiting a gym can be really addictive. For the second time this year I'm taking beard growing challenge - not to shave it under I will get under 99 kilos. 

Let me explain, back at the start of 2017 I applied for a gym membership at Tbilisi's Champions Academy, my weight was 105 kg, I made a challenge to grow a beard until I will weight less than 100kg. I reached my goal in less than 2 months. My best result was 97.2 kg on March 23rd, 2017. Then starting April I took a pause from a gym for 6 months (obstacles, relocating to another country without access to the gym). I gained weight back. 

Tip: Losing weight is a lifetime experience, to stay sharp - access to the gym or a lot of physical activities is a must have.

Now I'm back, renewed my membership and had my first training session (cardio, dumbbells) - first session was hard, sure. I barely managed a 30-minute session on the treadmill - few sit-ups and that's all. 

Now my weight is 104kg - to reach my goal, to get under 99kg, it will ask me to loose 5kg weight. It should be achievable in a month or something. See: How I Lost 4.4 Pounds In 5 Days In a Gym

To make my journey more interesting - I won't shave my beard until I'll get there. 

What about you? Do you have some special rituals, while reaching your goals? Drop a comment - readers and I would love to hear.

Floating Block for Drupal 8

The Floating block is a nice helper module which allows you to keep HTML blocks, selected using jquery selectors in a fixed position on the page as you scroll. I've been using Floating block mostly for my personal blog to feature related content (you can see floating module while browsing this web page from a desktop computer.)

In fact, I stop using floating block module  a couple of years ago, but recently I was contacted by another Drupal webmaster, regarding my tutorial on Floating Block module for Drupal 7 site and taking a fresh look at this module, I understood - Floating block module helps UI by filling up sidebar, so it's never empty. 

When speaking about Floating block module for Drupal 8, there is not yet a stable release (as of writing this), but there is a dev version, which actually works out of the box.

Configure Floating Blocks for Drupal 8 website

As usual, let's start with download

  • Download and enable floating block module
  • Configure floating block from admin/config/user-interface/floating-block

In my example, I'm looking to make one block from the right sidebar to float.

Using inspector tool (Chrome CTRL+Shitf+I) find div (#) id element you are looking to make floating, in my case: #block-views-block-tours-block-2

To float the left sidebar within a container in your theme us selectors, for bootstrap: container=.main-container

Here is complete configuration for floating block configuration

#block-views-block-tours-block-2|container=.main-container

Feel free to drop a comment if you need any help.

Views Infinite Scroll / Load more with Ajax for Drupal 8

As you might guess from the title already, in today's Drupal tutorial I will write about how to configure infinite scroll/load more button for Drupal 8 website. The best - both behaviors can be achieved using just one module - Views Infinite Scroll

Check out following tutorials for Drupal 7: Drupal masonry front page, Views lode more pager with Ajax for Drupal

And again, as in the previous tutorials, you can find a live preview on Tourgeorgia.eu

  • Download and enable Views Infinite Scroll module
  • Visit views page, you would like to attach infinite scroll or load more function
  • Change Pager: Infinite scroll, I will use 10 items to load on default

Pager settings for Infinite scroll

Pager settings for Infinite scroll

Now in order to make it work with Ajax, let's turn on Ajax:

  • Under Advanced - > Other: Use AJAX: Yes

Almost there, but here are few things we should fine tune here

Settings for Infinite Scroll

Under Pager (use pager) click on Infinite Scroll Options and check next to the Automatically load Content

Automatically load Content

Automatically load Content

Settings for Load more 

Repeat the same steps as for infinite scroll, just make sure to uncheck Automatically load Content

Here you go - a really easy way to setup both infinite scroll or load more pager with Ajax.

Load more button with Ajax for Drupal 8 website

Load more button with Ajax for Drupal 8 website

Optionally 

CSS code to make load more button 100% width (for Bootstrap powered template}

.pager li > a, .pager li > span {
    display: inline-block;
    padding: 5px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0px;
    width: 100%;
}

CSS bug wit custom views-row classes (first, last) in Drupal 8

Seems there is a bug with Drupal 8 views, when trying to render classes for views-row. There exist some workarounds, but right I find them secondary and I'm ready to wait until it will be solved with next views updates.

How To Enable Custom Google Fonts For Drupal 8 Website

There are several options how to enable custom fonts for Drupal 8 website, in this article I will stick with one of the easiest - using a custom module - @font-your-face

As usual, for this Drupal tutorial I will use a real-time scenario: For Tourgeorgia.eu website I'm using custom Premium theme adapted for Drupal 8, at one stage I noticed that example theme looks better than customized, and then I realized we are missing few fonts, which must be loaded manually.

As, said there are several options to handle this, but this time I decided to use a module. Again, there are two scenarios possible, either you are building Drupal theme from scratch and writing custom .css style or you are using a readily built theme. As in this case, I'm using the ready built theme, I won't touch .css part, as code already have been written.

  • Download and enable @font-your-face module
  • As for this case I'm using Google Fonts, enable Google Fonts module
  • Go to admin/appearance/font and enable custom fonts you need
  • Flush cache and enjoy result

Custom fonts enabled

Custom fonts enabled