Planet Drupal

Syndicate content - aggregated feeds in category Planet Drupal
Updated: 30 min ago

Aram Boyajyan: Custom permissions in Drupal 8

Sat, 09/17/2016 - 14:31
article role=article about= typeof=schema:TechArticle class=node node--type-article node--view-mode-teaser clearfixh2 class=node--title a href= rel=bookmarkspanCustom permissions in Drupal 8/span /a /h2 footerdiv spanSat, 17/09/2016 - 14:31/span /div /footerdiv class=node--content clearfix divpDrupal's permissions system is at the same time easy to use and very powerful. It covers most of the cases where your module provides different functionality for various roles on the site./p pIn both versions of Drupal this is fairly straightforward to implement through code. There are two parts to this article: defining custom permissions (both static and dynamic), and performing checks to see if the current user has access to them./p/div ul class=links inlinelia href= rel=tag title=Custom permissions in Drupal 8 hreflang=enRead morespan class=visually-hidden about Custom permissions in Drupal 8/span/a/li/ul/div /article How To Force Search API To Reindex a Node / an Entity

Sat, 09/17/2016 - 14:26
pBy default Search API (Drupal 7) reindexes a node when the node gets updated. But what if you want to reindex a node / an entity on demand or via some other hook i.e. outside of update cycle? Turned out it is a quite simple exercise. You just need to .../p pa href= class=btnRead now/a/p

Dave Hall Consulting: The Road to DrupalCon Dublin

Sat, 09/17/2016 - 12:26
pa Dublin/a is just around the corner. Earlier today I started my journey to Dublin. This week I'll be in Mumbai for some work meetings before heading to Dublin./p pOn Tuesday 27 September at 1pm I will be presenting my session a href= the Machines do the Work/em/a. This lighthearted presentation provides some practical examples of how teams can start to introduce automation into their Drupal workflows. All of the code used in the examples will be available after my session. You'll need to attend my talk to get the link./p pAs part of my preparation for Dublin I've been road testing my session. Over the last few weeks I delivered early versions of the talk to the a href= Sydney/a and a href= Melbourne/a meetups. Last weekend I presented the talk at a href= Training Days Chennai/a, a href= Ghent/a and a href= St Louis/a. It was exhausting presenting three times in less than 8 hours, but it was definitely worth the effort. The 3 sessions were presented using hangouts, so they were recorded. I gained valuable feedback from attendees and became aware of some bits of my talk needed some attention./p pJust as I encourage teams to iterate on their automation, I've been iterating on my presentation. Over the next week or so I will be recutting my demos and polishing the presentation. If you have a spare 40 minutes I would really appreciate it if you watch one of the session recording below and leave a comment here with any feedback./p h3Global Training Days Chennai/h3 a href= src= alt=Thumbnail frame from DrupalCamp Ghent presentation video width=450 //a h3DrupalCamp Ghent/h3 a href= src= alt=Thumbnail frame from DrupalCamp Ghent presentation video width=450 //a pstrongNote:/strong I recorded the audience not my slides./p h3DrupalCamp St Louis/h3 a href= src= alt=Thumbnail frame from DrupalCamp St Louis presentation video width=450 //a pstrongNote:/strong There was an issue with the mic in St Louis, not there is no audio from their side./p

Jay Drupal Relation Module Configuration Manual

Sat, 09/17/2016 - 06:53
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpToday I'll show you guys how to install the a href= module for a href=https://www.drupal.orgDrupal/a 7. Believe it or not, it took me almost five years to fully figure out how to install what I think is one of the most confusing modules ever made lol./p pSo what exactly does a href= do? Let's say you have a film and its sequel:/p p* Film 1 is followed by film / * Film 2 follows film 1./p pThe beauty of a href= is that once you create one relation (in either direction), it creates the other one for you automatically. It's this simple thing that this module does amazingly well./p/div/div/divdiv class=field field-name-field-blog-tags field-type-taxonomy-term-reference field-label-abovediv class=field-labelTags:nbsp;/divdiv class=field-itemsdiv class=field-item evena href=/tag/drupal-7 typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=Drupal 7/a/divdiv class=field-item odda href=/tag/drupal-planet typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=Drupal Planet/a/div/div/div

Drupal core announcements: Drupal core security release window on Wednesday, September 21, 2016

Fri, 09/16/2016 - 23:44
div class=field field-type-datestamp field-field-start7 div class=field-items div class=field-item odd div class=field-label-inline-first Start:nbsp;/div span class=date-display-single2016-09-21 11:00 America/Chicago/span /div /div /div div class=field field-type-userreference field-field-organizers div class=field-labelOrganizers:nbsp;/div div class=field-items div class=field-item odd a href=/user/24722 title=View user profile.xjm/a /div div class=field-item even a href=/user/4521 title=View user profile.catch/a /div div class=field-item odd a href=/user/14705 title=View user profile.David_Rothstein/a /div div class=field-item even a href=/user/1370143 title=View user profile.stefan.r/a /div /div /div div class=field field-type-text field-field-event-type div class=field-labelEvent type:nbsp;/div div class=field-items div class=field-item odd Online meeting (eg. IRC meeting) /div /div /div pThe monthly security release window for Drupal 8 and 7 core will take place on Wednesday, September 21./p pThis does not mean that a Drupal core security release will necessarily take place on that date for any of the Drupal 8 or 7 branches, only that you should watch for one (and be ready to update your Drupal sites in the event that the Drupal security team decides to make a release). This is also the final security release window for Drupal 8.1.x, so Drupal 8 sites should prepare to update to Drupal 8.2.0 and a href= Drupal 8.2.0-r1/a./p pThere will be no bug fix or feature release on this date. The next window for a Drupal core patch (bug fix) release for all branches is Wednesday, October 05, which is also the scheduled release for Drupal 8.2.0./p pa href= 6 is end-of-life/a and will not receive further security releases./p pFor more information on Drupal core release windows, see the documentation on a href= timing/a and a href= releases/a, and the a href= that led to this policy being implemented./p

CU Boulder - Webcentral: Using Geolocation for More Personalized Results

Fri, 09/16/2016 - 23:19
In today's world, users are accustomed to having results personalized for them without having to do any work. If you login to your favorite store, e.g. Amazon, you'll get a list of recommended products. Google will provide you location-based searches. Your video streaming services, banking, big box stores, even your potential online dates all have incorporated location-based way-finding. Sometimes, you aren't even aware that you are being directed by location. It's simpler to just make users select their location and filter by that, but the best user experience is to attempt do this step for the user. Scenario When showing...

CU Boulder - Webcentral: Drupal as a Service at CU Boulder

Fri, 09/16/2016 - 19:22
The Web Express service at CU Boulder runs over 1,000 Drupal-powered web sites and is designed, developed and maintained by a team of nine . For our team to support the service, we created a design, development and user experience strategy that allows us to support and scale the service to the campus needs. When we started with Drupal, we were eager to do any custom design and development work that was required for a project. In a short amount of time, we had a lot of custom sites on custom codebases. We learned that this was not something that...

Mediacurrent: Meet Matt Davis

Fri, 09/16/2016 - 17:02
img typeof=foaf:Image src= width=200 height=155 alt=Employee Spotlight Graphic for Matt Davis / pHi Matt - thanks for letting us get to know a bit more about you! Let's get started:/p h31. What’s your role at Mediacurrent, both internally and client-related?/h3 pI am a Lead Drupal Architect, which means I do a lot of requirements gathering, discovery, and planning out large scale builds, and then I help lead development teams in executing those builds./p

OSTraining: How to Add Audio Files to Drupal 8 Sites

Fri, 09/16/2016 - 15:58
div class=ost-intro-imageimg src= alt=How to Add Audio Files to Drupal 8 Sites width=200 height=134 //div pThis week, an OSTraining member asked us about adding audio files to their Drupal 8 site./p pUsing the Drupal AudioField module, I will explain how you can display a simple HTML5 player for your site's audio files./p pIn order to get started, you must download, install and enable the a href= module/a./p

OpenLucius: Module release: 'Pop-up question redirect'

Fri, 09/16/2016 - 11:54
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpThe 'Popup question redirect' module allows Drupal site builders to show website visitors a pop-up in which a question can be asked. If the vistor clicks Yes they will be redirected to a given webpage./p pimg src= width=1440 height=904 alt= //p /div/div/div

DrupalCon News: Drupal in Ireland - Project 5

Fri, 09/16/2016 - 10:00
div class=field field--name-body field--type-text-with-summary field--label-hiddendiv class=field__itemsdiv class=field__item evenpAs part of our series of showcasing what a href= is doing in Ireland/a, we are happy to bring you another awesome online experience that Drupal has created.  /p h3Project 5 - Dún Laoghaire-Rathdown County Council/h3 pMonsoon Consulting worked with Dún Laoghaire-Rathdown County Council to build the next generation of DLR websites and internal intranet platform, using Drupal 7 as the content management system. /p/div/div/div

Danny Englander: Drupal 8 Theming: How to Define Variables in Twig Templates to Use as Custom HTML Classes

Fri, 09/16/2016 - 03:06
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item oddpimg src= width=880 height=332 alt=No preprocess functions were harmed in this article :) title=No preprocess functions were harmed in this article :) class=image-adaptive inline-adaptive //p pFor the past seven months, I've been designing, building, and theming with Drupal 8 for my own side project. Along the way, I've seen huge advancements in these realms versus what was possible with Drupal 7. One particular module I've been working with is emEntity Construction Kit/em AKA ECK./p pECK provides a way to create freestanding entities, bundles, and fields independent of traditional means via nodes, terms, users, etc... Within my project, I've implemented ECK fields that offer content editors options for layouts, colors, element padding, and so on./p h2Discover the array path with kint/h2 pI'll use the case of an accordion group entity that I've designed. One such field within this entity bundle is called Slice margin. This field allows a content editor to set the top and bottom margins within a specific element by choosing values from a select list. Examining this field with kint, the value of the selected item's array path is:/p precode class=php $var['entity']['field_slice_margin']['0']['#markup'] /code/pre h2Check for the field and define the variable/h2 pNow with the array path value determined, a variable in the accordion entity can be set in a Twig template:/p precode class=php {% if entity.field_slice_margin|render %} {% set margin_settings = 'margin__' ~ entity.field_slice_margin['0']['#markup'] %} {% endif %} /code/pre pIn the above code, the code checks to be sure the field is being rendered and then a variable is set for the value. In addition, codemargin__/code is concatenated (code~/code) as a class prefix./p h2Set a class using the variable/h2 pThe block of code above does not do much on its own, so lets put the new variable to use in the template. For that, Drupal 8's Twig codeset_classes/code comes in handy./p precode class=php {% set classes = [ 'eck', 'eck__section', eck__bundle-accordion, 'margin__default', margin_settings|clean_class, ] %} /code/pre pNote in the above, the new variable is output using the Drupal Twig codeclean_class/code method, codemargin_settings|clean_class/code. codeclean_class/code cleans up any spaces and underscores in a string and converts those to standard dashes for use as a standard html class name./p h2Output the HTML with the classes/h2 pNow that this is done, the class can be rendered in an HTML element in the same twig template using the codeattributes.addClass(classes)/code method:/p precode class=twig #x3C;section {{ attributes.addClass(classes) }}#x3E; #x3C;ul class=eck__collapsible collapsible popout data-collapsible=accordion#x3E; {{ entity.field_accordion_reference|field_value }} #x3C;/ul#x3E; #x3C;/section#x3E; /code/pre h2Rendered HTML/h2 pFinally, this will render in HTML as:/p precode class=twig #x3C;section class=eck eck__section margin__default margin__flush-above-below eck__bundle-accordion#x3E; /code/pre pThe key class rendered here from codeentity.field_slice_margin/code is codemargin__flush-above-below/code, that's the specific value the content editor chose from the select list on the node edit page. Now this and other values from this field can be used in theming like so using Sass:/p precode class=scss .margin { __default { margin-bottom: 70px; } __flush-above { margin-top: 0; } __flush-below { margin-bottom: 0; } __flush-above-below { margin-top: 0; margin-bottom: 0; } } /code/pre h2Summary/h2 pAs you can see, Twig is really powerful in Drupal 8. No preprocess functions were used here which really helps streamline theming. We stayed within one Twig template for all of the functions and code above. A lot of possibilities here to give content creators more control over layout, colors, custom classes, and more./p /div/div/divh2 class=field-labelTagsnbsp;/h2ul class=field-items tag-itemsli class=field-item odd firstDrupal/lili class=field-item evenTwig/lili class=field-item oddTheming/lili class=field-item evenDrupal Planet/lili class=field-item odd lastDrupal 8/li/ulh2 class=field-labelResourcesnbsp;/h2ul class=field-items tag-itemsli class=field-item odd firsta href= target=_blank rel=nofollowFilters - Modifying Variables In Twig Templates/a/lili class=field-item even lasta href= target=_blank rel=nofollowUsing attributes in templates/a/li/ul

Cheeky Monkey Media: More than Websites

Thu, 09/15/2016 - 21:17
span class=field field--name-title field--type-string field--label-hiddenMore than Websites/span div class=field field--name-field-image field--type-image field--label-hidden field__item img src= width=1380 height=444 alt=More than Websites //div span class=field field--name-uid field--type-entity-reference field--label-hiddena title=View user profile. href= class=usernamechris/a/span span class=field field--name-created field--type-created field--label-hiddenThu, 09/15/2016 - 19:17/span div class=clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__itempWe have established ourselves as experts in the a href= and Web development sphere/a. However, few people are aware that we bring much more to the table. We are a diverse team of creative thinkers, designers, and marketers with the single-minded desire to make your project a success. It takes more than just building a Website these days, so it's important to us that our clients know that engaging with Cheeky Monkey Media can be a full spectrum experience. /p pTo help illustrate our hidden talents, we put together this quick little reel highlighting just some of the “Other things we do”, things like stronga href= design/a/strong, stronga href=, and stronga href= piframe allowfullscreen= frameborder=0 height=720 src= width=100%/iframe/p/div

Annertech: Save Money: Security Updates and Web Hosting in One Simple Package

Thu, 09/15/2016 - 15:10
span class=field field-node--title field-name-title field-type-string field-label-hiddenSave Money: Security Updates and Web Hosting in One Simple Package/span div class=field field-node--body field-name-body field-type-text-with-summary field-label-hidden div class=field-items div class=field-itempChoosing proper hosting for your site shouldn't be a race to the bottom./p pHosting websites is hard. Websites themselves are complex, global traffic can mean huge numbers, big spikes in activity and always demanding users. Sites need to be served quickly, consistently and reliably. Downtime costs money, effort, and more than likely a few extra grey hairs too./p/div /div /div

Valuebound: What are you giving back to the Community?

Thu, 09/15/2016 - 12:33
p dir=ltrThe Drupal Community boasts of having more than a a href= thousand active contributors/a to this Open Source platform. People around the globe contribute to the codebase and more teaming up together. Businesses nowadays are staying ahead of the competition by encouraging contributions. Everything is about making together and building a better place, if you are not adding value you are already out of the league./p h2Why should I contribute?/h2 p dir=ltrYou may be in one of those organizations who agree to disagree with the point above and might ask “Why should I spend my time and resources for something I don’t see value in?” Well, then my friend you should be the first ones to start volunteer contributions with whatever little…/p

Third Grove: Redirecting Node Pages in Drupal 8

Thu, 09/15/2016 - 11:46
span property=schema:nameRedirecting Node Pages in Drupal 8/span span rel=schema:authorspan lang= about= typeof=schema:Person property=schema:name datatype= xml:lang=josh/span/span span property=schema:dateCreated content=2016-09-15T09:46:50+00:00Thu, 09/15/2016 - 05:46/span

Kodamera Screencast: Exporting and importing taxonomies

Thu, 09/15/2016 - 10:28
div class=screencast__video-wrapper iframe class=screencast__video-player src= width=640 height=360 frameborder=0 allowfullscreen/iframe /div a href= typeof=foaf:Image src= width=800 height=450 alt= //abr / pThere are many ways of exporting and importing taxonomies and terms in Drupal, but one of the more simpler ways is to use the Taxonomy CSV import/export module. It lets you choose one of many taxonomies, like the tag taxonomy for example, export it to a comma-separated list which you then can import in a similar way./p pimg alt= src= style=height:311px; width:661px title= //p pIn this video I'll show you how to do an export from one Drupal installation, in this case a Drupal 6 version (just to show that it's possible to move tags between different Drupal versions as well) and then import it into another Drupal installation (Drupal 7 in this case)./p pIt all starts with the export where you choose which vocabulary/ies you want to export and how you want to format it./p pimg alt= src= style=height:137px; width:1188px title= //p pThe second stage is to import the CSV-file into your target installation, and I'll show you this as well. /p pThe module has Drush support as well, so if you use Drush much you might want to use the terminal for your export and import.img alt= src= style=height:114px; width:708px title= //p br / a href= more/a

DrupalCon News: Drupal in Ireland - Project 4

Thu, 09/15/2016 - 10:00
div class=field field--name-body field--type-text-with-summary field--label-hiddendiv class=field__itemsdiv class=field__item evenpAs part of our series of showcasing what a href= is doing in Ireland/a, we are happy to bring you another awesome online experience that Drupal has created.  /p h3Project 4 - Lámh/h3 pLámh is a manual sign systems used by children and adults with intellectual disability and communication needs in Ireland. Lámh signs are used to support communication - they act as a stepping stone to communicating with the world. /p/div/div/div

DrupalEasy: DrupalEasy Podcast 185 - Amigurumi Long Beans (Ted Bowman - D8 Outside-In)

Thu, 09/15/2016 - 08:52
pa href= .mp3 file download./a/p pTed Bowman (a href= gets promoted from a lowly podcast co-host to special guest on this very special episode of the DrupalEasy Podcast. Ted has been working on the Drupal Outside In initiative(?), and shares his knowledge on the project. Anna Kalata and Ryan Price join Mike Anello to also discuss Drupal Association changes, new coding standards, giraffes, and manatees./p h2Interview/h2 ullia href= 8.2, now with more outside-in/a /li /ulh2DrupalEasy News/h2 ulliThe Fall, 2016 session of Drupal Career Online begins September 26; a href= are now open/a. /li lia href= to Drupal 8 Module Development at DrupalCon Dublin/a. /li /ulh2Three Stories/h2 ollia href= changes, and how we'll keep moving forward/a - blog post by Bradley Fields and a href= for the Drupal Association Events Team/a - blog post by Rachel Friesen. /li lia href= overhaul/a - blog post by tvn. /li lia href= standards/a - blog post by Howard Tyson. /li /olh2Sponsors/h2 ullia href= - Long-term-support services for Drupal 6, 7, and 8 sites. /li lia href= - a href=https://devpanel.comdevPanel/a. /li /ulh2Picks of the Week/h2 ulliMike - a href= XML Sitemap/a for Drupal 8. /li liAnna - a href= Druplicon/a. /li liTed - a href= /li liRyan - a href=Long Beans/a and a href= Podcast/a. /li /ulh2Upcoming Events/h2 ullia href= Dublin/a - September 26-30, 2016. /li lia href=https://nedcamp.orgNEDCamp/a September 30 - October 1, 2016. /li /ulh2Follow us on Twitter/h2 ullia href= /li lia href= /li lia href= /li lia href= /li lia href= /li lia href= /li lia href= /li /ulh2Five Questions (answers only)/h2 olliPaddleboarding. /li lia href='s TSHQ/a. /li liPay for kids' college. /li liGiraffe. /li liFirst Orlando meetups. /li /olh2Intro Music/h2 ullia href= I'm Drupalin' Drupal Rap (Rick Ross - Hustlin)/a. /li lia href= /ulh2Subscribe/h2 pa href= to our podcast on iTunes/a, a href= Play/a or a href= Listen to our podcast on a href= pIf you'd like to leave us a voicemail, call 321-396-2340. Please keep in mind that we might play your voicemail during one of our future podcasts. Feel free to call in with suggestions, rants, questions, or corrections. If you'd rather just send us an email, please use our a href= page/a./pdiv class=feedflare a href= src= border=0/img/a a href= src= border=0/img/a /divimg src= height=1 width=1 alt=/

Unimity Solutions Drupal Blog: Video Annotations in Drupal 8

Thu, 09/15/2016 - 07:29
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpOur first blog a href= Annotations: A Powerful and Innovative Tool for Education/a explained power of videos in education when combined with features like video annotation and second bloga href= Identification of an Open Source Video Annotations Tool for NVLI/a listed evaluation criteria of open annotation module that assisted NVLI project. This third blog in the series will involve defining the overall architecture of the Video Annotation solution in Drupal./p /div/div/div