Posts

Minimize Expenses with Drupal 8
16 Oct 2017

Minimize Expenses with Drupal 8

Development and maintenance times for Drupal 8 can be strongly optimized, saving 20% or even 30% development cost for smaller websites thanks to using the tools wisely and using ready-built distros for lower start. The hosting, however, can not be the same as it used to be for Drupal 7. Having a cheaper hosting will mean higher maintenance times, which is not worth it. Hosting needs to be optimal, even though somewhat more expensive.
Dries Buytaert at DrupalCon Vienna
10 Oct 2017

Why Drupal 8 is not for Small Websites

Now it has happened. In his DrupalCon Vienna keynote presentation, Dries Buytaert, the Drupal trademark owner, has announced, that “Drupal is no longer for small websites.” At the same time, he said he is offended, when people say Drupal is only for the “Enterprise” websites now. This does seem wrong to me in a number of ways. Now, after about two years of experience working with Drupal 8 in larger and smaller businesses, I think there is both truth and inconsistency in what Dries has said. So let’s sort things out.
Drupal Composer
18 Sep 2017

Convert an older Drupal 8 site to use Composer in 10 steps

I started using Drupal 8 from early on. Since Drupal 8.2, it has made Composer and undeclared dependency. I realized I could no longer install modules and manage dependencies in a sane way, as well as update my sites, without converting them to use Composer. Converting the sites to use Composer can be hard if you have issues with your site, like missing modules or broken configuration. If your site is healthy, though, following the next 10 steps should not be hard.

10 Sep 2017

Why you may not want a headless (decoupled) website.

Developers used to call this kind of architecture headless, but it's called decoupled more often today (because who wants a "headless" website?!) It's the next cool word today. It's the today's black. There's a lot of talk about the decoupled in the Drupal community now. It's the eye of the hype now, being cool and technologically advanced. There can be reasons, however, why this hype may not at all be for you.

19 Mar 2016

Drupal 8 - Display submenu in a block

To edit and place a submenu in a block in Drupal 8, place this code in the block plugin class file:
<?php

 
/**
   * {@inheritdoc}
   */
 
public function build() {
   
$menu_tree = \Drupal::menuTree();
   
$menu_name = 'main';
   
$parameters = new MenuTreeParameters();
   
$tree = $menu_tree->load($menu_name, $parameters);
   
$manipulators = array(
      array(
'callable' => 'menu.default_tree_manipulators:checkAccess'),
      array(
'callable' => 'menu.default_tree_manipulators:generateIndexAndSort'),
    );
...

?>
View the whole post to see the rest of this code.
1 Dec 2014

PHP PDF Library: tcPDF vs mPDF

Recently, I needed to create a simple Drupal-based solution, that would include mailing a PDF printout of a node to the client. My study of the available free PHP PDF libraries has yielded results - Google found about a dozen of them. After some research, these have been narrowed to just 2 - TCPDF and mPDF. After some more research and playing with the two, I ended up with the mPDF as the library of choice. And the reason, plainly - better HTML/CSS support.
30 Nov 2012

Save/update field collection without node_save

Some sites are quite complex. And some complex sites also have complex pages. A good way to group data on those pages is to use Field Collection module. Field Collection module utilizes Drupal 7's entity interface to store your field collection as an entity, rather than a field directly attached to your node. The benefit is obvious - you can manage little 'sub-nodes' for your node, like company's houses, or person's quotes, without having to create a whole new node for them. And for multi-value field groups, it's just a prodigy!