Skip to Content

Drupal

CiviCRM Blog: Drupal 8 and CiviCRM - the countdown continues

Planet Drupal - 21 July 2015 - 12:52pm

Drupal 8 is likely to be released around September. Fuzion have been driving the initiative to have CiviCRM ready to roll when Drupal 8 is released. We have CIviCRM currently working on latest beta, and old friends like Views are working fine. But there is still lots to do to get Rules, Entities and Webform working. We expect there to be a MIH (make it happen) campaign launched soon, but we have already had some generous sponsors for our work to help get us this far.

You can give it a try out at http://civid8.fudev.co.nz/ and you can help progress this work by chipping in here http://www.fuzion.co.nz/civicrm/contribute/transact?reset=1&id=4, or you can request that we set you up your own test suite. 
 

If you are happy trying out your own installation, details can be found here https://civicrm.org/blogs/torrance/give-civicrm-drupal-8-test-out

Categories: Drupal

CouchDB Statistics

New Drupal Modules - 21 July 2015 - 11:38am

This is a CouchDB backend for the core Statistics module

Latest release: 8.x-1.x-dev

- Requires patch from #1446932: Improve statistics performance by adding a swappable backend
- Only implements recordHit and fetchViews method
- Day count doesn't reset
- "Popular content" block won't work

Categories: Drupal

Midwestern Mac, LLC: Solving the Emoji problem in Drupal 7

Planet Drupal - 21 July 2015 - 10:39am

On many Drupal 7 sites, I have encountered issues with Emoji (mostly) and other special characters (rarely) when importing content from social media feeds, during content migrations, and in other situations, so I finally decided to add a quick blog post about it.

Have you ever noticed an error in your logs complaining about incorrect string values, with an emoji or other special character, like the following:

PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xF0\x9F\x98\x89" ...' for column 'body_value' at row 1: INSERT INTO {field_data_body} (entity_type, entity_id, revision_id, bundle, delta, language, body_value, body_summary, body_format) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 538551 [:db_insert_placeholder_2] => 538550 [:db_insert_placeholder_3] => story [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => <p>[EMOJI_HERE]</p> [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => filtered_html ) in field_sql_storage_field_storage_write() (line 514 of /drupal/modules/field/modules/field_sql_storage/field_sql_storage.module).

(Note: Actual Emoji was removed from this summary post to prevent Drupal Planet's aggregator from barfing on the feed... due to this very issue!).

To fix this, you need to switch the affected MySQL table's encoding to utf8mb4, and also switch any table columns ('fields', in Drupal parlance) which will store Emojis or other exotic UTF-8 characters. This will allow these special characters to be stored in the database, and stop the PDOExceptions.

Categories: Drupal

WDTutorials.com: How To Expire Nodes With Rules Scheduler (Article + Video) (Drupal 7 Tutorial)

Planet Drupal - 21 July 2015 - 10:09am

How to schedule nodes to be deleted with Rules Scheduler and let people postpone the expiry date with Flags. Users also get an expiration mail before the nodes expire.

Categories: Drupal

Drupalize.Me: Load Testing your Site with Siege

Planet Drupal - 21 July 2015 - 6:01am

Siege is a useful load testing tool to add to your performance testing tool kit. From the website: "Siege is an HTTP load testing and benchmarking utility. It was designed to let web developers measure their code under duress, to see how it will stand up to load on the internet. Siege supports basic authentication, cookies, HTTP, HTTPS and FTP protocols. It lets its user hit a server with a configurable number of simulated clients. Those clients place the server 'under siege.'"

Load testing is useful for testing the performance of your site, and the infrastructure that it runs on. There’s nothing worse than having one of your blog posts end up on Hacker News and then having your site crumble under the load. Siege can simulate activity on your site, and you can then use your site from your browser as you normally would, while your siege is running and really get a feel for how your site responds under load.

This blog post will cover installing Siege on OS X and Linux, and running a basic load test with Siege.

Categories: Drupal

Fancy File Delete

New Drupal Modules - 21 July 2015 - 5:58am

A Module that can finally delete files properly!

What this module can do:

  1. It gives you the choice of manually deleting files by FID (and an option to force the delete if you really want to).
  2. Deleting unused files from the whole install that are no longer attached to nodes & the file usage table. AKA deleting all the unmanaged files.

This module was used on a university project we did and so I thought I would release it to the world!

Categories: Drupal

Advomatic: Decoupling Drupal Without Losing Your Head — Part 1

Planet Drupal - 21 July 2015 - 5:15am
What exactly are we trying to do here? And is there another way to do it? Headless/decoupled Drupal has received a lot of buzz in the last year. But the rise of decoupled Drupal has also been met with due skepticism, as there are significant challenges. We’re not here to further that flame war; you can find... Read more »
Categories: Drupal

InternetDevels: DruDesk: new Drupal website support of the best sort!

Planet Drupal - 21 July 2015 - 5:15am

Innovations from InternetDevels Drupal development company are meant to solve your problems

Let us guess what you are thinking about. Do you have a Drupal website and need some improvements or fixes to be done on it? Does the perspective of having to look for a good Drupal support service give you a headache? Now it’s time for relief!

Read more
Categories: Drupal

Mpumelelo Msimanga: Data First Drupal Development

Planet Drupal - 21 July 2015 - 3:00am
Data First Drupal Development

This post describes by example, a very efficient Drupal implementation methodology that involves first generating the expected data for your system then only using Drupal to manipulate the data. I simplified the implementation of a Drupal based facility booking system by pre-populating the booking entities with all possible booking time slots for the next two years. The only functionality I had to “program” using Drupal was updating the booking status field to booked when a booking was made.

Categories: Drupal

localize.js

New Drupal Modules - 20 July 2015 - 10:12pm

This module provides integration with Localize.js.

Localize is a 1-line of code solution for translating websites. Localize automatically detects the content on your website, loads it in to your dashboard, and provides an easy workflow for getting your content translated and deployed.

Localize automates the entire localization and translation process, decreasing development time from months to days.

Source: https://localizejs.com

Categories: Drupal

Pantheon Blog: Patching and the Composer Workflow

Planet Drupal - 20 July 2015 - 4:13pm
Let’s face it—nobody likes to rely on patches. A project is much easier to maintain when it is using standard versions of all of its dependencies.  Without patches, a project can be kept up to date simply by running composer update. 
Categories: Drupal

Drupal Association News: What’s new on Drupal.org? - June 2015

Planet Drupal - 20 July 2015 - 2:19pm

Look for links to our Strategic Roadmap highlighting how this work falls into our priorities set by the Drupal Association Board and Drupal.org Working Groups.

Drupal.org Iterative Changes to the Front Page of Drupal.org

The home page of Drupal.org has been changing in several small but important ways. The main focus of our design work in June was to provide new community metrics to replace the less meaningful and somewhat misleading metrics that were removed in the previous home page update.

We also updated the text of the Try Drupal button on Drupal.org, to better clarify the purpose of the feature. Try Drupal allows potential users to evaluate Drupal by using a highly polished demo hosted by our Supporting Partners. This gives Drupal newcomers and learners the chance to see examples of Drupal configured at its best, to encourage evaluators to choose Drupal for their needs. The program supports a core part of the mission of the Drupal Association: helping to promote Drupal and grow Drupal adoption.

Improving Drupal.org Performance with Advanced Aggregator

The Association has also been working to improve the performance of Drupal.org using Advanced CSS/JS aggregation, with the help of mikeytown2.

These configuration changes have been made carefully to ensure they don’t degrade the user experience for any user of the site - and are continuing into July.

The Plan Category for Drupal.org Issues

Another small deployment made in June was the addition of a Plan category to the Drupal.org issue queues.

The Plan category codifies the informal [meta] issues into a category selectable within the Issues UI.

This only scratches the surface of a long-buried issue in the Drupal.org issue queues - a lack of project management and prioritization tools. The larger Content Strategy work that the Drupal Association is beginning to implement will help to address this need further with a new Initiative content type to provide better hierarchy and prioritization tools.

Organization and User Profile Improvements Recent Issue Credits (3 months) now appear on individual and organization profiles.

Expanding upon the work the Association staff has done to create a system for credit and attributions in the Issue queues, the Association has begun displaying information about issue credits on user’s Drupal.org profiles.

Whenever a project maintainer has credited the user in an issue when marking the issue closed - the project will appear on the profile, along with a link to a list of the credited issues.

Additional improvements are planned for the crediting UI to allow credit attribution to users who did not comment directly on the issue. The Association will also begin to backfill historical credit data.

Organizations benefit from this change as well. When a maintainer closes an issue and assigns credit, if any of the users being credited have attributed the work to an organization - that issue credit will be displayed on the organization page. This change rewards those organizations that give their employees time to give back to Drupal.

Content Strategy and Visual Design System for Drupal.org

In May, the long-running Content Strategy work culminated the presentation of the Drupal Association’s proposal for a new content model on Drupal.org. In June, after monitoring feedback from the Drupal community and the Working Groups following DrupalCon Los Angeles - we transitioned  from planning the new Information Architecture to planning the implementation details to make the new content model a reality on Drupal.org.

Implementation of the new content model and governance plan is going to involve quite a few changes to the modules on Drupal.org, so we want to approach the implementation iteratively and carefully.

Our plan developed in June calls for us to create the new ‘Why Drupal’ section of the site first. In June, we prototyped an implementation of this first section using Organic Groups and Panelizer and prepared a plan for performance profiling.

Issue Workflow and Git Improvements

The Association Team is excited to implement our vision for new issue workspaces on Drupal.org - including a new spin on the implementation of pull requests.

Work on the Issue Workspaces is slated to begin once major work on DrupalCI is complete, and we are able to retire the PIFT/PIFR testing system without regressions.

However, we were able to remove a blocker to this work by updating our servers for our Git architecture (more below in sustaining support and maintenance.)

Community Initiatives DrupalCI

DrupalCI was a major focus of the Drupal Association staff in June. In June the integration between DrupalCI and Drupal.org was enabled for the first time. DrupalCI is now running in parallel with the PIFT/PIFR testbots to provide us a reference frame to prove out the implementation.

A remaining MVP hit list was codified in June - representing the few remaining issues needed to meet the guidelines set out by the Drupal core developers. (Spoilers: Most of these issues are resolved at the time of this posting in July!).

Going into July the focus will be on providing testing for Contrib through DrupalCI, and then ensuring that there are no regressions in functionality or test result detail as compared to PIFT/PIFR so that the old test bots can be retired.

Once that is achieved, the Assocation’s work on DrupalCI will scale back to maintaining the system’s stability- and more development focus will be provided to our next initiatives.

Localize.Drupal.org

At the end of June we initiated a final round of community testing for the port of localize.drupal.org from Drupal 6 to Drupal 7.

That testing period has ended as of the first week of June, and we are now working together with the community to resolve the issues uncovered by this final testing before deployment.

Revenue-related projects (funding our work) DrupalCons

Registration for DrupalCon Barcelona opened in June, with some small refinements to the registration process from lessons learned in DrupalCon Los Angeles.

Events.Drupal.org did receive one new front-facing feature, an opportunity in the registration process for ticket purchasers to purchase or renew their Individual or Organization memberships with the Drupal Association.

The Drupal Association is also working very closely with the DrupalCon Asia designer in preparation for the full site launch in the coming months.

Better Cart Management on Jobs.drupal.org

On Drupal Jobs we deployed a small update to the checkout workflow to make cart management easier - addressing the top support request that we receive from our users.

Future development for Drupal Jobs continues to be limited to the most high-impact bugs or features identified in the support requests we receive for job postings.

Signature Supporting Partners Page Launched

June also saw the launch of the Signature Supporting Partner program. This required a small update to our supporting partners page to support the new partner category.

Sustaining Support and Maintenance

Final work preparing for deployment of our new git servers was completed in June - but for scheduling reasons the maintenance window for replacing our existing Git infrastructure was scheduled to take place on 7/9/2015. (This deployment was successful!)

Our Fastly CDN deployment for updates traffic (updates.drupal.org) was also successful. Updates now use dynamic purging to reduce the number of requests served by our origin servers and decreases the latency between packaging a release and serving the update data from a number of minutes to a few seconds.

As part of the updates deployment with Fastly, we now have a *.drupal.org wildcard TLS/SSL certificate for https://updates.drupal.org and https://ftp.drupal.org. This enables HTTPS support on all of Drupal.org and its’ sub-sites for the first time.

---
As always, we’d like to say thanks to all volunteers who are working 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.

Personal blog tags: whats new on Drupal.org
Categories: Drupal

Paul Rowell: Repeatable fieldsets in Drupal: Paragraphs

Planet Drupal - 20 July 2015 - 1:46pm

I've talked about a couple of modules to handle repeatable fieldsets before, with a comparison between Field Collections and Inline Entity Form. At Drupal Camp London this year I learnt about a new method: Paragraphs. Below I'll go through the basic setup and implementation of the module comparing it to the previous modules I used.

Categories: Drupal

Bert Boerland: The Orange Suit, E01 something you have. AKA using the Two Factor Authentication module on a Drupal website

Planet Drupal - 20 July 2015 - 12:48pm

Trust, authentication. The key factors of the internet in this age where hacking, privacy and security are the biggest threat to freedom on the Internet. Trust starts with authentication. Authentication starts with identification. For some good background, the decade old ">keynote of Dick Hardt with regards to identity, it is still a classic.

The old adagium is that good authentication can be done by using three factors, something you know, something you have and something you are. For example, a pincode (know), a key (have) and a photo (are).

Two factor authentication combines two of these three for identification, often a password and a one-time-usable code delivered via the phone that you have. Two factor authentication is standard in the offline world, a driver's license (have) with a photo (are) or a bank card (have) with a PIN code (know). And it is about time that we use this Two Factor Authentication (TFA) as the basis for our web presence as well, to log in to your mail, your bank account and to your Drupal website.

This will prevent ugly security incidents or frontpage defacements. People reuse passwords, write them down never change the passwords, have listed passwords or share them and if you have a website where editers and administrators can publically can log in, you will have a security incident waiting to happen.

On drupal.org we use TFA for higher roles. The module being used as d.o is https://www.drupal.org/project/tfa and I do think it should be on every Drupal site.

I always wanted to start a screencast series on Drupal modules for site builders. So it was only logical that the TFA module was the first module I used for this vlog. You can see the screencast called "The Orange Suit" episode 1, "Something you have" and hear why you need this module, how to configure the module and what the module does.


Please leave a comment with your feedback on the youtube video, if you just liked it, thumbs up on youtube: and do follow "The Orange Suit" on facebook and twitter

Suggestions for the next episode are welcome as well via one of those channels.

Categories: Drupal

Filedepot multiupload

New Drupal Modules - 20 July 2015 - 10:15am

This module extends the filedepot module with multiple upload support. Files can be uploaded with the plupload module which supports drag and drop.

This module is sponsored by Onsweb

Categories: Drupal

Midwestern Mac, LLC: Tips for a better Vagrant-based development workflow

Planet Drupal - 20 July 2015 - 10:07am

I build and destroy a lot of VMs using Vagrant in the course of the day. Between developing Drupal VM, writing Ansible for DevOps, and testing dozens of Ansible Galaxy roles, I probably run vagrant up and vagrant destroy -f at least a dozen times a day.

Building all these VMs would be a pain, and require much more user intervention, if it weren't for a few things I've done on my local workstation to help with the process. I thought I'd share these tips so you can enjoy a much more streamlined Vagrant workflow as well!

Categories: Drupal

Damien McKenna: My current Drupal contrib plans for the next month-or-two

Planet Drupal - 20 July 2015 - 9:03am

While I blog about my various contributions at work, I thought it might be useful to mention what my current priorities are. My current plan looks like the following:

Tags: 
Categories: Drupal

Drupal Watchdog: Drupal Taxonomy Tips and Tools

Planet Drupal - 20 July 2015 - 8:23am
Article

When comparing the most commonly-used content management frameworks, web developers typically cite Drupal's robust support for taxonomies as one of its leading strengths. This should come as no surprise to anyone with even minimal experience in using taxonomy vocabularies and their terms in designing and building new websites, largely because they provide a proven way to categorize and make findable the content of any website, with relatively little effort.

Specifically, every piece of content can be tagged with zero or more terms defined within an unlimited number of vocabularies, and these tags can be used in myriad ways for grouping and sorting that content. In the case of a taxonomy term reference used by a view of one or more content types, the sort order and filtering can be specified by the developer using the Views interface or within a custom module, or that functionality can be exposed to the end-user.

The judicious use of taxonomies can be a powerful component of any content strategy that is intended to grow and change. This is true not just for on-page site visitors, but also for people consuming that content in RSS aggregators for whom only some of the content is of interest.

In this examination of some best practices, techniques, and useful contrib modules associated with taxonomies, it is assumed that the reader has a basic understanding of vocabularies and terms

Select Field Versus Taxonomy

When adding to a content type a new field that will contain a value from a predefined list of possibilities, you have the option of utilizing a field of type "List (text)" (or one of the two numeric variants of "List"), and setting the Allowed values list on the field settings page. Or you can employ a taxonomy term reference, which, as the name implies, refers to a term in the taxonomy vocabulary specified when creating the field. Here are some sensible guidelines:

If you want the client to be able to add, change, or remove the allowed values of the field in question, then taxonomy is definitely the right choice. Even if you will likely never alter the list, then a select list should work fine as the field type.

Categories: Drupal

Daniel Pocock: RTC status on Debian, Ubuntu and Fedora

Planet Drupal - 20 July 2015 - 7:04am

Zoltan (Zoltanh721) recently blogged about WebRTC for the Fedora community and Fedora desktop.

https://fedrtc.org has been running for a while now and this has given many people a chance to get a taste of regular SIP and WebRTC-based SIP. As suggested in Zoltan's blog, it has convenient integration with Fedora SSO and as the source code is available, people are welcome to see how it was built and use it for other projects.

Issues with Chrome/Chromium on Linux

If you tried any of FedRTC.org, rtc.debian.org or meet.jit.si using Chrome/Chromium on Linux, you may have found that the call appears to be connected but there is no media. This is a bug and the Chromium developers are on to it. You can work around this by trying an older version of Chromium (it still works with v37 from Debian wheezy) or Firefox/Iceweasel.

WebRTC is not everything

WebRTC offers many great possibilities for people to quickly build and deploy RTC services to a large user base, especially when using components like JSCommunicator or the DruCall WebRTC plugin for Drupal.

However, it is not a silver bullet. For example, there remain concerns about how to receive incoming calls. How do you know which browser tab is ringing when you have many tabs open at once? This may require greater browser/desktop integration and that has security implications for JavaScript. Whether users on battery-powered devices can really leave JavaScript running for extended periods of time waiting for incoming calls is another issue, especially when you consider that many web sites contain some JavaScript that is less than efficient.

Native applications and mobile apps like Lumicall continue to offer the most optimized solution for each platform although WebRTC currently offers the most convenient way for people to place a Call me link on their web site or portal.

Deploy it yourself

The RTC Quick Start Guide offers step-by-step instructions and a thorough discussion of the architecture for people to start deploying RTC and WebRTC on their own servers using standard packages on many of the most popular Linux distributions, including Debian, Ubuntu, RHEL, CentOS and Fedora.

Categories: Drupal

Bootstrap Elements

New Drupal Modules - 20 July 2015 - 6:11am

Implementing the bootstrap form element options for the 3 different form layouts. Adds support for field UI, webform UI and fieldgroup UI.

Categories: Drupal
Syndicate content


Google+
about seo