Planet Drupal

Syndicate content - aggregated feeds in category Planet Drupal
Updated: 35 min 26 sec ago

Pantheon Blog: Update Your Nginx Config for Drupal 8

Tue, 11/24/2015 - 19:10
If you are still using the same Nginx configuration that you have been for Drupal 7 on your new Drupal 8 install, most things will continue to work; however, depending on the exact directives and expressions you are using, you might notice a few operational problems here and there that cause some minor difficulties.  The good news is that the Drupal configuration recipe in the Nginx documentation has been updated to work with Drupal 8, so if you have a very basic Nginx setup, you can just grab that and you’ll be Speed Up Cache Clearing on Drupal 7

Tue, 11/24/2015 - 18:33
span property=schema:name data-quickedit-field-id=node/6/title/en/rss class=field field--name-title field--type-string field--label-hiddenSpeed Up Cache Clearing on Drupal 7/span div property=schema:text data-quickedit-field-id=node/6/body/en/rss class=clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__itemh3Cache clearing nirvana may be two vsets away/h3 pstrongtl;dr/strong If your D7 site uses features or has many entity types, some recent patches to the a href= module/a and the a href= api module/a may deliver dramatic performance increases when you clear Drupal's cache. The magic:/p pre code $ drush vset features_rebuild_on_flush FALSE $ drush vset entity_rebuild_on_flush FALSE /code/pre/div span data-quickedit-field-id=node/6/uid/en/rss rel=schema:author class=field field--name-uid field--type-entity-reference field--label-hiddenspan lang= about=/user/2 typeof=schema:Person property=schema:name datatype=aaron/span/span span property=schema:dateCreated content=2015-11-24T17:33:19+00:00 data-quickedit-field-id=node/6/created/en/rss class=field field--name-created field--type-created field--label-hiddenTue, 11/24/2015 - 11:33/span

.VDMi/Blog: Generating menu items in Drupal 8

Tue, 11/24/2015 - 16:02
div class=field field-name-field-afbeelding field-type-image field-label-hiddendiv class=field-itemsdiv class=field-item evena href=/blog/generating-menu-items-drupal-8img style=max-width: 40%; height: auto; float: left; margin-right: 1em; align=left hspace=10 src= width=200 height=205 alt=Generating menu items in Drupal 8 //a/div/div/divdiv class=field field-name-field-samenvatting1 field-type-text-long field-label-hiddendiv class=field-itemsdiv class=field-item evenDrupal 8 comes with a new way to generate menu items from code. In Drupal 7 you would do this with quot;hook_menu()quot;, in Drupal 8 you use a Derivative Plugin./div/div/div

Mediacurrent: Recognized as Acquia Partner Site of the Year

Tue, 11/24/2015 - 15:18
img typeof=foaf:Image src= width=200 height=154 Launches on Drupal Launches on Drupal / pLast November, a href= launched on Drupal/a and became one of the highest trafficked websites in the world to launch on an open-source content management system (CMS). span style=line-height: 1.538em;Today, we're proud to announce that we have been recognized with a /spana href= style=line-height: 1.538em; target=_blank2015 Partner Site of the Year Award/aspa/spa/p

Amazee Labs: 3 Locations, 1 Party - #celebr8D8

Tue, 11/24/2015 - 15:11
span3 Locations, 1 Party - #celebr8D8/span spana href=/en/corina-schmid title=View user profile. href=/en/corina-schmid lang= about=/en/corina-schmid typeof=schema:Person property=schema:name datatype= class=usernameCorina Schmid/a/span spanTue, 11/24/2015 - 15:11/span div class=clearfix field field-node--field-lead field-name-field-lead field-type-text-long field-label-hidden div class=field-items div class=field-itempAfter over four years in development, the day finally arrived. November 19, 2015; the day when a href= target=_blankDrupal 8 was released/a. Of course this was a very good reason to celebrate. So all of our three locations, Zürich, Austin, and Cape Town joined the global community with hundreds of Drupalistas in cities around the world for the global Drupal 8 Release Party!/p /div /div /div div class=field field-node--field-image field-name-field-image field-type-image field-label-hidden div class=field-items div class=field-itemimg class=image-style-blog-full src= width=580 height=345 alt= typeof=foaf:Image / /div /div /div div class=clearfix field field-node--body field-name-body field-type-text-with-summary field-label-hidden div class=field-items div class=field-itemh2Cape Town festivities/h2 pOur office in South Africa's Mother City started the celebrations off. Even though he's Zürich-based, our CTO, Michael Schmid, was in town and held a presentation about Drupal 8, followed by fine food and drinks of course. Here are some impressions:/p pimg alt=CPT data-entity-type=file data-entity-uuid=0377eef0-4378-40e3-a003-3a55a5593e1f src= //p pimg alt=cpt2 data-entity-type=file data-entity-uuid=704ff344-9a01-4c58-b810-160616568a08 src= //p pimg alt=cpt3 data-entity-type=file data-entity-uuid=3de1f2d1-cea7-4430-b214-20a43bc835ac src= //p h2The Zürich party/h2 pZürich was up next. We started our party with lightning talks about Drupal 8 where fellow Developers talked about the experiences they made with Drupal 8 so far. After that it was time for blue cocktails, beers, and cake (of course)./p blockquote class=twitter-tweet lang=de xml:lang=de p dir=ltr lang=en xml:lang=enCheers with our a href= cocktail a href= a href= — dagmita (@dagmita) a href= November 2015/a/blockquote script async= src=// charset=utf-8/scriptpimg alt=zrh2 data-entity-type=file data-entity-uuid=b97092bf-22bd-420d-ad5b-91837332dd24 src= //p blockquote class=twitter-tweet lang=de xml:lang=de p dir=ltr lang=en xml:lang=enThanks for the cake a href= a href= a href= — Mario Schnauss (@MSchnauss) a href= November 2015/a/blockquote script async= src=// charset=utf-8/scripth2Party in #ATX/h2 pFive long hours after Zürich and Cape Town finished off their last bites of cake, the Austin team got emtheir/em party started, one they co-hosted with our friends from a href= target=_blankFour Kitchens/a. /p pThe highlights of the night included cold beer, a href= target=_blankBlacks BBQ/a, Drupal 8 conversations, raffle a href= target=_blankprize/a winners, a celebration cake, and a custom made Drupal 8 piñata that may or may not have been filled with travel-size adult beverages (nobody knows anymore...)./p pimg alt=Picture of Austin's Drupal 8 release party at the Four Kitchens office data-entity-type=file data-entity-uuid=24beda53-7cb6-4a17-b818-2444955c18c8 src= /img alt=Picture of celebratory cake and pinata data-entity-type=file data-entity-uuid=8aa993c4-6e46-427e-9108-8ac89fad0d86 src= /img alt=Picture of piñata aftermath data-entity-type=file data-entity-uuid=87f70a28-3f9a-4ceb-8e1e-30c4f3059d51 src= /img alt=Animated GIF of spinning piñata data-entity-type=file data-entity-uuid=3f2b9b51-5a18-4afd-b93b-59b1f98a392d src= /img alt=Picture of Kathryn and Maria holding remnants of piñata data-entity-type=file data-entity-uuid=3bcbc89c-8615-4e81-9e53-834c7cbd1aa5 src= //p /div /div /div

Pantheon Blog: Explicit Drupal: Clear Intentions in Drupal 8!

Tue, 11/24/2015 - 04:36
Much of the conversation in the Drupal 8 development cycle has focused on “NIH vs. PIE.” In Drupal 8 we have replaced a fear of anything “Not-Invented-Here” with an embrace of tools that were “Proudly-Invented Elsewhere.” In practice, this switch means removing “drupalisms,” sections of code created for Drupal that are understood only by (some) Drupal developers. In their place, we have added external libraries or conventions used by a much wider group of people.

OSTraining: Put Drupal Sites in Maintenance Mode Manually

Tue, 11/24/2015 - 04:14
div class=ost-intro-imageimg src= alt=Put your Drupal Site in Maintenance Mode Manually width=200 height=133 //div pDrupal allows to set a website offline with a few clicks via the admin interfacte./p pHowever, we've seen situatuons where the admin interface becomes unavailable, often via a white screen of death./p pIn this tutorial, I'm going to show you a manual way to force your Drupal 7 site in maintenance mode./p

Savas Labs: It's nearly 2016, your site is running on Drupal 6, now what? (Part 1)

Tue, 11/24/2015 - 01:00
pa href= reading…/a/p

Greater Los Angeles Drupal (GLAD): GLADCamp 2016 is at SCALE 14x on January 21, 2016!

Mon, 11/23/2015 - 23:43
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpimg src= width=125 height=140 alt=Greater Los Angeles Drupal hspace=10 vspace=5 border=0 align=right / Greater Los Angeles Drupal Camp (GLADCamp) is a full day of Drupal on January 21st, 2016, at the Pasadena Convention Center in Pasadena, California./p pWe've partnered with a href= 14x/a, the 14th annual Southern California Linux Expo, and are planning an all-day event that's packed with activities, including presentations and sessions. /p pGLADCamp has a focus on strongDrupal for good and civic engagement/strong. We're still looking for a partner venue where we can feature either a non-profit summit or a Coder's with a Cause barn raising to benefit a local 501c3 non-profit, but for now we're ready to announce GLADCamp on January 21st, 2016./p pAre you looking forward to warmer weather? Join us at GLADCamp, the strongsunniest DrupalCamp of the season/strong!/p pWe'll be announcing our call for presentations in the next couple of days./p pStay tuned to this event announcement, the a href= website and @a href= on Twitter for upcoming news and announcements./p h3Register for GLADCamp 2016/h3 pTo register for GLADCamp 2016, you must register for SCALE. See the SCALE website for more information or register now at a href=  /p h3Who should attend GLADCamp?/h3 ulliAnyone wanting to know more about how Drupal can help you solve your problems./li liAnyone wanting to network with others using Drupal in your area, either geographically or in your industry./li liAnyone wanting to grow their Drupal team, or be hired for Drupal work./li liAnyone wanting to give back to the Drupal community. The power of Drupal is in the community so contributing back helps us all./li liAnyone wanting to learn more about Drupal, past, present and the future./li liNon-profits wanting to learn how to use Open Source and Drupal to amplify your efforts./li /ulh3GLADCamp needs you!/h3 pWe can't do it without your help. We need volunteers to help with the following activities:/p ulliJoin the session selection committee! We need a team that accurately reflects our community and expected attendees; /liliHelp with info/registration desk (2 hour shifts); answer questions, sign attendees in; /liliBe a timekeeper at sessions in order to keep our presentations on schedule; /liliJoin our video team and help record sessions and assist presenters with screen recording software; /liliDesign and print signs, posters and badges for GLADCamp; we can provide logo and brand guidelines; /liliWrangling volunteers for day-of tasks; /liliOrganize evening reception, including help finding a location near the Pasadena Convention Center; /liliPrint designers: design and print common area signs, posters, badges; /liliGLADCamp set-up and breakdown! /li/ul/div/div/divdiv class=field field-name-field-tags field-type-taxonomy-term-reference field-label-inline clearfixdiv class=field-labelTags:nbsp;/divdiv class=field-itemsdiv class=field-item evena href=/tags/planet-drupal typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=Planet Drupal/a/div/div/div

DrupalCon News: The Druplicon Tours India

Mon, 11/23/2015 - 21:26
div class=field field--name-body field--type-text-with-summary field--label-hiddendiv class=field__itemsdiv class=field__item evenpWe couldn't be more excited to bring DrupalCon to India: it's a unique and colorful nation with many amazing cultures. Though the Con itself will be held in Mumbai, we strongly recommend that anyone traveling to India for DrupalCon take the time to tour some of the many fascinating regions of India./p pHow much does India have to offer? Our friends at Niswey illustrated the Druplicon on a tour of the country, experiencing four unique cultures that India has to offer. Here's the comic, and you can see more information on each frame below./p/div/div/div

Web Wash: Build a Blog in Drupal 8: Create and Manage Menus

Mon, 11/23/2015 - 21:22
div class=field field-name-field-ww-summary field-type-text-long field-label-hiddendiv class=field-itemsdiv class=field-item evenpA website's navigation plays an important part in how easy a site is to use. It's essential that you spend time fleshing out the overall IA (a href= architecture/a) or you'll end up with a site that's hard to use and difficult to navigate through./p pPrevious versions of Drupal have always offered a simple interface for managing menus, and Drupal 8 is no exception./p pIn this tutorial, we'll continue building our site by adding in some menus. We'll create a custom menu which'll be used to display links to popular categories, then create an About us page and add a menu link to the footer./p /div/div/div

Axelerant Blog: How To Set Up Drupal RESTful Caching

Mon, 11/23/2015 - 20:00
br /br /pThe Drupal RESTful module has a multitude of caching options and sorting through them on your own for the first time can be slow. This article will help you get started with Drupal RESTful caching./p pstrongNOTE:/strong RESTful 2.x module was recently released. This article focuses on the 1.x RESTful module version and the techniques mentioned below may not work if you are using any other release./p pYour caching options can be controlled at various levels in code. Knowing which layer your application needs is just as important as knowing how to execute, but we’ll start off with emhow/em, we#8217;ll move on to emwhy/em later./p !--HubSpot Call-to-Action Code -- span class=hs-cta-wrapper id=hs-cta-wrapper-5ad743d7-d16e-4b64-bc0a-078bc790dea1 span class=hs-cta-node hs-cta-5ad743d7-d16e-4b64-bc0a-078bc790dea1 id=hs-cta-5ad743d7-d16e-4b64-bc0a-078bc790dea1 !--[if lte IE 8]div id=hs-cta-ie-element/div![endif]-- a href= img class=hs-cta-img id=hs-cta-img-5ad743d7-d16e-4b64-bc0a-078bc790dea1 style=border-width:0px; src= alt=Need to Grow Your Team? Learn How//a /span script charset=utf-8 src= script type=text/javascript hbspt.cta.load(557351, '5ad743d7-d16e-4b64-bc0a-078bc790dea1'); /script /span !-- end HubSpot Call-to-Action Code -- h2Start with Drupal RESTful Caching/h2 pTo start caching your endpoint, the initial configuration is setting coderender/code to codeTRUE/code in the plugin file under coderender_cache/code key./p pRESTful skips caching your endpoint if this setting is codeFALSE/code, which is the default value. In addition to this, Drupal RESTful also ships with support for the codeentitycache/code module for entity based endpoints./p pHere#8217;s how a typical flow looks like for an endpoint:/p pre class=brush: php; title: ; notranslate function viewEntity($id) { $cached_data = $this-gt;getRenderedCache($context); if(!empty($cached_data-gt;data)) { return $cached_data-gt;data; } // perform expensive stuff and construct payload $values = construct_payload(); $this-gt;setRenderedCache($values, $context); return $values; } /pre pcode$context/code is the entity context, like the bundle name, entity ID and any other metadata you might find to be relevant to constructing your cache key. In most cases, just the bundle name, entity type and ID would suffice. RESTful fills in other contextual data like endpoint name, GET parameters, etc. RESTful builds your cache keys in a crafty way so that it is easy to do CRUD operations in bulk. For instance, clearing all caches for the #8220;articles#8221; endpoint would be something like codeclear(articles::*)/code./p pWithin the a href= project/a, a href= houses all the caching primitives, like a href=, a href=, a href= and a href= The last function, codegenerateCacheId/code, constructs the cache key based on the code$context/code supplied to that endpoint./p h2a name=h.iljok3ng84bt/aPreventing Cache-Busting/h2 pIt is also worth noting that Drupal RESTful caching allows you to override the key generation logic on a per-endpoint basis. This is especially useful when you want to build a custom cache key./p pa href= working on, we had to build a cache key which is agnostic of specific GET parameters. By default, the codegenerateCacheId/code builds a different key for the following endpoints:/p ul liarticles/23?foo=123456/li liarticles/23?foo=567898/li liarticles/23?foo=986543/li /ul pThough a different key for each of these calls makes sense in most cases, it is redundant in some cases. E.g. we return the same payload for all the above 3. To change this behavior, we ended up overriding codegenerateCacheId/code./p pThe codesetRenderedCache/code, codegetRenderedCache/code, and codeclearRenderedCache/code operate upon the default cache controller, which can be specified in the plugin using the codeclass/code key inside coderender_cache/code. This value defaults to codeDrupalDatabaseCache/code./p pThis default value can also be explicitly set to your favorite caching backend. In our case, we use the codememcache/code module and set this value to codeMemCacheDrupal/code. Again, Drupal RESTful allows you to configure caching backends on a per-endpoint basis./p h2a name=h.cpu7g2hqq6b2/aManaging Caching Bins/h2 pCache backends have this concept of bins, which is an abstraction for similar data which can be grouped together. Examples from the Drupal core are codecache_filter/code and codecache_variable/code./p pThere is a codebin/code setting for every endpoint in the plugin file, which is codecache_restful/code unless we explicitly specify otherwise. It is advisable to store high traffic endpoints in exclusive bins./p pThere is an codeexpire/code setting for each endpoint, which dictates the cache expiration for that endpoint. This defaults to codeCACHE_PERMANENT/code, which means that the entry will never be wiped off until it is explicitly selected for clearing./p pThe alternative is codeCACHE_TEMPORARY/code which indicates that it will removed in the next round of cache clearing./p pThese are the very same constants used in Drupal cache interface’s codecache_*/code calls. There is a middle ground too, which isn#8217;t documented. The codeexpire/code value can be set in seconds. This is a deviation from Drupal’s convention of mentioning it as a timestamp./p h2a name=h.y26bok381vcz/aVarying Caching by Role or User/h2 pSome endpoints need to be cached for each role, and some for each user. This granularity can be controlled by the codegranularity/code setting, which takes either codeDRUPAL_CACHE_PER_USER/code or codeDRUPAL_CACHE_PER_ROLE/code. This depends to some extent on your authentication mechanism too./p pWe wrote our own authentication mechanism and had a user created exclusively for the API and serving the endpoints. We gave this user an exclusive role and configured per-role caching for all the endpoints./p pHere#8217;s how the plugin configuration looks for one of our endpoints:/p pre class=brush: php; title: ; notranslate $plugin = array( 'label' =gt; t(Recommended Videos'), 'resource' =gt; recommended_videos', 'name' =gt; recommended_videos__1_1', 'entity_type' =gt; 'node', 'bundle' =gt; video', 'description' =gt; t('Get all recommended videos for a given article.'), 'class' =gt; RecommendedVideosResource__1_1', 'authentication_types' =gt; array( 'my_custom_token', ), 'minor_version' =gt; 1, 'render_cache' =gt; array( 'render' =gt; TRUE, 'expire' =gt; CACHE_TEMPORARY, 'granularity' =gt; DRUPAL_CACHE_PER_ROLE, ), // custom settings 'video_sources' =gt; array(youtube', 'vimeo'), ); /pre h2a name=h.8nzgu5vmsnna/aThe anatomy of a Cache key/h2 pA cache key using the default key generation logic looks like this:/p pre class=brush: plain; title: ; notranslatev1.0::recommended_videos::uu1::paet:node::ei:105486::fo:123::ba:abcd/pre pThe corresponding endpoint URL looks like this:/p pre class=brush: plain; title: ; notranslate/api/v1.0/recommended_videos/105486?foo=123amp;amp;bar=abcd/pre pThe first part is the API version, followed by the resource name, which is #8220;recommended_videos#8221;. The next part is either a #8220;uu#8221; or #8220;ur#8221; depending on whether it is user level or role level granularity. Next is the entity type (e.g. node) with a prefix #8220;pa#8221;. This is followed by the entity ID part, which is #8220;ei:105486#8221; in this case./p pThe last part is the truncated key-value list of GET params foo and bar. Each logical section is separated by a #8220;::#8221; so that it is easy to do a selective purge, as in wiping out all endpoints for v1.0 of the API would be a call to codeclear(v1.0::*)/code./p pNote that a GET for a collection of resources like latest comments results in a codeviewEntity/code for each item in the collection and as many cache entries. If you want a single cache entry for the whole collection, you have to custom build your payload and call codesetRenderedCache/code as shown in the initial endpoint workflow code snippet./p h2a name=h.ex49anhpjw70/aOther Considerations/h2 h3a name=h.26wdejw1qj4l/aBe Diligent, Validate Cache Strategies Early/h3 pRESTful is designed as being very modular from the ground up and has a provision for controlling caching settings for every endpoint. Such a high level of control is both good and bad. Digging through an issue for hours because some settings for an endpoint are misconfigured isn’t fun for anyone. Unless the settings are clear and explicit, it makes issues hard to debug and sort out./p pemBe diligent and validate your caching strategy from the beginning./em/p h3a name=h.egivwnh86y13/aMemcache Stampeding/h3 pAnother thing to look out for is memcache stampeding. Memcache stampeding occurs when a missing key results in simultaneous fetches from the database server, resulting in a high load. a href= is designed to prevent too many requests from piling up./p pa href= our work with, we could mitigate the need for passing these requests to Memcache by properly managing our Varnish layer.  We will detail on how we fixed the stampeding issue and constructed a Drupal RESTful Caching strategy in a later post. a href=#mc4wp_widget-2Stay tuned!/a/p div class=custom-cta div class=container tab-container span Need help with Drupal RESTful Caching on your team? /span a href= data-color-override=false class=nectar-button regular-button accent-color style=visibility: visible;Learn More/a /div /div h2a name=h.der6jfzgi8o2/aDrupal RESTful Caching Resources/h2 ul lia href= A video tutorial series/a on RESTful by one of its authors./li lia href= proverbial TODOMVC implemented/a with Drupal RESTful backend and Angular in the frontend./li lia href= a RESTful endpoint to the panels layout and configuration/a. One of the modules contributed back to community from the Legacy project./li /ul pThe post a rel=nofollow href= To Set Up Drupal RESTful Caching/a first appeared on a rel=nofollow href=https://axelerant.comAxelerant/a./p

Acquia Developer Center Blog: Integrating Drupal with a Proprietary Analytics Platform: How Did it.

Mon, 11/23/2015 - 18:07
div class=field field-name-field-author field-type-entityreference field-label-hiddendiv class=field-itemsdiv class=field-item evenStefan Deeran/div/div/divdiv class=field field-name-field-blog-image field-type-image field-label-hiddendiv class=field-itemsdiv class=field-item evenimg typeof=foaf:Image src= width=140 height=85 alt= //div/div/divdiv class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpOne of the great things about Drupal is its flexible system of nodes and taxonomies. This allows for bespoke categorization of many types of content./p pAt a href=, we wanted to take advantage of that., which has an alliance with Acquia to bring joint tech solutions to the worlds biggest media companies, works with hundreds of digital publishers to provide audience insights through an intuitive analytics platform. /p/div/div/divdiv class=field field-name-field-blog-tags field-type-taxonomy-term-reference field-label-inline clearfixdiv class=field-labelTags:nbsp;/divdiv class=field-itemsdiv class=field-item evena href=/tags/acquia-drupal-planet typeof=skos:Concept property=rdfs:label skos:prefLabel datatype=acquia drupal planet/a/div/div/div

Cryptic.Zone: Where is hook_page_alter in Drupal 8?

Mon, 11/23/2015 - 16:11
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item even property=content:encodedpIn Drupal 7, hook_page_alter was a convenient way to go when we needed to modify page elements that were added by other modules. Drupal 8 does away with this hook - hopefully for the better. To fill the void created by hook_page_alter’s dismissal, the following hooks have been introduced./p /div/div/div

Drupal Easy: Drupal Career Online Graduates Five With Updated Curriculum

Mon, 11/23/2015 - 14:31
pimg src= alt=DCO Fall 2015 students //p !-- rdf:RDF xmlns:rdf= xmlns:dc= xmlns:trackback= rdf:Description rdf:about= dc:identifier= dc:title=Drupal Career Online Graduates Five With Updated Curriculum trackback:ping= / /rdf:RDF -- pa href= target=_blankread more/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=/

ERPAL: Automation is the key to support SLAs

Mon, 11/23/2015 - 14:15
div class=field field-name-field-blog-intro-image field-type-image field-label-hiddendiv class=field-itemsdiv class=field-item evenimg src= width=700 height=180 alt= //div/div/divdiv class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpIf you want to grow recurring revenue by providing SLAs for your Drupal projects, automation is THE key to offering a reliable response time. Of course, you could build a dedicated 24/7 support team - but the cost will be exorbitant!/p pThere are many tools out there for digitizing your support and automating some of the processes. A well-defined support concept is the key to success. In this blog you'll get an introduction in four foundations of automated support systems. a href= more/a/p /div/div/div

Red Crackle: Express checkout to increase conversion

Mon, 11/23/2015 - 12:40
In this post, you will learn how to enable express checkout to increase conversions on your site. It's a fairly simple procedure that allows the shopper to proceed directly to the checkout without visiting the Cart. This saves time and ensures that you are able to win the shopper's business quicker.

ThinkShout: Up and Theming with Drupal 8

Mon, 11/23/2015 - 12:00
pDrupal 8 is a href= here/a! We’ve been digging into the code and learning how to install D8 in a way that allow us to sync sites and use it for production work. A lot of things have changed, which we covered in our previous article, a href= and Running with Drupal 8/a. The next step is to see what’s changed in the theming layer, installing a basic theme, and working with the new Twig templating system. There’s a good deal to cover, so let’s a href= in/a!/p h2Creating a Theme/h2 pThe steps for setting up a basic site theme are fairly simple: create a codecustom/THEMENAME/code directory in codeweb/themes/code, and then add a file with the following:/p div class=highlightprecode class=language-yaml data-lang=yamlspan class=l-Scalar-Plainname/spanspan class=p-Indicator:/span span class=l-Scalar-PlainTHEMENAME Theme/span span class=l-Scalar-Plaindescription/spanspan class=p-Indicator:/span span class=s#39;D8/spanspan class=nv /spanspan class=stheme/spanspan class=nv /spanspan class=sfor/spanspan class=nv /spanspan class=sTHEMENAME/spanspan class=nv /spanspan class=ssite.#39;/span span class=l-Scalar-Plainpackage/spanspan class=p-Indicator:/span span class=l-Scalar-PlainCustom/span span class=c1# base theme: classy/span span class=l-Scalar-Plaintype/spanspan class=p-Indicator:/span span class=l-Scalar-Plaintheme/span span class=l-Scalar-Plainversion/spanspan class=p-Indicator:/span span class=l-Scalar-Plain1.0/span span class=l-Scalar-Plaincore/spanspan class=p-Indicator:/span span class=l-Scalar-Plain8.x/span span class=l-Scalar-Plainregions/spanspan class=p-Indicator:/span span class=l-Scalar-Plainheader/spanspan class=p-Indicator:/span span class=l-Scalar-PlainHeader/span span class=l-Scalar-Plaincontent/spanspan class=p-Indicator:/span span class=l-Scalar-PlainContent/span span class=c1# required!/span span class=l-Scalar-Plainsidebar_first/spanspan class=p-Indicator:/span span class=s#39;Sidebar/spanspan class=nv /spanspan class=sfirst#39;/span span class=l-Scalar-Plainfooter/spanspan class=p-Indicator:/span span class=l-Scalar-PlainFooter/span /code/pre/div pThen you can enable your theme (codeadminister » themes/code) in the interface. Note that uncommenting codebase theme: classy/code will cause you to set Classy as a parent theme. We feel that Classy is great if you want a lot of useful examples, but really clutters up the markup, so use at your own discretion. a href= rc1/a, the default theme will be ‘stable,’ and you may want to pull all of the core templates into your theme to ensure you’re working from the latest updated template code./p pAlso, the theme name must not contain hyphens. So code/theme-name//code is invalid (it won’t even show up!), but code/theme_name//code is fine. /p pNow we’ll want to start customizing our theme. Let us say we have a content type called ‘blog’ (machine name: codeblog/code), with a field type called ‘Publish Date’ (machine name: codefield_publish_date/code). /p pDespite setting the label of codefield_publish_date/code to ‘inline,’ it’s wrapping to a new line due to the fact that it’s a simple, unstyled codelt;divgt;/code. /p pWorse, it has no classes to specifically style it. Let’s set ourselves some goals:/p ol liAdd the inline styling class(s)./li liChange the markup for this field, so that we have a class for the label./li liAdd CSS to style the label, but ONLY for the ‘Blog’ content type./li /ol pThe documentation for this seemingly simple task is obfuscated and evolving right now, but we were able to get it working correctly using the following steps:/p pstrongStep 1/strong: Turn on a href= debug mode/a. We also found it helpful at this point to make a copy of codeweb/sites/example.settings.local.php/code in codeweb/sites/default//code and uncomment the following in codesettings.php/code:/p div class=highlightprecode class=language-php data-lang=phpspan class=xif (file_exists(__DIR__ . #39;/settings.local.php#39;)) {/span span class=x include __DIR__ . #39;/settings.local.php#39;;/span span class=x}/span /code/pre/div pThis will allow you to a href= caching/a during development, which is no longer a simple checkbox in the performance section. Note that disabling caching can be tricky; the codedrush cr/code (cache rebuild) command is the most reliable way to ensure the cache is really cleared. You’ll also have to rebuild the cache at least once after turning caching off, so the new cache settings are applied./p pstrongStep 2/strong: Make a custom field template. /p pIn this case, the suggested debug fields are: /p div class=highlightprecode class=language-html data-lang=htmlspan class=clt;!-- FILE NAME SUGGESTIONS:/span span class=c * field--node--field-publish-date--blog.html.twig/span span class=c * field--node--field-publish-date.html.twig/span span class=c * field--node--blog.html.twig/span span class=c * field--field-publish-date.html.twig/span span class=c * field--datetime.html.twig/span span class=c x field.html.twig/span span class=c--gt;/span span class=clt;!-- BEGIN OUTPUT from #39;core/modules/system/templates/field.html.twig#39; --gt;/span /code/pre/div pThe highlighted line above shows the template currently being used, suggestions for increased specificity, and the file location (codecore/modules/system/templates//code)./p pWe want to update codefield_publish_date/code globally, so we’ll create a template called codefield--field-publish-date.html.twig/code/p pTo do this, we copy codefield.html.twig/code from the core theme (see the ‘BEGIN OUTPUT’ line above for the path), and rename it in our theme’s folder to codefield--field-publish-date.html.twig/code. Now when we reload, we see the following (if your cache is disabled, of course, otherwise drush cr will clear the cache): /p div class=highlightprecode class=language-html data-lang=htmlspan class=clt;!-- FILE NAME SUGGESTIONS:/span span class=c * field--node--field-publish-date--blog.html.twig/span span class=c * field--node--field-publish-date.html.twig/span span class=c * field--node--blog.html.twig/span span class=c x field--field-publish-date.html.twig/span span class=c * field--datetime.html.twig/span span class=c * field.html.twig/span span class=c--gt;/span span class=clt;!-- BEGIN OUTPUT from #39;themes/custom/THEMENAME/templates/field--field-publish-date.html.twig#39; --gt;/span /code/pre/div pNow we can begin to update the markup. The relevant code is:/p p codehtml {% if label_hidden %} ... (we don’t care about the label_hidden stuff) {% else %} lt;div{{ attributes }}gt; lt;div{{ title_attributes }}gt;{{ label }}lt;/divgt; ... {% endif %} /code /p pTo add the inline styling class, we add the following to the top of the template (below the comments):/p p codehtml {% set classes = [ #39;field--label-#39; ~ label_display, ] %} /code /p pAnd then update the label’s parent div attributes:/p pbefore: codelt;divgt;/code after: codelt;divgt;/code/p pNow the correct class is in place, but we see no change yet - because the codelt;divgt;/code isn’t populating any classes. To fix that, we add the following, again at the top of the template:/p p codehtml {% set title_classes = [ #39;field__label#39;, #39;field__publish-date-label#39;, label_display == #39;visually_hidden#39; ? #39;visually-hidden#39;, ] %} /code /p pAnd update the div:/p pbefore: codelt;divgt;lt;/divgt;/code after: codelt;div gt;lt;/divgt;/code/p pRebuild the cache (drush cr) and… success! well sort of - we still have to add CSS. Note that we also added a custom class of #39;field__publish-date-label#39; in case we want to style it directly. /p pstrongStep 3/strong: Add a codeTHEMENAME.libraries.yml/code file to hold attachment library definitions. /p pThis is pretty simple; it’s a file with the following:/p div class=highlightprecode class=language-yaml data-lang=yamlspan class=l-Scalar-Plainblog/spanspan class=p-Indicator:/span span class=l-Scalar-Plainversion/spanspan class=p-Indicator:/span span class=l-Scalar-Plain1.x/span span class=l-Scalar-Plaincss/spanspan class=p-Indicator:/span span class=l-Scalar-Plaintheme/spanspan class=p-Indicator:/span span class=l-Scalar-Plaincss/blog.css/spanspan class=p-Indicator:/span span class=p-Indicator{}/span span class=l-Scalar-Plainjs/spanspan class=p-Indicator:/span span class=l-Scalar-Plainjs/blog.js/spanspan class=p-Indicator:/span span class=p-Indicator{}/span span class=l-Scalar-Plaindependencies/spanspan class=p-Indicator:/span span class=p-Indicator-/span span class=l-Scalar-Plaincore/jquery/span /code/pre/div pWe then add the directories (code/css/code and code/js/code) and files (codeblog.css/js/code). We’ve also added a jQuery dependency, just so you can see how that’s done. If we had something simple that could be done with a href= JS/a we could leave it off. Note that this won’t actually do anything until we follow step 4 below./p pstrongStep 4/strong: Add a codeTHEMENAME.theme/code file to hold theme hooks (this is actually a PHP file, so start it with codelt;?php/code). /p pThis is the code that appends the library based on the content type. The trickiest part of this is figuring out the correct format of codehook_preprocess_HOOK()/code:/p div class=highlightprecode class=language-php data-lang=phpspan class=xfunction THEMENAME_preprocess_node__blog(amp;$variables) {/span span class=x $variables[#39;#attached#39;][#39;library#39;][] = #39;THEMENAME/blog#39;;/span span class=x]/span /code/pre/div pThe theme hook format for content types is to use codenode__MACHINENAME/code format - two underscores. /p pAfter that, rebuild your cache (codedrush cr/code), and your CSS and JS files should be loading on every instance of that content type, regardless of the page. (full or teaser)/p pAnd that’s it! Note that we could have changed the markup in any number of ways to suit our designs, or even make the template specific to the content type as well as the field./p h3Disclaimer/h3 pThe post was written at the end of 2015 while Drupal 8 was still in a Release Candidate stage. While some effort will be made to keep the post up-to-date, if it’s after 2016, you should probably add the current year to your Google search, or better yet, check the docs on a href= /p

Drupal Aid: Our First Site Built with Drupal 8 - How we did it.

Mon, 11/23/2015 - 11:04
div class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpimg class=img-responsive height=394 src= width=830 //p pI'm happy to say that we relaunched our parent agency's site on Drupal 8 within one day of Drupal 8's release. In this write-up, I'll cover how we did it, the highlights of our experience, and even throw in a few mini-tutorial for strongHow to do a Custom Panel Layout/strong andstrong How to add Meta Tags in Drupal 8/strong. /p pa href= more/a/p /div/div/div

Merge: Drupal 8 + Gulp + BrowserSync

Mon, 11/23/2015 - 10:09
div class=field field-name-field-main-img field-type-image field-label-hiddendiv class=field-itemsdiv class=field-item evena href=/20151123/drupal-8-gulp-browsersyncimg src= width=150 height=150 alt=Drupal + Gulp + BrowserSync //a/div/div/divdiv class=field field-name-body field-type-text-with-summary field-label-hiddendiv class=field-itemsdiv class=field-item evenpYou might wonder whether you need automation task runners like Grunt or Gulp with Drupal. Common usecases for these tools are css/js aggregation/minification but there are at least two ways in which a task runner can help you out in Drupal./p/div/div/div