clemens-tolboom opened pull request kubernetes/

On github - Wed, 2016/10/12 - 1:02pm
Oct 12, 2016 clemens-tolboom opened pull request kubernetes/ Resolve push denied 1 commit with 2 additions and 0 deletions

Appnovation Technologies: My Experience At DrupalCon Dublin

Planet Drupal - Wed, 2016/10/12 - 11:31am

This year was special for me, for the first time since DrupalCon Copenhagen (back in 2010), I was able to attend a DrupalCon, thanks to Appnovation.

Categories: Blog: AGILEDROP: Drupal's path from 4.0 to 8.0

Planet Drupal - Wed, 2016/10/12 - 7:23am
Last time we guided you through early beginnings of Drupal. We explained how all started and how first versions of Drupal were made. This time we will look how this open-source content-management framework evolved from its fourth to its latest, eight version. Drupal 4.0 Drupal’s fourth version was released on 15. 6. 2002. It became a platform for any type of web application. Users were able to modify it and extend it to fit their needs. Developers came from all across Europe and US, so Drupal became international open source project with over 100 major pages using it. Taxonomy module, who… READ MORE

Leopathu: Dynamic Block Weight in Drupal 8

Planet Drupal - Wed, 2016/10/12 - 7:16am
In such a time, i want to place blocks in sidebar region with the dynamic weight. It means the blocks should render in different position for each page request. I have searched and tried lots of method but unfortunately i can’t find proper method to do that. So i have decided to do that with some hacky way.

Leopathu: Create a custom Twig filter in Drupal 8

Planet Drupal - Wed, 2016/10/12 - 7:16am
Twig can be extended in many ways; you can add extra tags, filters, tests, operators, global variables, and functions. You can even extend the parser itself with node visitors. In this blog, I am going to show you how to create new custom twig filters in drupal. For example we are going to create a filter to remove numbers from string, will explain with hello_world module. Create hello_world folder in modules/custom/ folder with the following files,

Leopathu: Configure Multisite in Drupal 8

Planet Drupal - Wed, 2016/10/12 - 7:16am
One of the most favourite and  valuable features in drupal is multisite configuration, Drupal 8 provide simple way to create multisite it reduced lots of works. The following steps shows to configure multisite in drupal 8,

Leopathu: Drupal Tricks - 1

Planet Drupal - Wed, 2016/10/12 - 7:16am
I needed a way to check the currect user has permission to view the currect/particular page, Searched lot finally got the exact way, going to show the tricks to you in this blog. Drupal has an api called " drupal_valid_path " , Normally it used to test the url is valid or not. but the trick is that, It also check the user has permission to view the currect/particular page.

Leopathu: Install Drupal Using Drush

Planet Drupal - Wed, 2016/10/12 - 7:16am
Most of the times developers don't like the GUI, It makes feel lazy. Drupal has a tool (Drush) to do some management work from command line. And also the installing the drupal site makes very lazy while doing with browser, The Drush has an option to install the full site with a single command. The Following command will install the drupal in standard method, drush site-install standard --account-name=admin --account-pass=[useruser_pass] --db-url=mysql://[db_user]:[db_pass]@localhost/[db_name]

Modules Unraveled: 163 Easy Local Development Using Kalabox with Mike Pirog - Modules Unraveled Podcast

Planet Drupal - Wed, 2016/10/12 - 7:00am
Published: Wed, 10/12/16Download this episodeKalabox
  • What is Kalabox?
  • Brief story on history Kalabox
  • Is there a plan to use the “official” Docker for mac backend instead of VirtualBox?
  • Current update on state of Kalabox
  • How does Kalabox compare with other local dev tools like Mamp, DrupalVM etc.?
    • Specifically: Speed, flexibility
  • Is Kalabox, or will it be usable with server environments other than Pantheon? Ie: Acquia, VPS, PlatformSH
Use Cases
  • Team standardization
  • Fast local dev
  • Automated repeatable tasks
  • Github workflow?
  • Composer based workflow?
  • Our three month roadmap
  • You mentioned Tandem in the into, and you gave me a brief description before the show, but can you expand a little bit on what that is?
Episode Links: Mike P. on drupal.orgMike P. on TwitterKalabox WebsiteMain DocumentationPantheon Specific DocumentationPHP Specific DocumentationKalabox on GithubIntro to Kalabox videoThinkTandemTags: Local DevelopmentKalaboxDevelopmentplanet-drupal

Blair Wadman: Introduction to YAML in Drupal 8

Planet Drupal - Tue, 2016/10/11 - 10:00pm

YAML is a data serialisation format that is both powerful and easy for us humans to read and understand. In Drupal 8 it's used where Drupal needs a list but doesn’t need to execute PHP. One of the reasons why YAML was chosen for Drupal 8 is because it is already used in Symfony.


Chapter Three: Deploy Drupal updates and new features with Drush commands

Planet Drupal - Tue, 2016/10/11 - 7:04pm

In this blog post I will provide an example of a method I use to deploy changes on the projects that I work on my own time. This method is very useful when there is a need to make a lot of manual changes to the site when there is a new release. You could use this method to automate deployment process of your Drupal sites. In fact this method can be used for any other non-Drupal sites too.

For this blog post I am using Drush commands.

Lets start form a very simple example. I will use Acquia's directory structure to descibe where I am storing release scripts.


Sooper Drupal Themes: Beautiful New Header Designs, Exciting New Portfolio Features, New Landcsaping & Gardening Demo!

Planet Drupal - Tue, 2016/10/11 - 4:40pm

Before jumping into the release blog post I wanted to repond to the recent Drupal Planet blog posts about the fact that Drupal 8 has so few themes. In my opinion the short answer is: Drupal 8 adoption is very slow.

The slightly longer answer is that Drupal also faces more competition in the lower end of the market, where themes are most often used. WordPress' growth has been great and is now stagnating, but online site builders like Wix, Weebly, and squarespace are growing and their products are maturing. Another factor that I think relates to Drupal 8's slow adoption especially in the lower end of the market is that Drupal 8 will rely more on distributions due to increased complexity of assembling a fully featured site. As someone who manage a Drupal distribution full time I can tell you it's not as easy as it should be.

Glazed 2.5.3 Release

Today we release what is just the start of a new class of Drupal themes. Over the past year our Glazed theme and Carbide Builder combo has stabilized and proven it's capabilities. With our latest Landscaping Theme Demo we are showing that our framework theme is capable of so much more than your average Multipurpose WordPress theme or Bootstrap template. With refined design options and microinteractions we are pushing our Glazed framework theme forward to make way for a future full of beautiful, effective Drupal theme designs. New header options were added, our main menu system got some improvements.. 


  • Added pull-down header design
  • Improved overlay menu style
  • Support for transparent and full-width menus
  • New minimalistic form theming
  • New design for portfolio pages
  • Image Compare 
  • Lightbox Gallery for portfolio pages
  • Next / Previous node pager
  • CHANGELOG Glazed Theme
  • CHANGELOG Carbide Builder
Glazed Landscaping Theme

As you can see on our roadmap SooperThemes is currently focussing on designing a large collection of Business niche themes based on our Glazed framework Drupal theme and Carbide Drag and Drop Builder. Our most recent addition is Landscaping and Gardening theme. We are not in the business of designing generic niche themes, we aim to release the best niche themes. We developed additional features for this theme including a unique new header and main menu design, an image comparison widget and a lightbox gallery option for portfolio pages. 

Check out the Landscaping & Gardening live demo to view our latest niche theme!

    New Header Options

    While designing new niche theme I quickly realised that our generic bootstrap navbar layout was the most important bottleneck preventing us from producing truly great niche business website designs. The Glazed Settings for the header were refactored, optimized and extended with new style options and 11 new color options. These options are now also made available in our Glazed Content Design field collection so that you can customize headers for specific landing pages and match your creative content. 

    You can now view all these header in our live demo under the new Headers Dropdown menu!

      Image Compare, Lightbox and Portfolio Page Design

      For a landscaping business it's important to showcase your best work to potential customers. The portfolio content type was extended with additional layout options. New features include a Next / Previous node pager at the bottom, an advanced lightbox gallery system for viewing portfolio images and last but not least: an image comparison widget. The comparison widget really makes your case studies stand out, providing an effective and fun way to demonstrate the awesome service your business provided to your customer.

      The comparison widget is touchscreen compatible and responsive. 

        New Form  Design & Theming

        The default Bootstrap 3 forms already started looking dated. We replaced it with a minimalistic new design. Forms now blend in perfectly with any design. Form elements are sublty colored only when interacted with. The selectbox now features are custom themed dropdown icon that is themed using the default font that you configured in Glazed Settings. The selectbox also sports are a subtle microinteraction animation when hovered.

        The Landscaping contact form uses the webform bootstrap 3 layout module.

        Looking Ahead

        In the future look forward to more Drupal Niche Business themes, as well as our move into Magazine themes. WordPress magazine themes have seen a surge in sales on themeforest recently and I think there is oppurtunity for Drupal to shine in this growing market. After all, Drupal is naturally best at managing large amounts  of structured content and magazines are just that. Combine that with the capability of our drag and drop builder to easily generate attractive creative content and there you have a basis for best-in-class magazine themes. If you are interested in joining our little theme shop you can join now for just $48.

        Categories: Drupal 8 Views: How to set as admin path

        Planet Drupal - Tue, 2016/10/11 - 2:00pm

        In many cases, uniting routing with admin path definition makes things easier, but not when it comes to Views because their routes are generated dynamically. The solution I have come up with is to use a RouteSubscriber.

        Categories: Using the entity API in Drupal 8

        Planet Drupal - Tue, 2016/10/11 - 11:32am

        There is a lot of literature about entities and their purpose in Drupal 7 context. Most of it has been adopted in Drupal 8 as well. In this post, I'll highlight the differences between D7 and D8 entities and how to use the entity API in 8.

        Entities have their own classes in 8. Also, Drupal 8 introduces the concept of config entities. These are used to store user-created configuration if its more than a piece of text, boolean or integer. They differ from the usual entities in the following ways:

        • The are not revisionable
        • The don't support entity translation interface(TranslatableInterface), but can still be translated using config's translation API.
        • The don't have fields/are not fieldable.

        The rule of the thumb is, any information pertaining to the structure and functionality of the site(image style, content types, filters), how content is being served(views, display modes) etc. are config entities.

        Secondly, the data storage mechanism moved from being field-centric in 7 to entity centric in 8. This implies that all fields attached to an entity share the same storage backend, making querying a lot easier.

        Entity validation is a separate API based on Symfony's validator component. This can be availed when adding entities through other means(ex. programmatically creating an entity instance) than by using user facing forms. Entity validation will be the demonstrated in another future post.

        Creating and loading entities

        To create a new entity object, use the entity_create. NOTE that this only creates an entity object and does not persist it.

        $node = entity_create('node', array( 'title' => 'New Article', 'body' => 'Article body', 'type' => 'article', ));

        If you know what the entity class name is, you can use it directly.

        $node = Node::create(array( 'title' => 'New Article', 'body' => 'Article body', 'type' => 'article', ));

        Entities can be loaded using similar functions, entity_load and <class_name>::load.

        $node = entity_load('node', $id); // same as above $node Node::load($id);

        Entity save is done by calling the instance's save method.


        Save works for both creating and updating an entity. An entity can be checked if it's being created for the first time using the isNew method.

        use Drupal\node\Entity\Node; $data = file_get_contents(''); $file = file_save_data($data, 'public://druplicon.png', FILE_EXISTS_RENAME); $node = Node::create([ 'type' => 'article', 'title' => 'A new article', 'field_image' => [ 'target_id' => $file->id(), 'alt' => 'Drupal', 'title' => 'Drupal logo' ], ]); assert($node->isNew(), TRUE); $node->save(); assert($node->isNew(), FALSE);

        entity permissions can be checked using the access method.

        $node->access($op); // where $op is one of "view", "create", "update" or "delete" Reading and updating entities

        Entity properties can be modified using the set method.

        $node->set("title", "A newer title"); $node->save();

        Reading and updating entity fields follows a similar pattern to Entity Metadata Wrappers in 7, albeit more object oriented. Fields can be read as follows:

        use Drupal\node\Entity\Node; // text field $node = Node::load(4); $txt = $node->field_my_text->value; // entity reference $node = Node::load(3); $tags = $node->field_tags->referencedEntities(); // link field $uri = $node->field_my_link->uri; $title = $node->field_my_link->title; $options = $node->field_my_link->options;

        The $tags contains all the term objects associated with that field.

        Updating a text field is easy.

        $node = Node::load(4); $node->field_my_text = "updated text"; $node->save();

        To update a node and add a set of terms,

        use Drupal\node\Entity\Node; use Drupal\taxonomy\Entity\Term; $node = Node::load(4); $term1 = Term::load(1); $term2 = Term::load(2); $node->field_tags->setValue([$term1, $term2]); $node->save();

        Link fields can be updated as follows,

        // specific attributes can be updated. $node = Node::load(4); $node->field_my_link->uri = ""; $node->save(); // the whole field can also be updated. $node = Node::load(4); $node->field_my_link = ["uri" => "", "title" => "My Blog", "options" => ["target" => "_blank"]]; $node->save(); Entity field query in D8

        Entity field query has been essentially rewritten in Drupal 8. It helps fetching entities which match given criteria without writing any SQL queries. Here's a simple query to fetch all published nodes of type article.

        $query = \Drupal::entityQuery('node'); $query->condition('status', 1); $query->condition('type', 'article'); $entity_ids = $query->execute();

        The $query query object is chainable, just like entity field query and returns an object of type QueryInterface. It is possible to query fields.

        $query = \Drupal::entityQuery('node') ->condition('status', 1) ->condition('', 'Chennai'); $nids = $query->execute();

        We can give different comparison operators too.

        $query = \Drupal::entityQuery('node') ->condition('status', 1) ->condition('field_my_link.uri', '', 'CONTAINS'); $nids = $query->execute();

        You can specify a field delta value between the field name and column name, as in:

        $query = \Drupal::entityQuery('node') ->condition('status', 1) ->condition('', 'Mumbai'); $nids = $query->execute();

        will fetch all the nodes whose 2nd tag name is "Mumbai".

        It is possible to specify OR conditions and chain them.

        $query = \Drupal::entityQuery('node') ->condition('status', 1); $group = $query->orConditionGroup() ->condition('', 'Mumbai'); $nids = $query->condition($group)->execute();

        fetches all nids which are either published or have "Mumbai" in tags.

        These nids can be further processed after fully loading the entity objects using entity_load_multiple.

        // ... $nids = $query->execute(); $nodes = entity_load_multiple('node', $nids); foeach($nodes as $node) { //do something }
        Categories: Default Search API Sorts Per View in Drupal 7

        Planet Drupal - Tue, 2016/10/11 - 8:46am

        It's been a while since I've written a post here (especially, Drupal-related). But today I have something interesting to share.

        There's a module called Search API sorts ( that provides custom sorts and a global sort block for Search API. The module itself is ok, but ...

        Read now


        Palantir: Top 5 Takeaways From Dublin DrupalCon

        Planet Drupal - Tue, 2016/10/11 - 3:55am
        Top 5 Takeaways From Dublin DrupalCon brandt Mon, 10/10/2016 - 20:55 Alex Brandt Oct 11, 2016

        Dublin DrupalCon: Community, Sessions, Guinness, and Toast.

        In this post we will cover...
        • What we learned in Dublin

        • Some of our favorite events

        • Why we’ll be back next time

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

        Sign up for our newsletter.

        We’ve settled back into our routines, but we are still left with the warm afterglow of another DrupalCon. Palantir’s Tiffany Farriss, George DeMet, Ken Rickard, and Avi Schwab reflect on their time in Dublin and share their thoughts on what makes DrupalCon so special in our top 5 takeaways.

        5.) The Drupal community is bright and ambitious.

        • Avi: I’ve been working as a FED on projects lately. This DrupalCon gave me a great opportunity to reinforce and grow my existing Twig knowledge, now that I have some real places to apply the skills. The trio of “Branch out of your comfort zone…”, “Drupal 8 Theming In Depth”, and “21 Things I Learned…” is enough to get anyone from zero to Twig hero in no time.
        • George: I was only at DrupalCon for a couple of days, but during that time I had a lot of great conversations with people in the community. I heard a lot of great ideas for how we can help make Drupal contribution more sustainable, and how we can make it easier for more people to engage with the project and the community in different ways.
        • Tif: Of late, I’ve been thinking about how Drupal can better communicate its community values and expectations at the organizational level (to and among the business ecosystem). Central to that is the question: what does it mean to be a good Drupal citizen whether you’re an individual, an organization or an end user of Drupal? I had some excellent conversations around that topic and am excited about the possibilities for recognizing all of the wonderful work that already happens within the community as a way to communicate and reinforce our community values.

        4.) There’s always something to look forward to.

        • Avi: The Drupal Association team always works hard to put on a great event, but I feel like Dublin went more smoothly from a logistical standpoint than any DrupalCon I’ve been to. The venue staff assisted the volunteers at a phenomenal level, the venue itself was amazing, and the food was great.
        • Tif: I love reconnecting with old friends and making some new ones, and having thought-provoking conversations (especially with Kristof Van-Tomme, my friend and CEO of Pronovix).
        • Ken: DrupalCon is a great combination for me, in that I can always expect to run into old friends, and I am also guaranteed to meet new contributors. That makes it a special event.

        3.) Yet, we’re always pleasantly surprised with what’s different.

        • George: Now that Drupal 8 has been out for some time and people are building sites with it, this DrupalCon felt more focused on the community. The new Being Human session track in particular had a lot of great content aimed at helping people learn how to contribute in a healthy way while also supporting others.
        • Avi: I’ve gone through some personal changes since NOLA, but for me Dublin felt much more like DrupalCons from our pre-D8 days, where developers dug into the hard problems and worked to share their solutions. It’s refreshing to be back in that seat both personally and as a community. D8 is moving along well and now has the confidence of most folks in the community, and we’re really putting it to work.
        • Tif: It’s remarkable how much the Drupal community has matured and expanded since my first DrupalCon Europe in Szeged in 2008.

        2.) The sessions and events only reinforce how special the Drupal community is.

        • George: I very much appreciated Dries’ focus in his keynote on the core values and purpose ( of the Drupal project and community, which set a really great tone for the event. Being able to see and hear how Drupal has made a positive difference in the lives of people all over the world was particularly inspiring.
        • Avi: After a few years of doing more PM work and less development, it was great to come back to Con and be able to absorb so much incredible knowledge from such great people. I also really enjoyed the Tuesday night party on the Cill Airne — too often our socializing is overpowered by loud music and tight spaces, but having a night outside, with a good bar and good folks, but not so much screaming, was greatly appreciated.
        • Tif: I always enjoy the Driesnote. Dries’ expanded purpose for the project (that Drupal is as much about people and impact as it is about code) resonates with me and affirms that Drupal continues to be aligned with Palantir’s purpose and values.
        • Ken: I went to Tim Millwood's session on the Workflow Initiative. That's the Drupal 8 core project that includes moving Workbench Moderation into core as Content Moderation. In many ways, it's the culmination of work that we started at the end of the Drupal 6 development cycle, so it's very rewarding to see the progress being made today.

        1.) It wouldn’t be DrupalCon without a few shenanigans.

        • Avi: At the boat party, upon learning that I was a Palantiri, an Irish admirer of his began expounding on Mr. Ken Rickard’s amazing, deep, Hollywood-like voice and how, despite Ken’s contextual configuration talk being incredibly interesting, just listening to the words come from Ken’s mouth made it that much better.
        • Tif: I got Angie (webchick) to try Guinness:
        • Ken: We shared an apartment with Avi’s family. Avi's daughter Calliope tried to put buttered toast into everyone's pockets at the breakfast table every single morning. (I guess to save for later.) Which led to the viral quote. "No, you can't put toast in my pockets. I don't have any pockets."

        We want to make your project a success.

        Let's Chat.

        Nacho Digital: Assisting to Drupalcon Dublin 2016

        Planet Drupal - Tue, 2016/10/11 - 1:25am
        I had the opportunity to assist to Drupalcon Dublin 2016. Some insights and highlights on sessions I assisted on this Drupalcon.

        Dublin is a lovely city, very international and The Convention Centre Dublin was an excellent location. Dries keynote was less enterprise oriented than others and helps to understand where he wants to take Drupal8. The most interesting thing for me is to see how the new life cycle of D8 roll-out is. There was more about D8 new development cycle on the session "Drupal 8's rapid innovation promises".


        OSTraining: How to Set Up Dropdown Menus in Drupal 8

        Planet Drupal - Mon, 2016/10/10 - 11:46pm

        A few years ago, we published a very popular post called "How to Create Dropdown Menus in Drupal".

        That post covers many of the basic points that have not changed in Drupal 8, including these:

        • Many themes don't have dropdown menus built-in. That includes Drupal's core themes, such as Bartik.
        • It is best to choose a theme that does already have dropdowns available.
        • You need to go to Structure > Block layout and make sure your menu is placed in the correct block region.
        • You need to go to Structure > Menus and make sure your menus links are indented.