01/03/2020 - 00:22

Ok, the problem is clear:

  • Your composer based Drupal site puts your code base to the /web folder
  • You are using a shared hosting which maps your primary domain to /public_html, and you can't change that

Now your users will have to browse your site as http://example.com/web . And it is not cool.

So how to serve your site from the subfolder /public_html/web but removing the /web suffix so it becomes transparent to users?

Here are the steps, as I learned from this thr...

10/28/2019 - 04:43

Lazy load images in Drupal with BLazy

Recently, we involved in a local project with Ecoparker.com. It is a directory of restaurants, cafes, entertainments, services, real properties ... in Ecopark Hanoi, Vietnam. This site is based on our best selling directory theme BizReview.

On this site, there is a page which lists all kindergartens around the area. It has 20 listings and will continue to grow. It is a very typical page built with Drupal views.

...

08/29/2017 - 04:36

In a recent Drupal 8 project, we dealed with a multilingual translation issue: we need to translate the usual "View more" text on the Content: Link to Content field in Views.

After doing some research, we found a workaround like this:

1. Instead of using Content: Link to content, let's add two fields: Content: Path and Global: Custom text.

Note: the Content: Path field provides us a corresponding URL alias for each language.

2. On Global: Custom text, please enter:

<a href="{{ path }}">{% trans %} View more {% endtrans %}</a>

3. Now the text "...

02/16/2017 - 12:03

An outstanding design with 7000+ sales, is now available in Drupal 8. Foundry is the one-stop theme for all of your website needs. Developed by an Elite Drupal author, this theme works with the latest version of Drupal 8 with tons of landing pages, theme options and built-in features.

ST Foundry, responsive Drupal 8 theme

Demonstration

See the demo here: Drupal 8 theme Foundry demo

Features

Here are Langeleik's feature:

  • Support latest Drupal Version, currently 8.2.x
  • Based on Bootstrap 3.x
  • 100+ Fully responsive pages
  • 20+ Unique niche concept home pages
  • 95+ Blocks, reusable
  • 13 color options
  • Perfect for multi-page and/or one-page sites
  • Allow any number of page layout possibilities
  • Over 1000 icons to c...
10/17/2016 - 10:10

ST Ukulele is now available in Themeforest. The theme shows up perfectly the brand image of a sport club. With the ecommerce feature, you can also raise club income by selling souvenirs for loyal fans.

Demonstration

See the demo here: Drupal theme ST Ukulele demo

ST Ukulele demo

Features

Here are Ukulele's feature:

  • Drupal 7.x
  • Adapts to computer and mobile devices
  • XHTML 1.0 Strict, CSS 2.0 Valid
  • 6 Regions
  • 6 Colors
  • Install profile - install website with just few clicks
  • Customize using Theme Settings
  • Professional Typography
  • SEO tools: autopath, meta tag, Google Analytics...
01/26/2016 - 05:23

You may already be familiar with Amazon S3, the most popular solution for cost effective storage services nowadays. You will need it when you are looking for:

  • Low cost storage: it happens to be my case, when I implemented a Drupal based web app for a local governmental authority. The app is used by branches from all provinces of the country, and they usually upload a large amount of data (documents, photos, scans etc ...) regularly. Using the app server's storage is too expensive. So I converted the Drupal file system to Amazon S3, leaving only the core and modules on the app server.
  • Fast loading: many bloggers have used S3 to store their photos, videos, audios and files, for better serving their readers. As customers are from all over the world, saving the multimedia content to S3 will let them access them much faster.
  • And many more benefits

In this tutorial, we will show you how to convert the Drupal 7 & 8 file system to Amazon S3 and sync all existing files to S3 Storage.

1. Preparation

You will need to run several client programs like drush and awscli. So if your site is on a shared hosting, you are not able to install and execute them. Pls download it to your local host and configure it there. After that you can upload to your shared hosting.

The techniques that I use in this tutorial are:

  • Amazon S3 ofcourse.
  • Drush:  command line shell and Unix scripting interface for Drupal, very convenient and useful.
  • AWSCLI: the Amazon Web service client tool, I use it to sync data to S3.
  • S3FS: the Drupal mod...
07/16/2015 - 04:41

When you share a post of your Drupal site via Facebook, it will automatically detect the images of your node for you to choose. But sometimes, it does not detect any images, or the detected images are not what you want. How can you deal with that?

An easy method is uploading the main image manually. That's fine, because you are the owner of the site, you know which ones to choose. However, if your readers share that piece of content and it has an ugly image, it does not look attracting at all.

In this tutorial, we show you how to set meta data for your Drupal nodes so the correct images will be chosen, when you share them via Facebook.

How Facebook detects images

According to this thread by bkaid on Stack Overflow, Facebook relies on these following open-graph m...

06/11/2015 - 22:32

Langeleik is a Drupal Commerce theme for Furniture stores that we released a couple of years ago. Now, it is a remake, version 2.0 with many cool features and facelifts.  Built with Drupal Commerce, Langeleik with its modern and elegant style may be the best choice for your luxury product websites such as selling furnitures.

ST Langeleik, responsive Drupal 7 theme

Theme summary

The contrast black and woody color background is to show off your elegent slideshow. The light grey background for other content product pages makes the layout clear to promote your luxury product photos. Overall, it brings a feeling of modern and luxury to your products.

Demonstration

See the demo here: Drupal theme ST Langeleik demo

Features

Here are Langeleik's feature:

  • Powe...