Blog

This hook is used most often.

Tags:
code, hook, Drupal 8, hook_form_alter



At first you should add your library via custom module or theme 1. Create custom_module.libraries.yml file in your module folder
2. Put js or css in your module folder
3. Edit custom_module.libraries.yml file and add name of the library and path to your css or js
Tags:
code, hook, Drupal 8, hook_page_attachments



You can deny or allow access for some users based on user id or user role or another conditions via custom module

Tags:
Drupal 8, code, hook



You can modify view before rendering

Tags:
Drupal 8, hook, code, hook_views_pre_render



I'm using Debian GNU/Linux 8 (jessie) - Drupal Virtual Machine from bitnami. It's easy way to install server with drupal on your localhost. VirtualBox + Drupal virtual machine.

Linux version

Use next command:

cat /etc/*-release

Linux version command

Most important command -

Server restart
Tags:
linux 8



If you use hosting or server with Cpanel it is easy to do. Cron setting-up is very important for drupal.

Open your Cpanel and do search by "cron" keyword:



Click on the "Cron Jobs" icon. You will see cron configuration page. At the middle of the page you will see the "Add new cron job" form. 




Tags:
Cpanel, drupal 7, Drupal 8, cron



Add cron job via cpanel
wget -q -O - -t 1 http://websitesdevelop.com/cron.php?cron_key=iHurtr2QKdghgfKTrcfuvTzQxhglgUuQsMXe6OwfQ &> /dev/null

Cpanel cron job drupal 7

 

setting.php

setting.php placed in sites/default folder, it's main config file of drupal

Tags:
drupal 7, code



Enable debug mode via settings.php
Tags:
Drupal 8, code



PHP

Drupal 8 works on any web server with a PHP (7.1 Recommended). PHP memory requirements can vary significantly depending on the modules in use on your site. Minimum required memory size is 64MB (Usually 128 MB - 256 MB)

php 7.1 is recommended for drupal 8

Tags:
Drupal 8, Basic



Anyone involved in the online marketing scene is well aware of the importance of building a good relationship with visiting customers and turning them into leads. But what technique does one apply to increase their conversion rate by a considerable margin in the least amount of time?
 
The answer is simple- increase the amount of landing pages on your company's website.
 

WHAT IS A LANDING PAGE?
 
A landing page for your website means having a page that harbors no other distraction and has one and only one goal set in sight: conversion. A landing page contains a lead form which allows you to capture a visitor’s information and convert them into leads, increasing your site’s performance in boosting your ROI.
 

Tags:



There is no argument over the fact the Drupal has been revolutionizing the online management of content for a large number of users. If you are looking for an open-source platform for web development, it just doesn’t get any better than Drupal. With the latest release of its version 8, a few major improvements have been introduced which are surely going to make it even easier for the loyal users. It won’t be wrong to claim that the benefits offered by Drupal 8 are far and wide. Let us accentuate a few of such benefits in order to let you have a better idea.

 

Reasons To Choose Drupal 8:

1.     With Drupal 8, the mobile responsiveness has been taken to a whole new level. Not only the themes that are built-into the platform are mobile friendly, but the administration pages act the same way as well.

Tags:
Drupal 8



Buy drupal templates - Charged responsive drupal theme Expressa

The theme from Themeforest.com Expressa is oriented for internet stores. The price was 58$ at the moment of the article writing.


Buy drupal templates - Responsive drupal theme Expressa

Also the themу fits for blog or for the corporative website.

 

Advantages:

Tags:



Let us presume that you don`t want to order website from programmer and you would like to install Drupal yourself and to set it up. This is a great idea! It is better to start with choosing the hosting.  Drupal hosting requirments.

I recommend to order the hosting optimized for Drupal. My choice is  A2Hosting for english language sites and IT Patrol for russian language websites.

After you bought the hosting, you need to get the domain to let people visit the site by typing the domain in the browser. Sometimes hoster offers top or second  level domain name for free ( you can get such information at  the hoster website or you can contact the Support).

Tags:



1. Admin Menu - essential navigation module in  admin area. It allows to clear the cash in one click or to launch cron being at any page of the site.




2. Module Filter -is used for easy and fast navigation in modules list at your website, especially if there are a lot of modules installed. It allows to find the needed modules easily with the help  of search field and to filter them.




3. Devel - allows to view  call functions stack during the debugging, the list of database queries and their runtime, it enambles to identify longtime running queries and the module generates them, that can cause slow site loading. 

Tags:



Disk space
A minimum installation requires 15 Megabytes. 60 MB is needed for a website with many contributed modules and themes installed. Keep in mind you need much more for the database, files uploaded by the users, media, backups and other files.

Web server
Apache, Nginx, or Microsoft IIS
More details about web server requirements.

Database
Drupal 6: MySQL 4.1 or higher, PostgreSQL 7.1,
Drupal 7: MySQL 5.0.15 or higher with PDO, PostgreSQL 8.3 or higher with PDO, SQLite 3.3.7 or higher
Microsoft SQL Server and Oracle are supported by additional modules.
More details about database requirements.

PHP
Drupal 6: PHP 4.4.0 or higher (5.2 recommended).
Drupal 7: PHP 5.2.5 or higher (5.3 recommended).
Drupal 8: PHP 5.3.10 or higher.

Memory:
Drupal 6: 126 MB and more.
Drupal 7: 256 MB and more.

Tags:



Pages