Latest posts

Browse topics

How To Setup CKEDITOR For Drupal Website

In this tutorial you will learn how to setup a CKEditor for your Drupal website + how to enable a few very neat modules - like IMCE for Image upload, Spell checker and Word count.

Since the beginning (almost since) I created my blog (www.reinisfischer.com) I have been using TinyMCE text editor for creating and editing blog posts. But lately I have found that CKEditor might be somehow a bit better text editor for my blog. I'm not against TinyMCE, just CKEDITOR seems a bit better text editor.

What is CKEditor?

CKEditor is the far superior successor of FCKeditor. The editor has been rebranded and completely rewritten. It is now much faster (the code has been optimized), loads faster (the number of files has been reduced, so the browser will perform less HTTP requests) and developers friendly.

Why I like CKEditor?

I like it for it's many out of box features, you don't need to install a single additional library, just download CKEditor module, enable it, and fine tune it a little bit. All libraries are loaded from CDN.

The simplest way to have the editor running is to use CDN, to use it set: //cdn.ckeditor.com/4.4.3/full-all

How to install CKEditor for Drupal website

  • Download and install CKEditor to Drupal sites/all/modules folder and enable it from module page
  • Create a new text format (admin/config/content/formats/add) for example: CKEDITOR, assign it to authenticated user roles

Visit admin/config/content/ckeditor and under Profiles choose either Advanced or Full tab and enable CKEditor for text format you just created:

CKEDITOR PROFILES

CKEDITOR PROFILES

Expand Basic Setup tab and check your text format

Ckeditor basic setup

Ckeditor basic setup

Congratulations you have just enabled CKEditor text format for your Drupal website, next create new post, and change display to CKEDITOR text format

Switch to CKEDITOR text format

Switch to CKEDITOR text format

CKEditor WYSIWYG text editor

CKEditor WYSIWYG text editor

Optional - Enable IMCE to insert images into CKEditor text editor

If you are planing to insert images in your posts  - you should install IMCE module and under File Browser settings tab (admin/config/content/ckeditor/edit/Full) change File Browser type for Image Dialog Window to IMCE

CKEditor IMCE

CKEditor IMCE

Optional - Enable Spell checker for CKEditor text editor

Another neat feature you might want to enable is spell checker. Under Advanced Options tab (admin/config/content/ckeditor/edit/Full) check Yes under Spell checker

CKEditor spell checker

CKEditor spell checker 

Optional  - Display Word Count for CKEditor text editor

This is the feature I really enjoy - since I believe that the length of the post affects how Google ranks the post (the longer the better) - I'm always trying to write at least 500 word long posts (Read more: Writing minimum 500 words per day)

Under Editor Appearance tab (admin/config/content/ckeditor/edit/Full) scroll down to the Plugins section and enable Plugin to count symbols, symbols without blanks and words 

CKEditor count plugin

CKEditor count plugin

The Bottom Line

CKEditor text editor is a fantastic Drupal extension for your website. 

P.S. If you are considering a hosting for your Drupal website check out Bluehost, their shared hosting starts as low as $3.95/mo or read more about cheap Drupal hosting.

Responsive Learning Web App - sales.wilsonlearning.lv

Recently I was contacted by a long-term customer (Wilson Learning Baltics) with a request to build a responsive web learning application for their business needs. This was quite an easy task for me, in fact I have been built a similar web app for this customer some time ago already. I was provided with an example site on global learning portal, see it here CSP Mobile APP and asked to localize this app into Latvian. In fact all the localization task was already done and I was provided with one large .docx and .pdf file (.pdf just a mirror version) with all texts translated, so it was my turn to build this app from scratch and add content on it.

In short this web app teaches 4 very important steps in customer relationships - how to establish trust, how to identify needs, how to present your solution, and how to assure satisfaction, in case a user don't know were to start he/she is provided with a simple questionnaire form, answering on a few questions user can start exploring is there some ways he/she could improve his/her sales process.

To perform this task I took Drupal as content management system (Drupal is great for building web apps), created a custom Bootstrap responsive sub theme and after a couple of hours finished this task. The fun fact I built this app in my new rural country house.

Meet sales.wilsonlearning.lv - Responsive Web app to learn how to prepare for your next sales call

sales.wilsonlearning.lv desktop version

sales.wilsonlearning.lv desktop version

The recipe for this site was simple - Drupal 7 as content management system, Custom Responsive Bootstrap sub theme and a few Drupal modules. Most hard work on this web app is done by Drupal views and node reference modules.

What I like about web apps - it's a questionnaire function, and this web app is no expectation it features a very neat questionnaire form, just in case user don't know where to start. 

Quiz form on sales.wilsonlearning.lv

Quiz form on sales.wilsonlearning.lv

Answering on a few simple questions, trainee can see his/her existing progress on work with his/her existing customer

Result form on sales.wilsonlearning.lv

Result form on sales.wilsonlearning.lv

This questionnaire was built by using custom JavaScript code (no Drupal modules involved here)

Responsive design

Responsive version sales.wilsonlearning.lv

Responsive version sales.wilsonlearning.lv

By using Drupal and Bootstrap theme it took just a few additional CSS selectors to make this web app fully responsive

Reference from the client

I asked to the client, could he provide a simple reference on tasks I have performed and here is what I got:

We have been working with Reinis already from 2010, when he have built the first version of our webpage. The best advantages for us to work with Reinis are his responsibility, responsiveness, short terms and fair investments for the job well done. We are regularly receiving the advice and new ideas how to develop and improve our web presence. Recently we have developed the mobile versions of useful applications and have good ideas for further development, thanks to Reinis.

Jānis Straumēns

Partner

Wilson Learning Baltics Ltd.

Please feel free to contact me for your next learning application development! 

Hotel Dzintars Review in Jūrmala, Latvia

Dzintars hotel is located in Latvian beach resort city Jūrmala - very close to the nations capital city Riga (some 30 minutes drive).

The reason I chose this hotel is plain simple - my brother works as a concierge here (family ties) and this hotel is among cheapest available in Jūrmala (and by saying cheapest I mean - it's a value deal)

I first visited Dzintars hotel back in 2014 or 2015 and since then have stayed here several more times.

Hotel Dzintars in Jūrmala

Hotel Dzintars in Jūrmala

Guest can enjoy a free parking on site

Meal at Hotel Dzintars restaurant

Meal at Hotel Dzintars restaurant

A really tasty and affordable meal here 

Bike rental at hotel Dzintars

Bike rental at hotel Dzintars

I don't know about rental prices, we got a free ride (thanks to my bro) - but I believe you can enjoy a free ride in Jurmala city as well

Breakfast menu at Hotel Dzintars

Breakfast menu at Hotel Dzintars

Pine forest near hotel Dzintars

Pine forest near hotel Dzintars

Outdoor patio at hotel Dzintars

Outdoor patio at hotel Dzintars

We enjoyed our breakfast here

Mansard room at hotel Dzintars

Mansard room at hotel Dzintars

Flat screen TV at hotel Dzintars

Flat screen TV at hotel Dzintars

Mansard room at hotel Dzintars

Mansard room at hotel Dzintars

Now - we got a lovely mansard room with breakfasts included for 35 EUR - can I recommend this hotel - definitely, worth of every penny (Euro cent)

About Dzintars Hotel

The newly renovated Dzintars Hotel is located only a 10-minute walk from the beach and offers elegant rooms with free Wi-Fi and private bathroom facilities. The property was built in 1912 and includes free parking. Each room at Dzintars offers satellite TV and elegant interiors. The floors are heated and some rooms include air-conditioning. Breakfast can be enjoyed in Dzintars Restaurant, serving a wide variety of dishes throughout the day. There is also a bar. The reception provides a 24/7 service and guest can rent bicycles and scooters. Dzintars Hotel is situated 100 metres from the Dzintari Train Station. The airport is within a 15-minute drive and the hotel can arrange a shuttle service. Jūrmala is a great choice for travelers interested in beach, nature and clean air.

Book hotel Dzintars now!

St. John's Church in Saldus

Some time ago I visited a lovely town Saldus (located some 100km from capital Riga), one of the main sights here is a church - St. John's Church of Saldus. As usual I took my camera and made a few shots here.

The altarpiece at Saldus St. John's church

The altarpiece at Saldus St. John's church

Author of this altar painting is made by J. Dering (19th century). Read more: Churches in Saldus 

Saldus St. John church

Saldus St. John church

This church building is the oldest building of the town and the first stone made church in Saldus built in 1615, but re-designed by Wilhelm Neumann and rebuilt at the end of 19th century.

Marketplace near church

Marketplace near church

During my short visit here  - Saldus city festival were held

About Saldus St. John's Church

Saldus St.John's church, in Latvia, was officially dedicated on August 27, 1900, after a long history of use and centuries of reconstruction. The first wooden church was built in 1461. The second, also made of wood, was built in 1530 and then renovated in 1567. The masonry church was built between 1614-1615 and financed by Wilhelm Duke. The fifth church in Saldus was built in 1737 on the hill where the present church stands. It was reconstructed in 1825. In 1898 the old church was torn down. Architect Wilhelm Neumann designed the church. Construction took place from 1898 to 1899 and cost 19,700 rubles.The completed church was named in honor of St. John. (Wilhelm Neumann also designed the Latvian National Museum of Art and the Jaunsvente Manor.)

The church was reconstructed in 1938 for a sum of 15,000 lats. The artist Ansis Bērziņš led the renovation of the interior and furnishings. The retreating German army bombed the church tower in 1944. The roof was also damaged. A temporary wooden tower was built in 1945-1946. Demolition of the temporary tower began on June 13, 1981, and the construction of the new tower began ten days later. Saldus architect Edgars Krūmiņš designed the tower and V. Krivans made the rooster at the top of the spire. The renovated church was dedicated on August 1, 1982. The underground tombs were opened and researched during a renovation in 1995, when heated flooring was installed. The church facade was renovated in 2006.

How to Specify a Vary: Accept-Encoding header Nginx

The other day I visited tools.pingdom.com to test performance for my blog (the one you are currently reading) and I did fine I have a two bottlenecks:

I managed to handle query string issue for static resources and then I headed to find a solution for the Specify a Vary thing. Since it's not a Drupal related issue I did some search regarding Nginx and I soon found excellent solution on stackoverflow.com

How to Specify a Vary: Accept-Encoding header Nginx 

Inside the server { of the domain/subdomain that you want to set it, add

sudo nano /path/to/domain/sites-available/yourdomain.com

gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
gzip_vary on;

Save the file (CTRL-O and CTRL - X)  and restart Nginx (sudo /etc/init.d/nginx restart)

I managed to improve my performance score from 82 to 88 on tools.pingdom.com after this.