Tag Archives: Drupal

Drupal 8 – Create a Hello World custom module in Symfony framework

It’s time to get start with Drupal 8! The biggest change in this major update is that Drupal 8 is now with the Symfony PHP framework. So Drupal developer could work with those components such as ClassLoader, Routing and DependencyInjection which are provided by the Symfony framework.

Ok! Stop talking and start coding~ =D

The following example is a simplified version from the screencast recorded by Joe Shindelar @ Drupalize.Me.
Continue reading Drupal 8 – Create a Hello World custom module in Symfony framework

General Assembly – Drupal Workshop in Hong Kong

drupal-workshop

General Assembly Hong Kong and I will be giving a Drupal Workshop on 14th August 2013 at the Hive. Make your reservation at the GA website.

Drupal is an open source Content Management System (CMS) and in this 2 hours workshop, we will go through the basic concepts on working with Drupal including Content Type, Node, Block, Module and Theme.

This class is a stepping stone for you to get into the Drupal world. Whether you are web developer, an entrepenuer or a project manager, by understanding the Drupal habitat, you will be able to consider whether Drupal is fit for your career, your business or your project.

Hope to see you there~ =)

Venue address:
The Hive
21st Floor, The Phoenix Building
No.23 Luard Road
Wan Chai
Hong Kong

Google Map

Ubercart – Charge throught membership subscription on Drupal 7

I have never tried to build a Drupal application with paid membership. Both Ubercart and Drupal Commerce provide membership subscription feature. This example is a proof of concept on implementing paid membership on Ubercart.

1. Enable the Roles module in Ubercart.
ubercart-membership-1
Continue reading Ubercart – Charge throught membership subscription on Drupal 7

Drupal – Run Drush in Windows PowerShell

1. Install the Drush Windows Installer.
 

2. Open the DrushEnv.bat in a text editor. The default location should be C:\Program Files (x86)\Drush. You should see the ENV variable setting as follow.

@ECHO Command Prompt shell optimized for Drush 
@SET PATH=%PATH%;C:\ProgramData\Drush\
@SET PATH=%PATH%;C:\Program Files (x86)\Drush\GnuWin32\bin
@SET PATH=%PATH%;C:\Program Files (x86)\Drush\Php

Continue reading Drupal – Run Drush in Windows PowerShell

Drupal – Send mass email to node email field using Views Send module

The Views Send module integrated with Drupal Views such that you can select a group of email addresses with the Views filter and then send a batch of emails.

1. Download and enable the Views Send module module.

2. Create a new user view in Table format.

3. Add the User: E-mail as well as the Global: Send e-mail field.
Continue reading Drupal – Send mass email to node email field using Views Send module

Drupal – Ubercart and SMTP Authentication Support

Finally i could use the Go Daddy email account as relay using the SMTP Authentication Support module in Drupal. I can send the testing email but it doesn’t work for those email triggered by the Ubercart module. This is because Ubercart has it own mail system so you have to tweak the setting such that it use the SMTP module to send email. This can be done by the Mail System module.

1. Download and install the Mail System module.

2. Go to the setting page @ admin/config/system/mailsystem.

3. Update the Cart module class, Order module class and Store module class such that they all use the SmtpMailSystem rather than UbercartMailSystem.
Continue reading Drupal – Ubercart and SMTP Authentication Support

Go Daddy SMTP Server URL for email relay

Recently i need to setup the SMTP relay on a Drupal website. The client uses Go Daddy as the email service provider so i just setup a new email account for the SMTP authentication.

As from what i found in the Go Daddy Support

 

The SMTP server URL is

  • smtpout.secureserver.net

Continue reading Go Daddy SMTP Server URL for email relay

Drupal 7 – Export data using Views data export module with Drush command

Yesterday we talked about exporting data using the Views data export module.
Drupal 7 – Export view data CSV, XML, XLS by Views data export module

The module also provides a Drush command such that you can run the export command in the server which is convenient for backend integration.

The following command is stated in the project page.

  • drush views-data-export [view-name] [display-id] [output-file]

Continue reading Drupal 7 – Export data using Views data export module with Drush command