As we discussed a lot about translation in the previous posts Translation in Drupal 7 : How it works? and TRANSLATION in Drupal 7 : How to work with, let us discuss few points about how to do custom translation to our module and pot(.po) file handling for string translations. Before getting into the custom translation let us know few things about pot file handling. The pot (or) potx file which will be with extension .po. This pot(.po) file can manually be created or this can be generated with the help of the drupal module called Translation template extractor.
Let us see, how to generate the pot file for translation. First we need to enable the Translation Template Extractor module. Once the module is enabled, you will be seeing the “Extract” tab in the TRANSLATE INTERFACE section under REGIONAL AND LANGUAGE.
Now create a custom module and build all your required functionalities in the module and before enabling it, now go to the Extract Tab in Translation Interface, there you can find you module listed under Directory "sites/all/modules".
I’ve recently been working on a jQuery plugin that uses a HTML5 video as the background for a page. An idea that perhaps owes far too much of it’s inception to splash pages, it was worth investigating; as a test for HTML5 video player development and because of it’s interesting use of the video element.
This blog explains about how to set up video background in drupal. There are many plugins available to create background video in drupal and I am going to discuss jQuery videobackground plugin. The plugin should work in any browser that supports HTML5 video.
First you have to download jquery-videobackground plugin from here and place it at theme's js folder, for ex: sites/themes/theme-name/js/jquery.videobackground.js
Next you have added the following jQuery code in your custom js file
A callback should allow you to use the other buttons. It’ll look something like this:
This month, we got to hold our public board meeting, well, in public. Mostly all together in Barcelona, we met in the middle of DrupalCon to share some updates with the board and community. As always, if you want to catch up on all the details, you can find everything you need to know about the meeting online, including minutes, materials, and a video recording. If you're just here for a summary view, read on!Drupal 8 Accelerate is fully funded
Early in 2015 we set out to do something that we have never done before: raise $250,000 to get the next release of Drupal out the door. I am thrilled to share that we met that goal at DrupalCon Barcelona, with the last donation coming in from Exove just before Dries took the stage for his keynote. Drupal 8 Accelerate allowed the Drupal core maintainers to identify issues that needed immediate attention and pay contributors to make their time available. Additionally, community members were able to propose sprints and other initiatives to help crush D8 release blockers. We've made over 50 grants around the globe through the program, resolving hundreds of issues. We want to thank everyone in the community who donated and helped spread the word about the campaign, including our anchor donors, Acquia, Appnovation, Palantir.net, Phase2, Wunderkraut, PreviousNext, and Drupalize.me.D8 release candidate communications plan
We all heard some very exciting news during the Barcelona #Driesnote. Unless we come across any major unexpected hiccups, we'll have a Drupal 8 release candidate ("RC") on October 7. At the Association, we're gearing up to work with the community to shout the RC news, and then the full release news, from the rooftops. We shared the plan at the public board meeting, and are asking the community for help in two specific areas. First, we need your help educating people about Drupal 8 features and how they can be used. We also need your help sharing how Drupal 8 will meet the needs of specific audiences. We'll be updating the Drupal 8 landing page over the next few weeks and want to fill it with all of your great work. Here's the kind of content we're looking for:
Here's how you can share in the D8 release fun:
- Planning on hosting a release party? Share the details and we'll help spread the word about your event.
- Are you already building sites with Drupal 8? Share a link in social media and tag it #madewithdrupal8. You can also add it to the list on groups.drupal.org.
- If you have demos, white papers, blog posts, or some other materials that talk about the virtues of D8, share it on social media and tag it #drupal8rc.
Every year the Drupal commmunity nominates and elects one individual to serve a 2-year term on the Association board of directors. If you're interested in what the board does and why you might want to consider running, you can check out this blog post and presentation from last year. We'll be holding the next elections in the first three months of 2016, so we took some time in Barcelona to talk about the process. You can review the presentation from the meeting, and here are the key dates for the next election:
- Nominations (February 1-19, 2016)
Meet the candidates (February 22 - March 4, 2016)
- February 23 session at 7am Pacific
- February 24 session at noon Pacific
- February 25 session at 4pm Pacific
- Voting (March 7-18)
- Ratification and communication (March 25)
We also took a moment to thank long-time board member Angie Byron (webchick) for her service on the board. Angie's term ends in November, and she is stepping down from her board role to focus on making the Drupal 8 release as big as possible. One a personal note, I am so grateful for the opportunity to work with Angie so closely for so long. Her ability to be honest and kind at the same time is something that I have tried to learn from every time I interact with her. Thank you Angie for everything I have been able to learn from you.
Part of my job is to get my hands dirty with technologies I stumble upon. I've decided to have a go at React. Well, one thing led to the other and it seems I went down the client side rabbit hole. I'd like to share with you my path - watch out though, it's a slippery slope."Hello World" in Elm
It all started with this Thinking Flux video which explains the problems Facebook faced in its front-end and the new application architecture they are now using.
Since the Flux concept was out, different libraries were written implementing it, but in my view it seems that Redux is the winner in terms of simplicity, popularity, docs and community. I really recommend going over it - at least the intro and basics. You might be tempted to actually learn a bit of React (tutorial) to follow the examples more easily.
Then I saw Redux was crediting Elm for some of its inspiration, so I decided to give it a quick look. I was immediately blown away by Elm. The syntax is weird (unless you know Haskell), it has a crazy learning curve, but a lot of it makes so much sense.
The following recording is a presentation I first gave internally for Gizra devs, then as a BoF in DrupalCon Barcelona, and finally recorded to share it with everyone.
My goal is to get more people excited about Elm so the community and contributions grows. I feel it is now very much like Drupal about 10 years ago - a small community, far from being mainstream, but with a lot of potential.
Maybe if we'll draw from Drupal's experience in building and cultivating a community we'll be able to bring this awesome tool closer to the mainstream.
The Drupal Association has partnered with Niswey, an India-based marketing firm, to provide marketing materials for DrupalCon Asia. Every few weeks, we'll be sharing the blogs and comic strips that our Niswey friends have created in anticipation of the convention.
Workbench moderation works by allowing you to keep a new revision of your content as a draft (or unpublished) while an older revision remains as your published version. Out of the box Drupal handles this beautifully, most of the time. However, once you start adding contributed and/or custom modules, things can start to get hairy.
For example, Path module will generate a new alias each time your node is saved (if you define one in your node’s settings). This is great when the latest revision is your published content, but when the latest revision is a draft, you’ll want the keep the old alias until you publish the draft.
The next (and hopefully final!) beta release for Drupal 8 will be beta 16! (Read more about beta releases.) The beta is scheduled for Thursday, October 1, 2015. To ensure a reliable release window for the beta, there will be a Drupal 8 commit freeze from 00:00 to 23:30 UTC on September 30 (later on today).
Beta 16 will include a couple of important changes, including the removal of the ! placeholder from t(), and the moving of vendor code from /core/vendor into /vendor.
The Webform module is a powerful ally when you need complex forms. In this video I talk briefly about when you can use Webform, what different components that ships with the module and also a little about the functionality the the module offers when is comes to sending emails and showing the information added to the webform.Read more
Drupal 8 has only 4 critical issues before getting released out of beta! Fingers crossed for a release this week!
The major issues that remain are:Drupal PlanetBusiness Intelligence
With Drupal 8 on the horizon, now is a good time to start using it. The best way to learn the new version is to build something with it.
Over the next few weeks, I'll be publishing a series of tutorials teaching you how to create a blog in Drupal 8. The aim of the series is to help new comers, as well as experienced site builders, how to create a blog website using Drupal 8.
Throughout each tutorial, major changes between Drupal 7 and 8 will be highlighted. Even if you know Drupal 7, follow along and you'll learn what's new in Drupal 8.
In this first tutorial, you'll learn how to create a Blog content type and how to add custom fields. You'll also learn about the Taxonomy system by creating your own vocabulary to categorize blog posts.
Do you want many of the benefits of the new Drupal 8 admin area, without actually needing to upgrade? Check out the Adminimal theme.
Adminimal provides a responsive admin area for Drupal 7 sites.
Adminimal also has several usability improvements. For example, Adminimal has colored buttons for common tasks like Submit, Preview and Delete to them easier to see. Adminimal also provides improved layouts for the Configuration, and Module screens.
In this video, taken from our Better Drupal Administration class, Robert Ring introduces you to Adminimal:
This year marks a particularly exciting BADCamp for us. On Friday, October 23, we’ll be leading two official half-day trainings on Salesforce and RedHen CRM!
We talk a lot about Salesforce and RedHen on our blog, which is inevitable given how much time we spend working with both. Given that the Drupal Salesforce Suite we wrote and maintain powers over 1,200 sites, we decided we should talk about it more! Lev Tsypin, Tauno Hogue, Greg Boggs and I will be your trainers for the day.RedHen CRM: Exploring CRM Solutions That Extend Drupal
This half-day workshop will begin with a detailed review of the modules that make up the “RedHen CRM ecosystem.” We’ll then show you how to leverage RedHen for building advanced CRM-driven solutions. A hands-on training, we will help you configure and customize your own RedHen instance, and we will teach you best practices for building solutions on top of this module suite. We’ll cover tools in the RedHen ecosystem, including memberships, donations, campaigns, engagements, deduping contacts, and integrating RedHen with other Drupal standard bearers such as Views, Rules, Context, etc.Integrating Drupal and Salesforce: The World’s Most Flexible CMS Meets the Most Powerful CRM
After lunch, the latter half of our workshop block will start with the basics of configuring mappings between Drupal entities and Salesforce objects and leveraging typical Drupal development workflows. Then we'll dive deeper into complex scenarios including managing large datasets, customizing behaviors as objects are synced, and managing errors.
If you’ve ever wanted to talk to us in person about our work, or how to better leverage these CRMs to meet yours or your client’s needs, now’s your chance. These trainings are FREE (it’s $20 to reserve a seat, but that $20 will be refunded) and space is limited, so register early!
This is part two of the series “Headless Drupal & Node.js”, for part one, click here. In this blog I will give you a 'Hello Node' introduction.About Node.js
Node.js uses complex techniques and can therefore be confusing to work with. It is therefore not suitable for the novice web developer.
At DrupalCon I arranged for a 9 metre squared floor decal celebrating the top 1000 contributors to Drupal 8. So many of you asked for access to the original artwork, and many who could not be at the conference, so I have prepared this page so you can!
It was such a delight to witness so many Drupalists, with a great sense of pride, photographing theirs and friends names, sharing on social media. The larger a name is, the more they have contributed. But honestly if your name is there, bravo to you!
Below the tag cloud is clickable so you can reach each persons D.O account. There is also attached a PDF version so you can print it if you like.
I used DrupalCores.com for source data and Tagul.com to produce the artwork. I hope you enjoyed seeing it and look forward to seeing you at future Drupal events.File: Drupal8.pdf
DrupalCon is not only about sessions, though they are a big part of the conference. Up to 10 presentations at the same time ensure, that there is quality content for any audience. At the same time, many things happen alongside of the sessions.
Some of the side activities might be really familiar to anyone who has attended a Drupal event; some might be hidden gems that I would definitely recommend checking out.
Drupal is all about the people behind the great software we are using. Let's find out together what happens during DrupalCon.
Before starting with the actual conference, we did the second Tour de Drupal. This time, we were a much smaller team. Christian and I started in Andorra, cycling over the Pas de la Casa over the French boarder and back to Puigcerda, Spain on Friday. The next day we took a train to Vic and biked over some nice hills and down to sea level located Blanes.
Finally, on Sunday, the Tour de Drupal crew was completed when Gaele joined us from his 2 weeks cycling trip, along with Martin, for the final lap from Blanes to Barcelona alongside the beautiful beaches.
The local Spanish community and other conference attendees welcomed the Tour de Drupal team. At a beach bar next to the conference centre we got to see some nice fireworks from the city centre. Pictures from Tour de Drupal Barcelona 2015 are available here.
We got to the conference on Monday, where community members where already working on fixing the last critical bugs for the upcoming Drupal 8 release during the extended sprints. There are always a few people taking pictures, including for example Paul Johnson. We were also glad to see Boris Baldinger, former Amazee Labs colleague, join us for DrupalCon as part of his new business as full-time photographer.
Mondays at DrupalCon are often underestimated as just a day of arrival, attending trainings, or participating in the business summit. But besides that, there is a room full of sprinters and there was also a community kick-off event happening. People interested in the inner workings of the Drupal community joined together to discuss internal topics like event organization and best practices - for example.
On the ground floor, companies were busy preparing their sponsor booths in the exhibit hall. We from Amazee Labs traditionally see DrupalCons as a big investment; we are sponsors, and put a lot of work into our booth. In this way we can both support the Drupal community by facilitating such an important event but also represent our brand across the community and provide visitors and employees a comfortable area to discuss business and hang out.
The evenings and nights after DrupalCon are packed with social events where community members gather to chat, drink, or eat together in a more relaxed atmosphere.
Tuesday morning, just before the Keynote by Drupal founder Dries Buytaerd (aka "Driesnote"), Robert Douglass, Jeffrey "Jam" McGuire, and a team of creative community members present the "Prenote". Each DrupalCon, they come up with a great show explaining Drupal to newcomers and share regional fun facts about the hosting city or country.
After each keynote there is a moderated Q&A where Mike Anello asks questions collected via twitter, which provides a great way to discuss instant feedback from the audience on the presented topics. Check out the hashtags #driesnote, #DCNahai, #DCRozas, #DCBell for more info.
Just after the first keynote, all conference attendees gather outside for a big group picture. This time, more than 2000 folks interested in Drupal joined in. That's Diana up there at the top, the DrupalCon production lead, strapped in a safety harness to get the shot!
Drupal heavily relies on contributions by individuals who invest a lot of time into making the system better. Drupal 8 has an incredible amount of more than 3000 active contributors. In the sponsor hall, the Drupal8 Contributors Hall Of Fame, contributed by CTI Digital, visualized all the names as a floor graphic.
Tuesday evening, the local Drupal association threw a great party at the beach with live music allowing the diverse crowd to connect with each other in an open, outdoor environment.
Alongside sessions and workshops, many interviews were held, capturing voices from influental community members about the current state of Drupal, and their experiences doing business and working with the community.
To compensate for heavy coding sessions and deep technical discussions, Drupalists also hang-out with each other and just have a good time at the beach, swimming or enjoining the ocean breeze.
While most of the sessions are related to technical topics, there is also another track that I find really interesting. In Core Conversations, we discuss how to improve our processes, what works well, and what needs to be fixed in order to work well together. On the above picture, you can see YesCT, kgoel, bfr, and alimac in their session Paid contribution: past, present, and future.
Drupal core development is a constantly evolving process. In the Drupal 8 release cycle, initiatives where introduced to allow breaking down the complexity of tasks into different areas. Now, with the Drupal 8 release coming up soon, Dries and the team of core committers took a chance to do a retrospective on what went well and what needs improvement: Drupal 8 retrospective with Dries.
In the closing session, the next big DrupalCon events are announced. Besides Frontend United Ghent (May 27-28, 2016), Drupal Dev Days Milano (June 2016), DrupalCon Asia (Feb 18-21, 2016), DrupalCon New Orleans (May 09-13, 2016) and DrupalCon Dublin (September 26-30, 2016) were announced. In the above picture you can see the enhusiatic Indian community promoting their local event.
On Thursday evening, "Trivia Night" was on! A fun Irish-style pub quiz with questions on Drupal and picture puzzles.
Conference attendees from various countries and continents celebrate the game together.
Friday is the official sprint day of DrupalCon. The entire day is dedicated on workshops that allow contributors to improve Drupal core and contributed modules. Our sucessful mentoring system ensures that new contributors are onboarded properly to Drupal's contribution systems and processes.
A great collaborative effort is being made to facilitate moving Drupal forward, while at the same time providing free training for anyone interested in learning new systems first-hand from the experts in Drupal.
There were three rooms full of contributors: one with a First-Time Sprinter Workshop, a second one hosting a Mentored Core Sprint and a third one where contributors work in a self-organized way on different initatives per table. As part of the #d8rules initiative, I led a sprint table for porting the Rules module to Drupal 8.
There is a lot going on during DrupalCon. Thanks to everyone for organizing and making DrupalCon such a multifaceted event!
More photos can be found on the Amazee Labs flickr account:
- Tour de Drupal Barcelona 2015
- DrupalCon Barcelona Day 1 - Monday: Trainings, Business Day, Sprints, Community Kickoff, Amazee Labs Party
- DrupalCon Barcelona Day 2 - Tuesday: Prenote, Driesnote, Group Photo, Sessions, Local Community Party
- DrupalCon Barcelona Day 3 - Wednesday: Sessions, Social Activities
- DrupalCon Barcelona Day 4 - Thursday: Sessions, Trivia Night
- DrupalCon Barcelona Day 5 - Friday: Sprints
- DrupalCon Barcelona Day 6 - Extended Sprints