Feed aggregator

Clemens Tolboom: The state of ReST in Headless Drupal 8

Drupal Planet - Thu, 2014-10-09 04:37

One of the Drupal 8 initiatives was to make "headless" Drupal core work out of the box. Drupal now has a ReST API.

This allows you to use all the Drupal 8 features to edit your content but present the content not only on a Drupal frontend but also on mobile apps or anything else that can work with JSON data.

Categories: Drupal

Cocomore: Field collections exposed

Drupal Planet - Thu, 2014-10-09 04:03

Field collections is a nice contributed module that extends the default Drupal entity functionality by creating a new entity field that can be composed by other fields. With this module we solve problems like creating complex entities where we want to store multiple different values into one single field.

read more

Categories: Drupal

Deeson: Drupal Panels setup for clean markup

Drupal Planet - Thu, 2014-10-09 04:00

It’s a fact that you get a hideous amount of markup with the Panels module straight out-of-the box, even if you use it to create a single column page without changing any of the options.

This is because each layer of the rendering process brings its own markup to the party. 

Panels and layers

Panels are structured in layers, which is what makes them so flexible for any given requirement. Within a layout sit the regions and inside these are panes.

Each of these panes are configurable by providing CTools plugins. You can render panes and regions with style plugins and the layout with a layout plugin.

Each of these layers have their own wrapping markup and things can get excessive quickly. 

Help is at hand

Luckily for us, there’s quite a lot of help for Panels straight out-of the-box. Firstly, there’s a ‘naked’ style plugin which drops all the wrapping markup and can be applied to your panes and regions. While this is a good start, the layout will still need markup specific to the site’s theme.

You can override each Panels layout as it’s presented by a theme hook. It’s literally as simple as copying a template to your site. 

For most simple panels, it’s just a case of copying the panels-onecol.tpl.php file into the theme and customising it. 

If you’re using a CSS framework or grid system (we use Bootstrap at Deeson) then this file is where you can re-work the markup to be specific to the system you are using.

My Panels page

Keeping all this in mind, I’ve created a simple Panels page which lists recent content to authenticated users. It’s built from a bean, a view (with an access rule) and some custom markup. It uses the one col layout.

Here’s my oh-so-simple panels-onecol.tpl.php file in my theme:

<div class="panel-display panel-1col clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>> <?php print $content['middle']; ?> </div>

And here’s the markup you’ll get when viewed as an unauthenticated user:

<section id="block-system-main"> <div class="panel-display panel-1col clearfix"> <div class="panel-pane pane-block pane-bean-recent-content-header"> <h2 class="pane-title">Recent content</h2> <div typeof="" about="/block/recent-content-header" class="entity entity-bean bean-editable clearfix">[...]</div> </div> <div class="panel-pane pane-custom pane-1"> <p>Login or create an account to view this content...</p> </div> </div> </section>

Let me know what you think!

Categories: Drupal

Open Invention Network Grows Despite Patent Troll Death Knell

Slashdot - Thu, 2014-10-09 02:59
snydeq writes Membership in the Open Invention Network, a software community set up to protect Linux against patent aggressors, has grown dramatically in the past year just as the tide seems to be turning on patent trolls. "Why all this interest in OIN? It offers little protection against nonpracticing entities — patent trolls who are organizationally small companies, even if the threat they pose is expensive and large. But it does offer protection against an equally insidious threat: big trolls," writes Simon Phipps. "The big corporations show up with their giant patent portfolios, threatening legal doom if royalties aren't paid. Attaching royalties to product or service delivery is a serious issue for companies, reducing margins long-term — especially in business models where the monetization is separated from the product. But OIN neutralizes that strategy for those building with open source, as the big corporations in the network both license their patent portfolios in and commit not to litigate against the open source software in the Linux System Definition. The bigger it gets, the better it protects."

Read more of this story at Slashdot.








Categories: Linux News

What's Been the Best Linux Distro of 2014?

Slashdot - Wed, 2014-10-08 21:55
An anonymous reader writes With 23% of the year remaining, Linux Voice has donned flameproof clothing to subjectively examine what it feels have been the best distros of the year so far, including choices for beginners, desktop fashionistas and performance fetishists, before revealing a surprising overall winner.

Read more of this story at Slashdot.








Categories: Linux News

LevelTen Interactive: Why Organizations Struggle With Web Analytics

Drupal Planet - Wed, 2014-10-08 17:42

Web analytics software is being used in most organizations for basic analysis and reporting, but provides little (if any) actionable insight into marketing efforts. Many people login to analytics searching for “the magic answers to their business problems”, but they don’t have specific goals, or challenges they want to analyze/address. Then they become overwhelmed with the amount of information they receive. They throw their hands in the air and concede defeat.... Read more

Categories: Drupal

Phase2: DrupalCon Amsterdam Roundup

Drupal Planet - Wed, 2014-10-08 15:44

As I write this, I’m on a plane back to the US after a whirlwind 10 days in Amsterdam for DrupalCon Amsterdam 2014. As always it is so gratifying to meet and work with the international Drupal community. I love getting to take a look at what everyone is working on and collaborate with people that you might otherwise only know as IRC nicks. Here are my highlights of DrupalCon Amsterdam:

Sprints and Drupal.org Logging

I volunteer my time to help the drupal.org infrastructure team with their logging infrastructure. I was very happy to be able to sprint for 3 days, mainly on drupal.org infrastructure. On Sunday, Friday, and Saturday, I worked with the Drupal.org Puppet configuration to get a new CentOS 6-based log aggregation host ready to go running the latest versions of the ELK (ElasticSearch, Logstash, and Kibana) stack. The new Logstash configuration that we’ll be rolling out is much simpler. Stay tuned to the blog for information on some of the improvements we made in the process. We hope to deploy the new logging host within the week.

DevOps Meetup

Tuesday evening, I attended the DevOps Amsterdam meetup.  The meetup was sponsored by ElasticSearch, who bought a delicious dinner for all attendees as well as some drinks. During dinner, I sat with some folks from Germany and had a chance to speak with a number of ops-attuned folks about Docker and the possible use cases for it.

The meetup had some great content. There was a talk on how GitLab uses omnibus to package GitLab with far less hassle, a talk from fellow d.o infra team volunteer Ricardo Amaro on building the next-gen Drupal testbot on Docker, and a great talk from the DrupalCon Amsterdam DevOps chair Bastian Widmer on developing culture and sharing knowledge in an agency.

LSD Leadership Meeting

Earlier this year, Phase2 contributed some of its innovation hours to the LSD project and worked with Acquia to present a webinar on Behat and release a pre-built virtual machine designed to make it easy to start doing automated testing using Behat. During the LSD leadership meeting I joined Melissa Anderson of Tag1 Consulting and Hugh Fidgens of Pfizer in a breakout session discussing Behat. Quite a few organizations present were very interested in how they could use Behat to enable a behavior-driven development workflow with their developers, or to develop a good set of automated tests that could be run either as smoke tests or as end-to-end integration tests.

Behat Everywhere

In addition to the LSD leadership meeting, automated testing and BDD were topics on everyone’s minds throughout DrupalCon.

I attended 2 BoF about automated testing or Behat, the Testing Drupal 8 BoF, and Hugh Fidgen’s Organizational Behat BoF. These talked about how we could better leverage automated testing tools in Drupal core and in client work we build today, respectively. Many people have had some success in getting automated tests or a BDD workflow started, but there was a lot of talk about writing good sustainable tests and how to integrate these tools into your workflow.

Speaking of writing sustainable tests, my favorite session of the conference was definitely the session by Konstantin Kudryashov (the creator of Behat and Mink) on how to do BDD with Behat. The session was remarkable and left an impact on many folks who went there. It really emphasized the point that BDD must be about identifying and delivering business value in our projects, and that doing that is the way to write good tests. It is definitely worth an hour of your time to watch.

As testing best practices are refined in the Drupal community as well as in Phase2, I’m very excited that the talented Jonathan Hedstrom has joined the Phase2 team.  Jonathan is a maintainer of the Behat DrupalExtension, and is sure to help us further refine our testing practices as Phase2. Jonathan has been doing work recently on upgrading the DrupalExtension to support Behat 3 and has plans to generalize the drivers that the Behat DrupalExtensions provides so that it could be used with Mink for writing tests in straight PHP without needing to use Behat.

My “Open Source Logging and Monitoring Tools” Session

On Wednesday I presented my session “Using Open Source Logging and Monitoring Tools.” I covered a lot of information in my session including using Logstash, ElasticSearch, and Kibana.  Thanks to the tireless work of the DrupalCon A/C crew, the video recording of my session is online, and the slides are available on SlideShare if you would like to follow along.  The session had an excellent turnout, and there were some great questions and discussions following my session. I was quite pleased at the large turnout, and so was @KrisBuytaert, who been bringing information about DevOps-related topics to DrupalCons for years.

I need to rephrase my state of #devops and #drupal conclusion, 2 years ago in Munich there were 10 people in this talk ..(1/2)

— Kris Buytaert (@KrisBuytaert) October 1, 2014

Back then by @samkottler , this year @stevenmerrill ‘s talk is packed , we are winning this ! #logstash, #drupalcon #elasticsearch

— Kris Buytaert (@KrisBuytaert) October 1, 2014

We were also fortunate to have Leslie Hawthorne of ElasticSearch in the audience. She gave out ElasticSearch ELKs to sprinters at the Friday event.

Packed house for @stevenmerrill in #DrupalCon #DevOps track. About to learn how the d.o infra team uses #elkstack pic.twitter.com/MThDhkA48E

— Leslie Hawthorn (@lhawthorn) October 1, 2014

Takeaways

Based on the sheer number of people interested and sessions to devoted to both topics, it is clear that there is a growing interest in both logging and metrics and automated testing or BDD in the Drupal Community. This is also the 11th DrupalCon I’ve been to, and this year’s keynotes were the best I could remember. I really enjoyed Dries’s ideation around sustainable methods for getting contributions to Drupal core and contrib, and getting to see Cory Doctorow speak live about the perils of DRM and restrictions software freedoms was also excellent.

This is an exciting time for Drupal. Drupal 8 beta 1 is live. The community is active and engaged around making Drupal better, both by contributing to Drupal 8 and by doing a better job testing projects built on it. The DA and an army of volunteers have made huge strides on improving the infrastructure around core testing as well as around all the online communities under drupal.org.

Categories: Drupal

Mediacurrent: Drupal Agency, Mediacurrent, Awarded Best Overall SMB by Salesforce

Drupal Planet - Wed, 2014-10-08 15:33

Today, Mediacurrent is extremely proud to announce that we have been named the 2014 Best Overall Small Business by Salesforce. The award celebrates the best overall marketing and sales story at the SMB level (1-100 employees). Over 100,000 companies use Salesforce, and hundreds of nominations were submitted for the Salesforce Surfboard awards, so saying “we’re honored” to, not only be nominated, but win this award would be an understatement.

Categories: Drupal

Mark Shropshire: DrupalCamp Atlanta 2014

Drupal Planet - Wed, 2014-10-08 14:54

As expected, I had a great time at DrupalCamp Atlanta 2014 last weekend. While I enjoy attending sessions, it is the chance to catch up with old friends and make new ones that I love.

I want to thank all of those who made this camp a great one (sponsors, ADUG, presenters, volunteers, and attendees)!

Some of my session notes can be found below (unedited):

Sessions Blog Category: 
Categories: Drupal

Acquia: Drupal 8 - An intro field guide for front-end developers

Drupal Planet - Wed, 2014-10-08 13:22

Drupal 8 is almost here, and it’s bringing big front-end improvements, including new methods to display data on mobile devices using breakpoints, build flexible templates in Twig and better management for tools and libraries.

Most importantly, changes to the display layer mean that Drupal has become much more agile and extendable for Front-end Developers.

The journey so far

Up till now, Front-end Developers have been working with a display layer that was originally introduced in Drupal 4.5, here’s how it worked...

Categories: Drupal

AMD Building New GPU Linux Kernel Driver To Unify With Catalyst Driver

Slashdot - Wed, 2014-10-08 12:53
An anonymous reader writes: AMD is moving forward with their plans to develop a new open-source Linux driver model for their Radeon and FirePro graphics processors. Their unified Linux driver model is moving forward, albeit slightly different compared to what was planned early this year. They're now developing a new "AMDGPU" kernel driver to power both the open and closed-source graphics components. This new driver model will also only apply to future generations of AMD GPUs. Catalyst is not being open-sourced, but will be a self-contained user-space blob, and the DRM/libdrm/DDX components will be open-source and shared. This new model is more open-source friendly, places greater emphasis on their mainline kernel driver, and should help Catalyst support Mir and Wayland.

Read more of this story at Slashdot.








Categories: Linux News

Acquia: 1st DrupalCon, 1st Contribution! Meet Oliver and Victoria

Drupal Planet - Wed, 2014-10-08 12:18

DrupalCon Amsterdam was something of a family outing for me. My wife Francesca attended all week and my kids were able to come out Thursday evening to attend Trivia Night and the Friday sprints. My daughter Victoria had sewn a dress and a cape to appear as Drupal Girl on Thursday evening. Her weeks of work on that really paid off; she was a big hit. She also got to meet her Drupal idol, MortenDK, who was the inspiration for her brand new Drupal.org and Twitter username: Drupal_Princess. There's a great photo of her meeting Webchick floating around online, too.

Categories: Drupal

Appnovation Technologies: OS Initiative Community Site Launched

Drupal Planet - Wed, 2014-10-08 11:28
The community site for our OS Initiative is now live! var switchTo5x = false;stLight.options({"publisher":"dr-75626d0b-d9b4-2fdb-6d29-1a20f61d683"});
Categories: Drupal

mcdruid.co.uk: How to cleanly delete a Drupal file with drush

Drupal Planet - Wed, 2014-10-08 10:43

This is a simple trick which (unless my googlefu simply failed me) I didn't find described anywhere when I had a quick look:

$ drush ev '$file = file_load(21749); var_dump(file_delete($file, TRUE));' bool(true)

This means all the appropriate hooks are called in file_delete so the Drupal API gods should smile on you, and you should get to see the TRUE/FALSE result reflecting success or otherwise. Note that we're passing $force=TRUE "indicating that the file should be deleted even if the file is reported as in use by the file_usage table." So be careful.

To delete multiple files you could use file_load_multiple but there's not a corresponding file_delete_multiple function, so you'd have to loop over the array of file objects.

That's all there is to this one.

Categories: Drupal

Systemd Adding Its Own Console To Linux Systems

Slashdot - Wed, 2014-10-08 10:22
An anonymous reader writes: The next version of systemd is poised to introduce an experimental "systemd-consoled" that serves as a user-space console daemon. The consoled furthers the Linux developers' goal of eventually deprecating the VT subsystem found within the Linux kernel in favor of a user-space driven terminal that supports better localization, increased security, and greater robustness of the kernel's seldom touched and hairy CONFIG_VT'ed code.

Read more of this story at Slashdot.








Categories: Linux News

10/07 ArchBang 2014.10.07

Distrowatch - Wed, 2014-10-08 06:05
Categories: Distros

GNOME 3 Winning Back Users

Slashdot - Wed, 2014-10-08 05:22
Mcusanelli writes: GNOME 3, the open source desktop environment for Linux systems that once earned a lot of ire, is receiving newfound praise for the maturity of GNOME Shell and other improvements. The recent release of version 3.14 capped off a series of updates that have gone a long way toward resolving users' problems and addressing complaints. One of the big pieces was the addition of "Classic mode" in 3.8, which got it into RHEL 7, and Debian is switching back as well.

Read more of this story at Slashdot.








Categories: Linux News

Drupal Bits at Web-Dev: Codit and Codit: Local Introduction Video

Drupal Planet - Wed, 2014-10-08 02:04

This is a short screencast showing the basic concept of Codit and Codit: Local and where to place them in a Drupal site.

Categories: Drupal

Don't Panic: A blog about Drupal: DrupalCon Amsterdam: &quot;There and back again&quot;

Drupal Planet - Tue, 2014-10-07 19:01

DrupalCon Amsterdam has come to an end (well, it ended last week, buy hey, I need to catch up on some work as well). It was the biggest DrupalCon in Europe ever, 2,300 attendees! Pretty impressive. I've written a couple of blog entries, trying to capture my stay in Amsterdam and my feelings for a DrupalCon which I attended for more than three days (which has been the case with DrupalCon London and DrupalCon Munich).

Not only did Drupal 8 get a BETA during these days, but a lot of sprinting was happening (as always) and it was pure joy walking through the Berlage in the center of town and at the venue, seeing all that work being put into Drupal.

Tuesday and Wednesday was filled with interesting sessions, and both Tuesday evening with nice boat rides and pub crawl and Wednesday evening with open museums (the light installations at the EYE was spectacular!) was very nice indeed. Thursday, the day for separation for many of us, was also filled with good sessions and the closing talk with Holly and Stephanie both invited us to DrupalCon Barcelona next year, as well as presenting cool statistics about the Con.  

The good...

All of the sessions I attended was good, and, as always, I'm impressed by the time and energy people devote to making Drupal happen and spreading the knowledge and some love. Dries Buytaert's keynote ('the Driesnote') was inspiring, but I didn't agree with everything he said. He talked about the "free-riders", the ones who doesn't help out with Drupal, the ones who only take advantage of the system witouth giving something back. Such a thing is a bad thing, according to Dries. But I think that we also need those free-riders, becuase those free-riders are the ones using the system, making the statistics for Drupal go up worldwide, spreading the word of Drupal. If we don't have free-riders, are the only ones who should use Drupal the ones who code it and support it? If so, Drupal won't get far...

Amsterdam RAI, the venue, was a good venue. Apart from some sessions being very popular (which is a pain in the a** forseeing) so I couldn't get into them, the rooms and hallways were good for sessions and sprinting. The technique was good as well, sound and vision in the sessions was flawless. Big thumbs up for that. The recorded sessions was also professionally made, at least the ones I've had time to watch. Finding them on YouTube the same day or, to some extent, the next is also impressive. Big thumbs up to the techinal team who worked on that during the Con.

The evening activites was also impressive. Ingenuity, local connection and very nice people raised the bar a lot. I kind of fell in love with the architecture of Amsterdam with it's old crooked buildings, canals and the narrow streets, and the boatride on Tuesday evening was magical!

...the bad...

But there's always something that brings a frown to the face. This time I frowned upon three things. The wi-fi. The coffee. The food.

The wi-fi. It's shouldn't be that hard to calculate that if 2,300 persons gather in a closed area and at least half of them have both laptops and phones, there will be much traffic. I don't want to drag Drupal Association of the local community in the dirt here, they hired a company to manage the network and wi-fi, but it's irritating trying to get online for various reasons, and the network dies several times a day.

The coffee. Apparantely the coffee last year in Prague was bad. The worst thing about coffee this year, was that it wasn't free. It cost me 2.5 Euro. When I pay this much for a ticket to a DrupalCon I kind of expect coffee or some other drink to be free. If it's too hard to calculate, try giving out beverage tickets, two or three per day. Some will get lost, some won't be used, but at least I won't have to pay 2.5 Euro for a small cup of coffee that's not even that good.

The food. A small bowl of pasta or paella. A sandwich and some dessert. I was hungry three hours later. I had the opportunity to visit DrupalCon Munich in 2012 and the food there was out of this world. Every DrupalCon after that will always have worse food. But this one is a killer. No imagination. Lots of garbage (in a time where we try to limit our carbon footprints). No drink. (At least I couldn't find any. Or maybe I was supposed to go and buy me a drink for 2-3 Euros.) Didn't get that. Didn't do that either.

There. Now that's out of my system. I won't remember that when I', 60. But I'll remember the rest of DrupalCon Amsterdam. The sessions. The laughs. The excursions.

...and the ugly...

Well... I found an ugly statue somewhere in town, but otherwise that headline was only in it for the Clint Eastwood reference.

Special thanks to...

It takes a lot of work making a DrupalCon happen, and the Drupal Association pulled it off with a gold star I think. Sure, there were flaws, but then perhaps those won't happen next time, or there were good reasons to why there were flaws. But the Drupal Association do this for a living, so I will only give them a normal-sized 'thank you'. The big 'thank you' goes to the local community who gave the DrupalCon a Dutch feeling. I also want to say thank you to those people who were mentoring before, during and after DrupalCon. Instead of working with the code like you perhaps wanted to, you devoted your time and energy to encourage us lesser beings who want to learn more about Drupal. Also, a big hug to Annertech, who made the Quiz Night happen. It's not an easy task trying to get Morton and Bert the crowd quiet so you can present questions and answers. The man with the microphone also liked the name of our team - Fools drush in - which was nice!

You all know who you are - THANK YOU!

Categories: Drupal

Chapter Three: 5 Hurdles to Adopting Drupal 8

Drupal Planet - Tue, 2014-10-07 18:36

Drupal 8 presents major improvements to the existing Drupal ecosystem. It offers much, including a revamped Entity API that adds tremendous flexibility to content modeling, a core-level translation system for multilingual sites, responsive theming, in-place editing and the configuration management system. But with all of its improvements, Drupal 8 presents some hurdles for agencies like Chapter Three to identify and overcome.



Categories: Drupal

Pages

Subscribe to LinuxColumbus aggregator