Drupal 8 Entity Series- Part One - Introduction to Entities

This series of blog articles will describe Drupal 8 Entities, what they are, how to create them, an explanation of the class structure necessary to integrate with Drupal 8, how to manipulate entities with the Drupal 8 Entity API, and later, how to customize entity types in a variety of ways.

Part one of this series, Introduction to Entities will describe what a Entity is, its origination in Drupal 7, and the differences and feature enhancements that Entities have in Drupal 8.

Setting up CiviVolunteer

When it comes to CiviVolunteer, it is not exactly obvious how to use it. 

There is obviously "The Guide" but it doesn't really tell all the details on how to get around things, and unless you are a very experienced user who knows CiviCRM by heart with eyes, closed you might spend quite some time on figuring out where to click, what to enable and what not.

There are several questions to ask yourself before you start working with CiviVolunteer:

Will my event be a one time thing?

CiviCRM Sprint 2014

Skvare’s Peter and Hanna will be participating in the CiviCon Lake Tahoe Sprint 2014.The week-long sprint will take place in the Sierra Nevada  from April 27, 2014 to May 4, 2014. As with any other sprint, the aim of Lake Tahoe Sprint 2014 is to gather a community of CiviCRM users, regardless of experience, to accomplish two things:

  1. Improve CiviCRM in some shape or form.

  2. Improve one’s own CiviCRM skills.

Tips For Using Measurements While Theming

px Measurements

Some browsers handle certain measurements differently. If you set your margin to 20px (margin: 20px;), you may display your goal correctly in one browser; however, you may overshoot or undershoot your margins in another browser. The solution? You should only set widths, paddings and other styles with the “px” measurement if you’re making very small adjustments. Note: no more than 5px adjustments should be trusted with the px measurements.

Code: CSS

Centering Blocks in a Region Ideal for Responsive Theming

In this blog, we’ll discuss a technique that’s ideal for responsive theming: Making two blocks that occupy the same region horizontally center perfectly without margins. We will be styling our block in the corresponding style sheet using the correct selectors that the block has or has been given by you. Using the style below, we will learn how to center your blocks in the desired region without using large margins. This is good for making both blocks perfectly center--not just what looks centered--while also setting up a base for responsive theming.

Managing and Arranging Stacked Blocks

To achieve specified design, you may need to make two blocks overlap. In Drupal, blocks are the spaces that hold the content we have put into them. This gives us the freedom to place them and then style them wherever on the page we need to achieve design. If the blocks are only for visual purposes, then this would be fine; however, if one of the blocks has a button or other hover/clickable functions, then this might be an issue, especially if that block is covered by the other. The solution?

CiviCon 2014

CiviCon 2014 will take place April 24, 2014 and April 25, 2014 in San Francisco--less than five weeks away. CiviCon is the world’s largest CiviCRM Meetup. Each year CiviCRM developers gather to discuss the recent developments in CiviCRM. Skvare is a gold sponsor for CiviCon 2014. We're actively involved in the CiviCRM community, hosting Meetups and always contributing to the open-source community.

CiviCRM Meetup: Custom APIs and Mapping Tool

We recently arranged another CiviCRM Meetup in Dallas, Texas. We would like to thank Improving Enterprises for continued use of their facility and Skvare for continuing to organize the group.

Mark Hanna led the discussion on CiviCRM’s mechanism that allows developers to create their own custom API calls. Developers can provide API calls in programming languages such as PHP, Javascript/Ajax, JSON and more. This is a useful feature in CiviCRM because it allows developers to efficiently pre-configure complex operations.

Ongoing Gmail Outage

Due to an ongoing Gmail (and Google Apps) outage email communication to may be delayed. Currently up to 50% of Gmail and Google Apps users are being affected over aperiod of several hours. For urgent issues, please call our team directly.

Skvare's Drupal and CiviCRM web hosting services continue operating unaffected. It may be prudent to postpone sending out any bulk email via CiviMail or other third-party providers to avoid unexpected bounces or delays of delivery. 

Understanding Views Relationships


Relationships are used to allow Views to bring in data that is associated with the data already available in the view. A comment view could, for example, use the relationship comment: content to tap into data about the node for each comment. A term view could use the relationship taxonomy: parent term to tap into data from the parent term of each listed term.

People comfortable with writing SQL queries will recognize the relationships as joins. You add, edit and delete relationships in the same way as filter, view fields and sort criteria by using the add button and its related menu.

EVA and Entity Reference Use Case How-to

This article describes the building of a practical example use case using modern Drupal 7 modules and site building techniques. I will show how to use Views, EVA, Fieldgroup, Entity Reference, Entity Reference Prepopulate, and Display Suite modules to display content from multiple content types and other Drupal Entities on an article content type page. The goal is build a review system for the article content type.

Simple Rule Example Using CiviCRM Entity

The new Drupal module CiviCRM Entity exposes 11 CiviCRM objects as Drupal Entities and provides rules support for these entities.  In this article I will demonstrate how to create a simple rule, which creates a synced Drupal user for the contact when the contact gets a membership.

This how-to assumes you have the Rules module and the CiviCRM Entity module installed.

Create the rule:

JQuery Modificaiton of CiviCRM Forms via CiviCRM Extensions

Have you ever wanted to modify a CiviCRM contribution or event registration page?  Taken a look at those Smarty templates?  Doesn't look pretty does it.

In the article I describe how to easily add JQuery/javascript to any form you want and modify the page.

First, and hardest of all, is create a basic CiviCRM extension.  There is a program that will generate a basic extension that integrates with CiviCRM but doesn't yet add functionality.


Subscribe to Blog