Planet Drupal

Subscribe to flux Planet Drupal
Drupal.org - aggregated feeds in category Planet Drupal
Mis à jour : il y a 30 min 19 sec

Drupal @ Penn State: Lower the Drupal 8 development barrier to entry by using the Drupal Console to generate boiler plate code.

lun, 11/04/2016 - 18:06

I admit that I haven't really looked at Drupal 8 too much yet. There is a variety of reasons why I haven't and I surely don't want this to turn into a forum listing the pros and cons of D8. We can leave that for another post. 

Catégories: Elsewhere

The Sego Blog: Drupal 8 Module Development Resources

lun, 11/04/2016 - 15:54
04/11/2016Drupal 8 Module Development Resources

This past weekend we were honored to co-host the Drupal Global Training day at DoSomething.org in NYC. This training was focused on Drupal 8 module development. We have been training on the ins and out of Drupal 8 module development for over a year now but this time we changed the format, considerably. I think for the better! 

Using the Role Notices module, developed by Ted Bowman, we put together an exercise that walks you through building the functionality it exposes step by step. We also built a list of resources chock full of links pertaining to various tools and docs for getting your chops up with D8 development. 

All this work is open source and available at this link. I am really hoping that this content can serve as a valuable resource for folks looking to learn the proper flow of developing a Drupal 8 module.

There are so many exciting concepts and programming patterns to explore in D8, we hope you continue to join us during this jounrney. 

Mega thanks to everyone that helped make this happen! 

Catégories: Elsewhere

Acquia Developer Center Blog: The Faichi Story: From Unknown Drupal Shop to Top 10 in 6 months

lun, 11/04/2016 - 15:21

It all started at DrupalCon Barcelona, when Shailesh Gogate, VP at Faichi Solutions, met Johanna Boel Bergmann, the Account Manager, Drupal Businesses at the Drupal Association.

Johanna had never heard of Faichi; she had never seen it in the Drupal.org Marketplace. This even though our company has been working with big enterprise clients for the past five years, as well as contributing to Drupal.org.

That was an eye­-opener for Shailesh. When he returned to India, he shared his findings with Faichi’s engineers and senior management. They took the feedback very seriously. They decided to create a plan to show their presence: not only in the Drupal Marketplace, but to the whole Drupal community.

Tags: acquia drupal planet
Catégories: Elsewhere

Chapter Three: Javascript testing comes to Drupal 8

lun, 11/04/2016 - 13:47

With the arrival of Drupal 8.1.0 finally you can test javascript interactions on Drupal.org. This is culmination of years of work by many developers to improve the testing API and infrastructure. Without the improvements delivered by Drupal 8 it'd be hard to leverage Mink, PhantomJS and PHPUnit to run our tests, and without the new DrupalCI infrastructure we'd have nowhere to run the tests.



Catégories: Elsewhere

Drop Guard: Big update: the new onboarding process, improved patching workflow and more

lun, 11/04/2016 - 12:14
Big update: the new onboarding process, improved patching workflow and more Igor Kandyba Mon, 11.04.2016 - 12:14

Today, we’re excited to introduce you to a number of new features, improvements and fixes for Drop Guard - the first update in the series of releases planned for 2016.  It includes many enhancements designed to improve user experience when creating projects in Drop Guard, support for the "Unsupported updates", and even smarter automated patching workflow. Read below to learn about the major improvements and don't forget to check your Drop Guard account to check it by yourself. Let's dive right in!

Drop Guard features Drupal Planet
Catégories: Elsewhere

Kristof De Jaeger: Taking a (Drupal 8) website offline using AppCache

lun, 11/04/2016 - 11:41
Written on April 11, 2016 - 11:41

A native mobile application which can cache the data locally is a way to make content available offline. However, not everyone has the time and/or money to create a dedicated app, and frankly, it's not always an additional asset. What if browsers could work without network connection but still serve content: Application Cache and/or Service Workers to the rescue!

For Frontend United 2016, Mathieu and I experimented to see how far we could take AppCache and make the sessions, speakers and some additional content available offline using data from within the Drupal site. There are a couple of pitfalls when implementing this, of which some are nasty (see the list apart link at the bottom for more information). Comes in Drupal which adds another layer of complexity, with its dynamic nature of content and themes. Javascript and css aggregation is also extremely tricky to get right. So after trial and error and a lot of reading, we came up with the following concept:

  1. Only add the manifest attribute to all "offline" pages which are completely separate from "online pages", even though they might serve the same content. In other words, you create a sandboxed version of some content of your site which can live on its own. Another technique is a hidden iframe which loads a page which contains the html tag with the manifest attribute. You can embed this iframe on any page you like. This gives you the option to create a page where you link to as an opt-in to get a site offline. Both techniques give us full control and no side affects so that when network is available the site works normally.
  2. You define the pages which you want to store in the cache. They are served by Drupal, but on a different route than the original (e.g. node/1 becomes offline/node/1) and use different templates. These are twig templates so you can override the defaults to your own needs. Other information like stylesheet and javascript files can be configured too to be included.
  3. The manifest thus contains everything that we need to create the offline version when your device has no network connection. In our case, it contains the list of speakers and sessions, content pages and some assets like javascript, stylesheet, logo and images.
Offline in the browser or on the homescreen

Go to the Offline homepage of Frontend United and wait until the 'The content is now available offline!' message appears, which means you just downloaded 672 kb of data - it is really really small, surprising no? Now switch off your network connection and reload the browser: still there! Click around and you'll be able to check the offline version at any time. If you're on a mobile device, the experience can be even sweeter: you can add this page to your homescreen, making it available as an 'app'. On iOS, you need to open the app once while still being connected to the network. We really do hope safari/iOS fixes this behavior since this is not necessary on Android. After that, turn off your network and launch the app again. Oh, and it works on a watch too if you have a browser on it. If that isn't cool, we don't know what else is! We have a little video to show you how it looks like. Watch (pun intended) and enjoy! Oh, in case we make changes to the pages, you will see a different notification telling you that the content has been updated - if your device has network of course.

Drupal integration

We've created a new project on Drupal.org, called Offline App, available for Drupal 8. The project contains the necessary code and routes for generating the appcache, iframe, pages (nodes and views) and settings to manipulate the manifest content. 3 new regions are exposed in which you can place the content for offline use. Those regions are used in offline-app-page.html.twig - but any region is available if you want to customize. Two additional view modes are created for content types and the read more link can be made available in the 'Offline teaser' mode. Formatters are available for long texts to strip internal links and certain tags (e.g. embed and iframe) and for images that will make sure that 'Link to content' is pointing to the 'Offline path'. Last, but not least, an 'Offline' Views display is available for creating lists. We're still in the process in making everything even more flexible and less error-prone when configuring the application. However, the code that is currently available, is used as is on the Fronted United website right now.

This module does not pretend to be the ultimate solution for offline content, see it as an example to quickly expose a manifest containing URL's from an existing Drupal installation for an offline version of your website. Other Drupal projects are available trying to integrate with AppCache or Service workers, however, some are unsupported or in a very premature state, apart from https://www.drupal.org/project/pwa. Note that I've been in contact with Théodore already and we'll see how we combine our efforts for coming up with one single solution instead of having multiple ones.

What about service workers ?

Not all browsers support the API yet. Even though AppCache is marked deprecated, we wanted to make sure everyone could have the same offline experience. However, we'll start adding support for service workers soon using the same concept.

We're also planning to start experimenting with delivering personal content as well, since that's also possible, yet a little trickier.

Links
Catégories: Elsewhere

Evolving Web: Bringing files along for the ride to D8

lun, 11/04/2016 - 03:24

We just upgraded our site to Drupal 8, and a big part of that was migrating content. Most content was in JSON files or SQL dumps, which are supported by Drupal's migrate module. But what about images and other files? How could we bring those along?

We'll show how to write a custom migrate process plugin!

read more
Catégories: Elsewhere

Lullabot: Lullabot DrupalCon Sessions 2016

dim, 10/04/2016 - 10:29

This year we have a stellar lineup of sessions by the Lullabot and Drupalize.Me teams which were accepted for DrupalCon North America being held in New Orleans. Take a look at who is presenting and read a short synopsis of what they’ll be talking about.

Coding and Development Altering, Extending, and Enhancing Drupal 8 - Joe Shindelar A large part of Drupal's appeal lies in its flexibility. The fact that a developer can alter, extend, and enhance almost any aspect of Drupal without having to hack core. Historically this versatility has been made possible through the existence of hooks. Specially named PHP functions that are executed at critical points during the fulfillment of a request. And they've served the framework well for years. But times are changing, and Drupal 8 offers a variety of new patterns that all module developers will be required to learn, and understand. Configuration Management for Developers in Drupal 8 - Matthew Tift Is the configuration system your favorite feature of Drupal 8? Are you interested in doing continuous integration? Do you want to easily export all of your Drupal configuration to code? Interested in building a best practice continuous integration and deployment solution? This session, hosted by co-maintainers of the configuration system, will focus on how Drupal 8's configuration management system works, how to integrate it with a continuous integration system, and what developers can do to extend its power through contributed modules and custom code. Come with your questions and learn more about this magical part of Drupal 8. Core Conversations Drupal (admin) as an application: More JavaScript in core? - Marc Drummond In recent months, much debate has revolved around the compelling user experiences increasingly accompanying the runaway growth of JavaScript frameworks. Some argue that Drupal already has many moving parts and should evolve toward more seamless user experiences with existing tools and better processes. Some argue that Drupal should address this trend with additional capabilities for JavaScript in the form of a JavaScript framework. Some argue we should look at using modern PHP and JavaScript technologies that don’t require a JavaScript framework. Others have positions that fall both inside and outside this spectrum! Learning to Let Go (Contrib Burnout) and Module Giveaway - Dave Reid How can someone deeply involved in the Drupal contributed module ecosystem start to step away? How do we handle burnout not just in Drupal core development, but in contrib? I'd like to engage a conversation based the challenges I have encountered and currently face personally/emotionally on my journey from being one of the top contributors to Drupal 7, prolific writer of modules, to someone starting a family and needing to rebalance their personal, work, and Drupal life. With so much focus on getting people involved in Drupal.org, are there technical solutions we can explore to help make active contributors happier? Drupal.org Documentation Is Getting An Overhaul - Joe Shindelar Having high-quality documentation available for Drupal.org is key to gaining wider adoption, growing the community, and the overall success of the Drupal project. I want to share the work related to documentation going on in the community, as well as some of our plans for continued improvement in the future. Front End Debugging, Profiling, & Rocking Out with Browser-Based Developer Tools! - Mike Herchel Browser based developer tools have become an indispensable tool for modern front-end web development. New features and changes are being added at a rapid pace, and keeping up with all of the changes is difficult, but well worth it! In this session, Mike will walk attendees through modern debugging techniques, tips and tricks, front-end profiling, and more! Sizing up responsive images: Make a plan before you Drupal - Marc Drummond Drupal 8 has built-in responsive images support based off of Drupal 7’s contributed Picture and Breakpoint modules. Understanding how to use those modules without first making a plan could easily lead to a cat-tastrophe! Horizons AMPing up Drupal - Karen Stevenson, Matthew Tift, and Marc Drummond In many cases, the mobile web is a slow and frustrating experience. The Accelerated Mobile Pages (AMP) Project which involves Google is an open source initiative that embodies the vision that publishers can create mobile optimized content once and have it load instantly everywhere. When AMP was first introduced last October 2015, many commentators immediately compared it to Facebook's Instant Articles and Apple's News app. One of the biggest differentiators between AMP and other solutions is the fact that AMP is open source. Beyond the Blink: Add Drupal to Your IoT Playground - Amber Himes Matz What does making a light blink have to do with Drupal? Come to this session to find out how you can add Drupal to your Internet of Things data playground. (THERE WILL BE BLINKING LIGHTS.) Site Building Recoupling: Bridging Design and Structured Content - Jeff Eaton For years we’ve talked about separating content and presentation. Structure, reuse, and standardization are the name of the game in a future-friendly, multi-channel world — aesthetics are someone else’s concern … right? UX Web Accessibility 101: Principles, Concepts, and Financial Viability - Helena Zubkow If your website wouldn't work for anyone living in the state of New York, would that be a launch-blocker? Of course! So why are we ignoring the even larger population of people with disabilities?

Photo by: Jeff Turner and used via Creative Commons License

Catégories: Elsewhere

PreviousNext: Printing any Drupal Entity to PDF

sam, 09/04/2016 - 09:17
Catégories: Elsewhere

ActiveLAMP: Page Manager, Panels, Context - SandCamp 2016

sam, 09/04/2016 - 05:01

Panels, is one of the most mis-understood modules in the Drupal eco-system. Drupal developers seem to either love Panels, or hate it with a passion. Most of the time, when I begin to unwrap why people do not like Panels, it is mainly a misunderstanding of what makes Panels so powerful, Page Manager. In this video, presented at SandCamp 2016, see a mock sports league built out with the Node system and Field system that includes various relationships between the different node types. Watch, as we realize the entity relationships we create through the Field UI through the page manager UI. Lots of power in this suite of tools.

Read more...
Catégories: Elsewhere

Drupal.org blog: What’s new on Drupal.org? - March 2016

ven, 08/04/2016 - 22:32

Read our Roadmap to understand how this work falls into priorities set by the Drupal Association with direction and collaboration from the Board and community.

Drupal.org updates Syntax Highlighting

A WYSIWYG editor(CKEditor) is coming to Drupal.org soon to improve the editorial experience- and to take advantage of the same functionality that made CKEditor the choice for Drupal 8 core. However, as a stepping stone to that goal, we need to ensure that the formatting of <code> blocks throughout Drupal.org is preserved.

This has lead us to using Prism.js for syntax highlighting on Drupal.org. You can see this change in any <code> or <?php> block throughout the site, such as this example of function hook_field_info_alter(); below:

function hook_field_info_alter(&$info) { // Change the default widget for fields of type 'foo'. if (isset($info['foo'])) { $info['foo']['default widget'] = 'mymodule_widget'; } }

This is the first step, but with a better syntax highlighting library in place, we are pushing hard to make CKEditor itself available on Drupal.org.

Documentation Usability Testing

In March members of the Drupal Association engineering team also spent time doing usability testing with a prototype of our new Documentation content type. This testing, performed with a representative sample of users of different experience levels with Drupal, helped validate our design direction for new Documentation pages and Documentation Guides on Drupal.org, and gave us some valuable feedback for further refining our design as we move into implementation. While we're not yet ready to share all the details of the new Documentation experience, we're very excited to share this with the community soon.

Release File Hashes

A file hash can be used to verify the integrity of a file downloaded from a trusted source. Drupal.org provided an md5 hash on the list of a project's releases (here's the release listing for Drupal core, for example), but we have expanded the file hash options to include: md5, sha-1, and sha-256.

Because many users do not use file hashes, these hashes are not displayed by default. Any user who does want to access these file hashes can do so from a toggle on the sidebar of a release page. Your preference for what file hash to view will be saved in your browser's local storage and displayed on all other release pages. The new sha-1 hashes will also be used in upcoming Composer integration.

Communications channels

Taking advantage of the new Sections and Blogs on Drupal.org, we're gradually working on improving our communication channels. It starts with the Drupal blog, and the Drupal.org blog (which you're reading now!) - but will soon affect all the ways we communicate about Drupal the software and Drupal.org the site.

You can learn more about communication channels here.

2016 Elections Complete

Lastly, but certainly not least - the 2016 election for the Drupal Association At-Large board member ended in March. For the first time, we promoted the voting process to all eligible voters with a targeted banner on Drupal.org. This gave us the broadest reach we've ever had when electing a board member, and the most ballots submitted. You can learn more about the elections process and the final vote here.

Congratulations Shayamala Rajaram - and thank you for supporting the community by joining the board!

Sustaining support and maintenance Drupal.org Outages

Unfortunately our work in March was disrupted on several occasions by a particularly tricky series of outages. Seemingly at random one of the Drupal.org webnodes would experience cache corruption and begin serving 500 errors. The issues did not seem to be related to a recent change, a singular area of the site, or an increase in traffic. After some diligent sleuthing we began to see some patterns in the cache corruption.

In the end, we were able to determine that all the outages were linked to the same bug in Drupal core's handling of SchemaCache. Drupal.org has been patched and since then no cache corruption incidents have recurred. With a bit more community review (you can help!), hopefully the fix will be committed to core so other affected sites will not encounter the same issue that we did.

More Improvements and Bug Fixes

We made a few other infrastructural improvements and bug fixes in March as well. Not the least of these was deploying dedicated beanstalkd queue servers, to improve the reliability of Drupal.org job queues, especially when recovering from disruption.

We also fixed a regression on groups.drupal.org caused by the upgrade to PHP 5.4 the previous month. A bug in the date chooser caused the date of an event to be reset whenever the event was edited- an issue that we know was frustrating to many in the community who organize local events.

Lastly, we fixed an issue on jobs.drupal.org to make it easier for companies to renew their featured job listings (without having to reach out to us for manual support). We're seeing a marked increase in the Drupal Jobs interest since the launch of Drupal 8 and we'll continue to improve the Drupal Jobs platform to foster the Drupal ecosystem.

———

As always, we’d like to say thanks to all the volunteers who work with us, and to the Drupal Association Supporters, who made it possible for us to work on these projects.

Follow us on Twitter for regular updates: @drupal_org, @drupal_infra

Catégories: Elsewhere

DrupalCon News: Request your visa letter today

ven, 08/04/2016 - 22:23

If you’re planning on attending DrupalCon New Orleans and will be traveling to DrupalCon from outside the United States, make sure you request your letter of invitation for your visa before next Friday, April 15.

Catégories: Elsewhere

Mark Shropshire: Use Drush Policy to Prevent Overwriting Production Databases and Files

ven, 08/04/2016 - 19:17

There is no doubt that Drush is a magical tool in the Drupal community. Two very useful tools in the Drush "Swiss Army Knife" include drush sql-sync and drush core-rsync. These tools allow copying databases and files between Drupal instances.

If you need to have access to run Drush commands on a production server or via a Drush alias for a production server, policy.drush.inc can help prevent some devastating mistakes. Accidentally overwriting production databases and files can impact you and your clients negatively. The Github gist below shows how the built-in Drush policy functionality can prevent sql-sync and core-rsync from running against any Drupal instance that has a destination with prod in the name. This works for Drush aliases too.

Place the policy.drush.inc file in ~/.drush on the machine you use to run Drush. The code in the gist above prevents operations like drush sql-sync @dev @prod and drush core-rync @dev:%files @prod:%files

Drush's policy.drush.inc allows for a few other functions for validation and alters. It is worth reviewing the options and implementing changes to prevent accidents that can be prevented.

While the above works well, the best way to prevent accidental production issues due to developer mistakes is to have a policy implementing separation of duties. In this sort of policy, developers would not have access to production servers. Devops engineers would handle deploys manually or manage the automation that handles deployments.

Thank you to all of those who have worked so hard to make Drush a fantastic tool that I depend on daily.

Blog Category: 
Catégories: Elsewhere

Chapter Three: Origin Pull CDN in Drupal 8

ven, 08/04/2016 - 17:59

Origin pull CDN is a type of CDN where you don't have to upload files to the CDN server instead CDN does it for you. You only rewrite URLs to point to the CDN. When asked for a specific file, the CDN will first go to the original server, pull the file, cache and serve it.



Origin pull CDNs are easy to set up. However, it’s less flexible and can create redundant traffic as files are re-queried before they have been changed. Also it could be slow when files first loaded or browser tries access expired files.

Catégories: Elsewhere

Advomatic: What do I do with my Drupal 6 site until I decide what to do with it?

ven, 08/04/2016 - 17:17

Those of you who still have a Drupal 6 site are by now aware that you need to do something with it since this version is no longer supported.  Your options in short are: Upgrade to Drupal 7 Upgrade to Drupal 8 Choose one of several options to limit your vulnerability (e.g. convert the site... Read more »

The post What do I do with my Drupal 6 site until I decide what to do with it? appeared first on Advomatic.

Catégories: Elsewhere

Acquia Developer Center Blog: Acquia Academy Ramps Up

ven, 08/04/2016 - 16:56

Acquia is ramping up learning with Acquia Academy, giving the community, our customers, and our partners a guide to Drupal and Acquia Product subject matters to learn, plan, and prepare for future initiatives.

Everyone is a fan of good teaching, since it enables the learner to do more. With the expansive abilities of Drupal and Acquia Products, we want to enable the community to do more no matter who you are or where you came from.

Tags: acquia drupal planet
Catégories: Elsewhere

OSTraining: 4 Ways to Keep Your Drupal Site Healthy

ven, 08/04/2016 - 16:55

A lot of the tutorials published here at OSTraining are solutions to specific problems.

But, how can you keep your site healthy on a daily basis? I'm going to give you some advice on how to maintain your site.

These four steps will help you understand what can go wrong with your Drupal site, and where to start looking for solutions if you have have an issue.

Catégories: Elsewhere

Dries Buytaert: Thunder, a Drupal distribution for publishers

ven, 08/04/2016 - 15:29

Earlier this month, the international media group Hubert Burda Media (about 2.5 billion annual revenue, more than 10,000 employees, and more than 300 titles) released its Drupal 8 distribution, Thunder. Thunder includes custom modules specifically tailored to the needs of professional publishers.

This is great news for three reasons: (1) I've long been a believer in Drupal distributions, (2) I believe that publishers shouldn't compete through CMS technology, but through strong content and brands, and (3) Thunder is based on Drupal 8.

Distributions enable Drupal to compete against a wide range of turnkey solutions, as well as break into new markets. The number of vertical distributions that can be created is nearly limitless, and the possibilities are endless. Thunder is a great example of that.

Professional publishing is one of the industries that has faced the most extensive business model disruption because of the web. Many companies are feeling pressure on their revenue streams, yet you'll find that some companies still focus their efforts on building proprietary, custom CMS platforms as a way to differentiate. This doesn't have to be the case – I've long believed that Drupal (and open source, more generally) can give publishers endless ways to differentiate themselves at much lower costs.

The following video gives an overview of the Thunder approach:

Custom features for publishers

Thunder adds a range of publisher-centric Drupal modules to Drupal 8 core. Specifically, Burda added integrations with audience "circulation" counting tools and ad servers, as well as single sign-on (SSO) support across multiple sites. They've also developed a theme which implements infinite scrolling.

Thunder users also benefit from a range of channel- and feature-specific enhancements through collaboration with industry partners. The following extensions are already available or in the final stages of development:

  • Riddle.com provides an easy-to-use editor for interactive content. The data from the resulting polls and quizzes is available to the publisher.
  • nexx.tv offers a video CMS and their video player. And Microsoft will support the video solution with 100,000 free video streamings per month through their Azure cloud.
  • Facebook will provide a module for integrated publishing to their Instant Articles, exclusively for Thunder users.
Smart collaboration

I admire the approach Burda is taking to bring publishers, partners and developers together from throughout the industry to develop the best open-source CMS platform for publishers.

At the core is a team of publishing experts and developers led by Ingo Rübe, CTO for Burda's German publishing operations, and initiator of Thunder. This team will also be responsible for coordinating the continuous development and enhancement of Thunder.

Under Thunder's policy, all features provided by industry partners must be offered for free or with a freemium model; in other words, a significant part of the functionality has to be provided at no cost at all. Smaller publishers will likely benefit from this approach, as they will be able to use a full-fledged publishing solution that is continuously enhanced and maintained by larger partners.

Big brands are already using Thunder

Although Thunder is still in public beta, Burda has migrated three brands to Thunder. The German edition of Playboy (about 2M monthly visits) was the first to move at the end of 2015. The fashion brand InStyle (about 1.8M monthly visits) and gardening website "Mein schöner Garten" (about 1.5M monthly visits) are also running on Thunder. Most of the other German Burda brands are planning to adopt Thunder in the next 12 months. This includes at least 20 brands such as Elle.de and Bunte.de, which have more than 20 million monthly visits each.

You can download Thunder from https://www.drupal.org/project/thunder.

Catégories: Elsewhere

Pages