How to Implement Faceted search with Solr in Drupal 8?

Posted by Valuebound - 6 Feb 2018 at 04:48 UTC

Sometimes we need to implement a search functionality that looks similar to some of the renowned e-commerce site search (like Amazon, Flipkart and so on) as per the category, types and all.  For this kind of search, Facet is a good option. So what exactly Faceted search is?

Facet is a module, in Drupal 8, that provides a facility to arrange all the search results as per the category. Basically, it is an arrangement of search results based on categories, content type on indexed terms and content type.

Why we use Facets?

There are various reasons a Facet can be used:

  • It provides a drill-down search facility.
  • It can be used with default search and Solr as well.
  • It shows a number of item count for each…

Core strengths

Posted by Roy Scholten - 5 Feb 2018 at 23:28 UTC
06 Feb 2018 Core strengths Designing Connected Content cover

The Designing Connected Content book has arrived. “Plan and model digital products for today and tomorrow.” I have yet to dive in but I see Drupal screenshots and lists of field types like entity reference, long text (formatted), boolean, number (float), etc.

Today a content strategist collegue asked me about that list builder thing in Drupal. Show items of type x, filtered by y, sorted by x and only show fields 1, 3 and 6 of each item. And is it available for Drupal 8 as well?

Yes, that’s 1. Field UI and 2. Views module, which are both part of the Drupal core package.

We take Drupal core features for granted that other systems are still struggling with. They are also features people struggle with in Drupal because of hard to use user interfaces. I would love to see research and design work happen around how we can improve Field UI and Views UI.

Tags book designing connected content drupalplanet content modeling

Using Pattern Lab in Drupal 7 theme development

Posted by aleksip.net - 5 Feb 2018 at 18:09 UTC
After working almost exclusively with the latest and greatest version of Drupal since 2015, I am now facing some Drupal 7 projects. I didn’t want to give up using atomic design and Pattern Lab, so I decided to create a .tpl.php PatternEngine for Pattern Lab.

Last Month in Drupal - January 2018

Posted by Ixis.co.uk - Thoughts - 5 Feb 2018 at 11:00 UTC
Finally, after what felt like months, January has come to an end. This means it is time for our monthly blog series, Last Month in Drupal. January has seen a plethora of Drupal news and here we pick out the best bits just for you.

Using Tailwind CSS in your Drupal Theme

Posted by Oliver Davies - 5 Feb 2018 at 00:00 UTC

Flip Flops and Drupal: Increasing Accessibility and Building Community

Posted by Hook 42 - 4 Feb 2018 at 19:36 UTC
Florida Drupal Camp 2018 logo

We’re stretching our legs, shaking off the snow, and heading to our first camp of 2018! AmyJune and Carie are on their way to Florida Drupal Camp to share their knowledge in "The Theme Park Capital of the World". They’re thrilled to have the opportunity to collaborate and learn with their peers.

Along with their sessions, they'll be helping with the Sunday Contribution Sprints!

Drupal 8 Development on Windows - Best Practices?

Posted by DrupalEasy - 3 Feb 2018 at 19:34 UTC

Over the past several weeks, I've been working with three of the more well-known Docker-based local development environments that involve a Drupal focus: Docksal, DDEV, and Lando. The goal is to not only to figure out which one I prefer, but also to figure out which our two long-form online Drupal training classes should potentially standardize on.

Docksal logoOur classes are often comprised of folks from all different technical backgrounds, so it is important that we not only teach them tools that Drupal professionals use, but also something that folks of myriad of skill levels can easily consume. Perhaps most importantly, while the majority of our students are on Mac OS X, we still have a consistent number of students using Windows, so any solution we recommend should work similarly on all platforms.

As a Mac OS X user myself, it is important to me that I can instruct our Windows-based students without having to resort to a separate set of instructions. To that end, I have an actual Windows 10 Pro machine (not a virtual machine) that I've been using to evaluate these local development environment options. 

I've decided to focus on DDEV, Lando, and Docksal because I really like the idea of Docker-based containers; being able to customize your local development environments to each project has too many advantages to ignore. Also, as one of our classes is Pantheon-focused, Lando's Pantheon integration is a very important differentiator. 

Read more

Drupal User Research - Call for Interviews

Posted by Drupal Association blog - 3 Feb 2018 at 15:46 UTC

The Drupal Association is mapping Drupal’s customer lifecycle and defining the personas who have decision making authority throughout the adoption and user journeys. Our goal is to understand how to better serve each persona at DrupalCon and on Drupal.org, in turn growing Drupal adoption and more effectively helping those working on or with Drupal to become power users

To start this project, we need to interview different types of people working with Drupal.

Will you donate 45 minutes of your time to participate in a user research call?

We are looking for people in the following job functions who work with Drupal.

Job Functions:

  • CEO
  • CMO, VP marketing
  • CTO/CIO/ Director of engineering
  • Chief Information Marketing Office
  • Chief / Lead / Tech architect
  • Developer
  • Project manager
  • Marketing technologist
  • Content strategist
  • Content author / Content editor
  • Trainers of content editors
  • UX designer
  • Customer experience manager
  • Marketing campaign manager/director
  • Purchaser/procurement

If you are interested in participating in a user research call, please sign up here by February 16, 2018 and we will contact you.

Promet Source Receives 2018 AVA Digital Award for Martin County Florida Drupal Web Development

Posted by Promet Source - 2 Feb 2018 at 20:32 UTC
Promet Source has been named among the Gold level winners of the 2018 AVA Digital Awards for outstanding work on the Martin County Florida Drupal website development project in the government category.              

Using the Configuration Installer with Lightning

Posted by Acquia Lightning Blog - 2 Feb 2018 at 17:07 UTC
Using the Configuration Installer with Lightning Adam Balsam Fri, 02/02/2018 - 12:07

Installing a site with existing config has been a bit of a moving target in Drupal 8. At different times, I've recommended at least three different approaches. I won't go into too much detail, but basically we've used the following at times:

  • Manually change site UUIDs (Sloppy)
  • Use --config-dir option with drush site-install (Only supports minimal profile)
  • Use patch from Issue #2788777 (Config needs to be stored in profile directory)

You can read more about previous approaches here. The one thing that hasn't changed is the user story:

As a user I want to be able to install Drupal from a package of configuration that is maintained in git.

The issue that most closely addresses this user story is #1613424 "Allow a site to be installed from existing configuration". That issue is currently postponed on another thorny issue which involves the special way that Drupal treats dependencies of profiles. In the meantime, alexpott has provided a standalone install profile that handles installing a site from existing config. This is the Configuration installer profile.

Read more

Some more (updated) tips for PhpStorm live templates

Posted by drunken monkey - 2 Feb 2018 at 11:19 UTC

A few years ago I started using the PhpStorm IDE for PHP development, was immediately smitten and, after a bit of use, wrote a blog post with some tips I found for makig better use of the tools PhpStorm gives you.

In the four years since then there have been some new developments. Firstly, of course, Drupal 8 was finally released – and, consequently, the one complaint I had back in 2013 about the $MODULE$ variable only working in the module file itself became more of a problem. (Also, I added one more live template that's very useful for Drupal 8.)
But secondly, a few weeks ago PhpStorm finally added scripting support for live templates, so it's now possible to write more powerful templates that way – and fix the $MODULE$ variable.

The new di live template

In general, when writing OOP code for Drupal 8 (that is, for almost all Drupal 8 code) you should use dependency injection as much as possible. There's several different styles for doing that, I'm using one which uses setter methods and calls them in create() (instead of adding all injected objects to the constructor). This makes inheritance easier and keeps the constructor “cleaner” – and becomes much easier with a good live template:

Read more

Drupal ++

Posted by Palantir - 2 Feb 2018 at 01:24 UTC
Drupal ++ brandt Thu, 02/01/2018 - 19:24 Ken Rickard Feb 2, 2018++

Director of Professional Services Ken Rickard’s introduction to Drupal and how ++ flows through the community.

Stay connected with the latest news on web strategy, design, and development.

Sign up for our newsletter.

2018 marks my 10th year at Palantir and the inaugural ++ Day gives me a great chance to reflect. For those of you who haven’t read George’s post yet:

++ has its origins in the C programming language, where it’s used as an operator to add one to the value of a particular variable. Over time, it’s become known as an informal shorthand for building and improving on past success.

I started working at Palantir after contributing to the Drupal project and launching some of the first newspaper industry websites on Drupal. And it’s in my experiences with Drupal – as a software project and a community – where the ++ ethos has had lasting influence.

Read more

Submitted Sessions for DrupalCon Nashville

Posted by Elevated Third - 1 Feb 2018 at 18:36 UTC
Submitted Sessions for DrupalCon Nashville Submitted Sessions for DrupalCon Nashville Tony Dryer Thu, 02/01/2018 - 11:36 DrupalCon Nashville 2018

At Elevated Third, everything is Drupal. We standardized a decade ago and have since attended DrupalCon yearly.

This year in Nashville we’re looking forward to sharing what we’ve learned in Drupal 8, Drupal biz, project management, and more. Check out the sessions we've submitted. 

 

Leveraging Maps for Scalable and Maintainable SASS

Tanner Langley

SASS is a relatively new language in the grand scheme of things. As many of us have transitioned from writing plain CSS to SASS, we still generally write our code the same way. Websites are becoming more complicated, and as such, we need more robust ways to write our CSS so that it is scalable and maintainable, even when the project grows.

In this session, I’ll discuss the idea of creating a framework in SASS to decouple the most complicated pieces of your code from the actual implementation. With this approach, you’ll still be able to use any CSS system, such as utility classes, BEM syntax or even just plain Drupal selectors. 

You may be interested in this session if:

Read more

Drupal Commerce 2: Set up a Product Variation Type with Custom Fields

Posted by Acro Media - 1 Feb 2018 at 16:22 UTC

In part one and two of this Acro Media Tech Talk video series, we covered how you set up a new product attribute and used rendered fields, in Drupal Commerce 2. A product attribute is used to define options that customers would select when buying a product, such as colour. Rendered fields let the customer see the actual colour instead of just seeing the colour name.

The overall product in Drupal Commerce 2 consists of a product type, a product variation type, and product attributes. The product type defines the type of product that you're creating (i.e. hat). The product variation type is contained within the product type and defines the individual variations of the product, based on attributes (i.e. large blue hat).  In part three of this series, we'll move away from attributes and show you how you can configure your product variations type. A product variation type will always have a title, sku and price, but we'll take it a step further and add in some custom fields.

This entire video series, when complete, will show you how to set up a new product in Drupal Commerce 2, from start to finish. The video is captured using our Urban Hipster Commerce 2 demo site.

Next week we'll post part 4: Set up a Product Type with Custom Fields

Its important to note that this video was recorded before the official 2.0 release of Drupal Commerce and so you may see a few small differences between this video and the official release now available.

Read more

Prevent access to untranslated pages with Drupal 8

Posted by Flocon de toile | Freelance Drupal - 1 Feb 2018 at 14:00 UTC

It is not uncommon when a multilingual Drupal 8 project is implemented, that the pages translations are not ready at the time of production. If making a Drupal 8 multilingual site has become really easy to implement, there is now a fundamental difference with Drupal 7: it is impossible to disable a language. Either install a language, or delete it. This change is assumed, and voluntary, so as to not generate unnecessary complexity for questionable gain.

Drupal SEO Made Easy - A Complete Guide

Posted by Specbee - 1 Feb 2018 at 13:29 UTC
By now, you would have stumbled across thousands of blogs to discover that Drupal is the best Content Management System. This robust, flexible and dependable CMS platform is also well known for being an SEO friendly content management system with its latest version being the best by far. But for a Drupal website, is SEO necessary??

AGILEDROP: What can Drupal agencies expect in 2018

Posted by Agiledrop.com Blog - 1 Feb 2018 at 07:58 UTC
In 2017 Janne Kalliola and Michel van Velde conducted the Drupal Business Survey for the second time. By collecting responses from more than 200 Drupal agencies, they were able to come to the following conclusions: Drupal 8 has become the most popular version for new projects. Agencies started working on more complex projects. Drupal has lost against Wordpress (and others) in the low-end market. Smaller agencies have a challenge staying competitive in seizing bigger projects. Finding talent is continued to be a challenge.     SWOT analysis To try and foreseen into 2018 I am doing a… READ MORE

Secure Website running on Apache with Let's Encrypt on Linux

Posted by heykarthikwithu - 1 Feb 2018 at 06:37 UTC
Secure Website running on Apache with Let's Encrypt on Linux

Website security is generally most complicated and expensive task for every Linux admin. Let’s Encrypt is a free, automated, and open certificate authority that provides free X.509 certificates for Transport Layer Security encryption via an automated process. It's very complex process to install and add SSL certificate to a web server. Let's make it easier with the help of Let’s Encrypt. One can easily encrypt data of your website free of charge using Let’s Encrypt.

heykarthikwithu Thursday, 01 February 2018 - 12:07:21 IST

Drupal 8 Composer Best Practices

Posted by Lullabot - 31 Jan 2018 at 17:45 UTC

Whether you are familiar with Composer or not, using it to manage dependencies on a Drupal project entails its own unique set of best practices. In this article, we will start by getting a Composer-managed Drupal project set up, and highlight some common questions and issues you may have along the way.

Before we dive in, though, you may be asking yourself, “Why Composer? Can’t I just download Drupal and the modules I need without requiring another tool?” Yes you can, but you will quickly realize it’s not a simple task:

  1. Contributed modules or themes often depend on third-party libraries installed via Composer. Without using Composer for the project, you’ll need to manage these individually when downloading, which can be quite a chore.
  2. Some packages and modules only work with certain versions of PHP or Drupal. While Drupal core does help you identify these issues for modules and themes, it’s still a manual process that you’ll need to work through when choosing which versions to download.
  3. Some packages and modules conflict with other packages. You’ll need to read the composer.json files to find out which.
  4. When you upgrade a package or a version of PHP, you’ll need to do all the above over again.
  5. If you’re thinking you’ll use drush dl and friends, they’ve been removed in favor of Composer.

Dependency management is complicated, and it’s not going to get any easier. As Ryan Szrama put it , “if you’re not using a dependency manager [like Composer], then you’re the dependency manager, and you are unreliable.”

Read more

Top 5 List of Top Ten Lists about Drupal Talent & Careers in the U.S.

Posted by DrupalEasy - 31 Jan 2018 at 15:46 UTC

As trainers, feeders of the Drupal Talent pipeline, and researchers of strategies to attract and build the numbers and excellence of Drupal talent across the world, we spend a lot of time finding and training people in the ways of Drupal. Through resources, Mike Anello's many sessions and trainings at Camps and Cons, and through our flagship Drupal Career Technical Education program, we pursue our passion to teach more people Drupal. We think we have the training side of this down, but like the Drupal Community's general shortage of talent, it’s finding more people that is the challenge.

Why is that? And why aren’t there people coming in droves to this opportunity-rich, community-based vocation? We think it has a lot to do with a lack of the right information getting to the right people. Here at DrupalEasy, we fill a lot of (sometimes too much) time observing and noodling the various paths people take to find Drupal, aspects of Drupal as a career and reaching those who could benefit. We think if Drupal opportunities were presented more broadly, a bit better, and were more accessible to those who are not aware (especially those who historically have not embraced IT careers,) the floodgates (or at least a stream) might start to bolster up the Drupal talent pipeline.  

Drupal's foundations are really quite inspiring.  A vocation built on sharing - open source, an engaged community and building and developing the means upon which our societies connect, build relationships, find information, and buy & sell. The story is also quite practical; well-paying jobs a-plenty. According to Indeed.com, the average salary for "Drupal" ranges from approximately $59,980 per year for Web Designer to $110,572 per year for Full Stack Developer. 

Read more

Pages

Subscribe with RSS Subscribe to Drupal.org aggregator - Planet Drupal