Planet Drupal

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

Torchbox: Contributing to Drupal (DrupalCamp Bristol 2016 Sprint)

lun, 25/07/2016 - 01:00

Yesterday, I attended DrupalCamp Bristol’s sprint day which took place at Torchbox’s new Bristol offices. More than 15 people attended the event, including seasoned contributors Lewis Nyman and Emma Karayiannis. 

Catégories: Elsewhere

DrupalEasy: DrupalEasy Podcast 182 - Almost Live From Drupal GovCon 2016

dim, 24/07/2016 - 15:51

Direct .mp3 file download.

Mike interviews Gregg Marshall, Enzo Garcia, and Daniel Schiavone live from Drupal GovCon 2016! Gregg discusses his new book, Enzo talks about his upcoming community keynote and the upcoming DrupalCamp Costa Rica, and Daniel previews Baltimore DrupalCamp and discusses preparations for Baltimore DrupalCon 2017.

DrupalEasy News
  • The Fall, 2016 session of Drupal Career Online begins September 26; applications are now open.
  • Online and in-person workshops; introductions to both module and theme development for Drupal 8. See the complete schedule.
Sponsors Follow us on Twitter Intro Music Subscribe

Subscribe to our podcast on iTunes, Google Play or Miro. Listen to our podcast on Stitcher.

If you'd like to leave us a voicemail, call 321-396-2340. Please keep in mind that we might play your voicemail during one of our future podcasts. Feel free to call in with suggestions, rants, questions, or corrections. If you'd rather just send us an email, please use our contact page.

Catégories: Elsewhere

Annertech: Annertech's Andrew Macpherson becomes Drupal Core Maintainer for Accessibility

dim, 24/07/2016 - 00:15
Annertech's Andrew Macpherson becomes Drupal Core Maintainer for Accessibility

Ever since Andrew joined Annertech, he's been a champion of accessible web design and has ensured that accessibility has remained a key focus area in everything we do. That combined with his dedication to open source and contributing back to the community, meant that we were not surprised when he was asked if he'd be interested in becoming a Drupal core accessibility maintainer.

Catégories: Elsewhere

ImageX Media: Higher Education Notes and Trends for the Week of July 18, 2016

sam, 23/07/2016 - 00:07

In our weekly roundup of higher education notes and trends, you can usually count on three themes being discussed by the academic community: student demographics, budget constraints, and technology. In this post, we'll expand more on these themes by sharing some of our own insights, and we'll cover a few unique and emerging technology trends across higher education and technology.

Catégories: Elsewhere

ImageX Media: Bridging the Communication Gap on Distributed Teams

ven, 22/07/2016 - 23:43

Of the many things that contribute to the success of a project, communication is the most important. While every project will differ in its requirements, team members, and plan, at the most basic level their goals should always be the same: to add value for the client. Open communication -- that is, the free exchange of ideas, collaboration, and ensuring clarity and direction is the lynchpin that holds a project together in the pursuit of that goal.

Catégories: Elsewhere

Third & Grove: Drupal GovCon: Day 3 Recap

ven, 22/07/2016 - 22:03
Drupal GovCon: Day 3 Recap abby Fri, 07/22/2016 - 16:03
Catégories: Elsewhere

Mediacurrent: Dropcast: Episode 22 - The Jim Birch Society

ven, 22/07/2016 - 19:25

Recorded July 6th 2016

This episode our number one fan, Jim Birch, comes on to talk about his Drupal life and sadly learns how unprofessional his favorite podcast is. With that we recognize how long it takes me to actually get an episode out of the can and into your ears. Bob highlights some blog posts, which derails into a discussion about the Google AMP service, which rolls perfectly in with Ryan’s Pro Project Pick. We discuss the latest Drupal News and of course Ryan brings it home with the Final Bell.

Catégories: Elsewhere

Zivtech: How We Grew a Business from Seed

ven, 22/07/2016 - 15:35
Look for Talent, Not Experience

We got started with the idea to train inexperienced employees out of necessity, as well as from personal values. I had a few different careers before I got into web development. I was a pharmaceutical chemist, and I was also a math teacher. But I never worked at a place where anyone recognized my talent.

I had other jobs, too. In college, I was a telemarketer and did data entry. I was a bright person, but nobody seemed to notice. I always thought that it was a shame that talent goes to waste due to a lack of opportunity for young, unproven workers.

Back then, I wished someone would have given me an opportunity to do something at my level. Instead, I made it happen for myself, and co-founded this company in 2008. We didn't have any money, and back then there were even fewer qualified potential hires in our field. I'm super picky about the quality of the work my company does, and wasn’t willing to hire second rate workers.

We hired a few people and then the economy collapsed. Much of our work went away. We decided that we weren't going to cut anybody. By that point, we’d hired four or five people, and they didn't really have any experience. I was doing most of the billable work, plus teaching people. When the work dwindled, we decided to pay them from our credit cards. About half of those people are still with us, and they're doing great. I'm really glad that we kept them.

The main reason that we started hiring people who didn't really have much or any experience was that we couldn't afford anyone who did. We're not a virtual company; we've always had an office, so we're limited to our local area, and there really were very few good developers. Instead what we did was just bring candidates into the office, make sure everyone communicated, and for our part, we would bring a willingness to teach.

Believe that your people are intelligent, and that you can teach them something, and that they can learn. They might not learn as quickly as you would like sometimes, but if you believe that they will learn, they will.
*SOURCE: http://www.modernsurvey.com/fall2014

Download the full Grow Your Own white paper for free.

Catégories: Elsewhere

Valuebound: Porting drupal 7 module to drupal 8 using Drupal Module Upgrader

ven, 22/07/2016 - 14:27

We started to migrate our sites from drupal 7 to drupal 8, but we need our modules also to be ported from drupal 7 to 8 and it’s time to porting the same, Due to the substantial changes in Drupal 8 from its previous versions,  we developers find it hard to porting the modules from drupal 7 to drupal 8. This is mainly because Drupal 8 is object oriented and much closer to an Model View Architecture(MVC), Drupal is no longer a Presentation Abstraction Control (PAC) architecture framework, Drupal follows the PSR-4 folder structure in compatible with symfony component which Drupal 8 uses. to make our porting fast, we can use Drupal Module Upgrader

Lets see what is Drupal Module Upgrader?

Drupal…
Catégories: Elsewhere

OSTraining: Drupal & Bitnami Multiple Environments

ven, 22/07/2016 - 13:12

An OSTraining member asked how to setup a bitnami lamp that supports PHP 5.4.

The Bitnami Wamp stacks are available in 3 versions here:

  • 5.5.37
  • 5.6.23
  • 7.0.8

Each of these provides an environment that is preconfigure with a different version of PHP.

5.5.37 comes with PHP 5.5, which you should also use for 5.4 setups. The reason 5.4 is no longer available is because the changes between 5.5 and 5.4 are minimal. You can read more about the changes on the official change log here.

To install the Wamp stack, follow our installation guide.

If you already have a Bitnami Lamp setup, you can install it again. Just be sure to use a different directory location to your original installation. All Bitnami files are contained within these containers, so you can simply install the stack as many times as you like. 

When installing your second stack, you will have to use a different ports for apache, ssl and mysql:

 

Once the installation is complete, you should see this screen:

In this older version of the Bitnami stack, the enviroment doesn't include Drupal. So we will have to install Drupal now.

Download or copy your drupal site to Bitnami\wampstack-5.5.37-1\apache2\htdocs\drupal

Navigate to http://127.0.0.1:8080/drupal/ 

If you are doing a fresh install, you will see this screen:

 

 You can access PHPMyAdmin from http://localhost:8080/phpmyadmin/

Catégories: Elsewhere

Mediacurrent: Friday 5: 5 Structured Data Items that Work for Every Website

ven, 22/07/2016 - 07:47

We hope the work week is treating you well and that you're gearing up for an even better weekend!

Catégories: Elsewhere

Third & Grove: Drupal GovCon: Day 2 Recap

ven, 22/07/2016 - 01:43
Drupal GovCon: Day 2 Recap abby Thu, 07/21/2016 - 19:43
Catégories: Elsewhere

Acquia Developer Center Blog: Live from DrupalCon Mumbai: Meet Acquia Pune!

jeu, 21/07/2016 - 23:03

A conversation from DrupalCon Asia DrupalCon Mumbai 2016 with members of Acquia's Pune, India office: Prassad Shirgaonkar, Prassad Gogate, Prafful Nagwani, and Jeffrey A. "jam" McGuire in which we touch on Drupal and community in India, the history of the DrupalCon Prenote, Drupal's multilingual strengths, the Drupal Campus Ambassador Program in India, and more!

jam: We are at the Contribution Sprint day of DrupalCon Asia in Mumbai, wrapping up a great few days for me. Prafful Nagwani, how was your DrupalCon?

Prafful Nagwani: This is my third DrupalCon and this was fantastic. Even more so because this is happening in India, in our own backyard, it has been really, really great the way it’s been organized. The sessions, everyone coming in, meeting each other and stuff, it’s been fantastic.

jam: So I would like to point out ... really a huge thank you to the Drupal Association and everyone involved in the organization because it was incredibly smooth and I’ve been to cons in Europe and America that were nowhere near as well-organized so: fantastic. Thank you Drupal Association.

Prafful Nagwani: Thank you.

jam: Prasad?

Prasad Shirgaonkar: Yes.

jam: How was your DrupalCon?

Prasad Shirgaonkar: It was a dream come true for me. I first did a DrupalCon in London in--I think it was 2011 or 12--and I’ve seen you doing the Prenote. I had met Jacob [Singh] and Dries with whom I work now. From that time, I wanted to do a Prenote with you and I wanted to have that done in India and it happened.

jam: Wow, that’s cool! So we did a Prenote in London called ... so there’s a Dickens’ story called A Christmas Carol and we did a parody of A Christmas Carol and we had the Ghost of DrupalCon Past and the Ghost of DrupalCon Present and the Ghost of DrupalCon Future and it was hilarious and we got chx, the contributor C-H-X to be the Ghost of DrupalCon Past and he was hilarious ... and the whole thing actually ...Prenote I’m so glad you were there! We never talked about this. So Prasad and I organized the Prenote which is a DrupalCon tradition now where it’s an opening introduction sort of a welcome to DrupalCon before Dries’ Driesnote. Prasad and I, as well as Adam Juran and Campbell Vertesi and Parth Gohil and Ashwini Kumar; we wrote it as a team together. We were very concerned frankly about making sure it would be funny in India, right? So Prasad and the Indian team hooked us up with great jokes and concepts and I think we rode the line really well of ... frankly, I don’t know everything that’s going to be offensive in India, right?

Prasad Shirgaonkar: Absolutely, absolutely.

jam: So we were really concerned.We wanted to be funny maybe even edgy, right, but not upset people. So how did you feel when we did tongue twisters with an India accent?

Prasad Gogate: Absolutely that was amazing. I think everybody enjoyed that and people probably were not expecting that. So it was really a surprise for them which was obviously a good surprise. Overall, I think DrupalCon in India has been an awesome experience here now. I think it is a dream come true for the entire India community because – and most important is I think the India community has started getting recognized and it’s growing. That’s why – I think that is more important.

jam: So we didn’t quite managed to do this yet. Please introduce yourself to everyone.

Prasad Gogate: I am Prasad Gogate. I work from Pune for Acquia.

Prasad Shirgaonkar: I’m Prasad Shirgaonkar. I work for Acquia from Pune from my home.

jam: So you’re Prasad zero, right?

Prasad Shirgaonkar: Yes.

jam: You’re Prasad one?

Prasad Gogate: Yes.

jam: Okay.

Prafful Nagwani: Hi. I am Prafful Nagwani and I work for Acquia from Pune office. I have been in Drupal since - eight years now since Drupal 6. Yes.

jam: How did you discover Drupal?

Prafful Nagwani: It happened – I got a job and they said that you need to work on something called PHP. I never worked on PHP until then. So I said, “Okay. Let’s try it out.” Since then, I have been with Drupal. I never worked – before that I was totally working on Microsoft Technologies. I never worked on any of the other open source things. I knew about Joomla. I had read about Drupal, but that’s how my experience started and since then I’m here. I’m not going anywhere.

jam: So eight years. How long have you been doing Drupal, Prasad?

Prasad Shirgaonkar: Ten years, since Drupal 4.7.

jam: I installed Drupal 4.6 but I didn’t really do anything with it.

Prasad Shirgaonkar: I did my first site. Actually, I discovered Drupal because I wanted to do my poetry website in Mahrati and back in 2005, 2006, Drupal was the only CMS which supported non-English characters.

jam: Wait, wait. The only CMS?

Prasad Shirgaonkar: Yes. So I had downloaded a couple of others and they didn’t support Unicode characters really well. So Drupal was the only one which supported Unicode ever since its birth actually.

jam: Right. This is a great segue-way into: Hey, Drupal 8 has been released and the multilingual internationalization support is unbelievable! If anybody hasn’t tried this yet, to get a fully, fully, fully translated site in Drupal 7, you couldn’t because there are certain things, variables and certain things that you couldn't touch ... but you could come the very, very closest by installing somewhere between 21 and 27 modules, right?

Prasad Shirgaonkar: Yes.

jam: Hands up who knows how many modules you have to install into Drupal 8 to make it fully multilingual? Every single thing translatable, how many modules do I have to install?

Prasad Shirgaonkar: [faint] Nothing apart from core ...

jam: No. Give me a number. How many modules?

Prafful Nagwani: Three.

Prasad Shirgaonkar: Four.

jam: I thought you guys work with Drupal. The correct answer is zero modules. So because core has?

Prasad Gogate: Multilingual.

jam: Right. Four modules that you turn on ... so amazing. So to do that site today, right, would be even easier. So Prasad, how long have you been doing Drupal?

Prasad Gogate: Since four years now, four plus years. So I was introduced when I started working for a company it was like first project for me and Drupal. I never came across it. So from that stage, I learned and then four years I have been working.

jam: What’s your favorite thing about Drupal?

Prasad Gogate: Building sites faster.

jam: Okay. What technologies did you work in before?

Prasad Gogate: It was Arc.js and Microsoft.

jam: Okay. Do you have a favorite Drupal module?

Prafful Nagwani: That’s a tough one. That’s a tough one. I think I like Views and Panels. I would go for those.

jam: Okay.

Prasad Shirgaonkar: Views, all the way Views and just Views: every sub-system, all the ecosystem around Views.

jam: Right. Another plug for Drupal 8, Views was the key differentiator for us since Drupal 5 that really sets up apart from other CMSs as well as our multilingual support apparently. Now, it’s in core, too, which means we can actually abstract it out, make other interfaces, another tools rely on it. That’s pretty cool.

This is the Acquia Pune office. We had an Acquia India sort of a gathering as part of DrupalCon the other day. How many people work for Acquia India now?

Prasad Gogate: Around more than 25.

jam: So three, four in Pune?

Prasad Gogate: Four in Pune.

jam: How many in Delhi?

Prasad Gogate: The rest, everyone is Delhi.

jam: So when is the Pune office going to overtake Delhi and become the true center of Acquia India?

Prasad Shirgaonkar: As far as leadership is concerned, that is the true center right now. Thought leadership is concerned, that is but number-wise who cares about quantity, when quality is there? ;-)

jam: So one thing I’ve noticed about the Indian community is that India is such a huge, huge, huge, huge place. I’ve met really wonderful local community leaders from all different parts of the country and there’s not a national organization per se, but it feels to me like the communication between the different groups is actually pretty strong. What’s up in Drupal today in India?

Prasad Gogate: In terms of work? You mean Acquia India or overall ... ?

jam: Drupal in India.

Prasad Gogate: I think we have been working in two various sectors. Mostly I think more of the SI and big companies are also getting involved and lot of commerce and contributions are happening. So I think people are becoming more and more knowledgeable, I would say. More and more awareness is increasing which is obviously a good thing and growth definitely is the word, I would say.

jam: Growth?

Prasad Gogate: Yes.

Prasad Shirgaonkar: I think about eight years ago we had very small pockets in Pune, in Delhi and possibly in Ahmedabad ... and in IIT Mumbai obviously.

jam: Ahmedabad was the first user group I think in India.

Prasad Shirgaonkar: Yes. That was the first user group.

Prafful Nagwani: First Drupal Camp in India was Ahmedabad in 2008.

Prasad Shirgaonkar: 2009 was in Pune.

Prafful Nagwani: Pune. That 300 people attended the 2009 and I think we had someone from US visiting and talking there.

Prasad Shirgaonkar: Yes. It was Berry ...

jam: Addison.

Prafful Nagwani: Addison Berry.

jam: You said Barry and I was about to say Barry Jaspan but no, and that’s when she was travelling around on the Knight Foundation grant.

Prasad Shirgaonkar: Yes. We had a code sprint actually in 2009 at that time in January, I remember. That was my first community interaction in Pune where I met Prafful and a lot of - Dipen. We have been ever since doing Drupal camps. Prafful has been – Prafful and Dipen had been like instrumental in setting up community. Prafful drives community like – it’s his own like homely household duty and he gets everyone together. He gets like – yes, he literally, many of the times he shouts at people if they are not doing work.

Prafful Nagwani: There are a lot of community leaders in India. I think the good part with India that’s happening is everyone shares things with each other. So if there is a camp that’s happening in Pune, I’m definitely--I have seen this and we have done this--Delhi comes to help and Bangalore comes to help and we share things. We share resources: "Okay. This is how we did the budget. This is how we did the sponsor. This is the users. This is my user group. Go ahead. Mail them." So I don’t have to start from scratch. Anyone in India wanting to do a Drupal camp, they have a head start. There are people who help out.

jam: I see.

Prasad Gogate: I think that is the community spirit which is actually shown that everybody wants the camp to be successful no matter where it is.

jam: I’ve heard about a lot of that happening and for example Parth Gohil, he has an actual job to just help as many people as possible. Someone came up to me yesterday at the DrupalCon and told me ... he told me a Veda in Sanskrit and he said open source is essential. It’s absolutely the best possible fit for Indian culture because giving and sharing are our core values as a nation and the Veda he read me was something like, "Give a man food and he’ll be satiated for a few hours but give him knowledge," right, and of course it was put much more elegantly but essentially, "knowledge will help you fill your life forever." I’m definitely going to use that in slides with the proper Sanskrit on it forever because it was so moving. Anyway, I’m having an absolutely splendid time in India just being so impressed with the Con and with the community, the number of young people. Frankly, can you talk a little bit about the gender balance in the developer community in India? I’ve seen a lot of women in terms of percentage much, much more than I see in a lot of communities around the world.

Prafful Nagwani: Yes. I think good thing happening over here is that the community overall has been pretty much welcoming everyone into the community and ready to help. As it was said by Danese in her keynote like people here have open minds. Nobody is above someone or below someone. We are all at equal level and that is what is driving people to get more into getting started with community. So for an example, we started doing meet-ups regularly in Pune and over a period of six months we have about 400 attendees, aggregated over six months. Lot of these, I think a lot of these were women. Yes. They really feel a part of it because it’s the community that drives things together, right?

jam: In the west, in open source and it’s a known problem, we have a diversity problem, very, very often. Here, I don’t see that in terms of religion and gender and age. I’ve seen a real – I’ve seen people who are definitely in their 60s at DrupalCon and definitely seen people in their early 20s or younger. I’m very impressed by that. The places that I’ve seen that before are places like Bulgaria. So post-communist countries who have a really strong engineering tradition, a really strong educational tradition over decades. So anyway, well done India because it’s great. It’s very inspiring.

What’s next for Drupal in India?

Prasad Shirgaonkar: We strongly believe that there should be a nationwide meet-up every year if not DrupalCon every year in India.

jam: So I know a guy who would like to be invited if you’re doing anything interesting I can – I’ll introduce you.

Prasad Shirgaonkar: Yes, yes. Please, please do.

jam: So Acquia Pune, thank you guys so, so, so much for taking the time to talk with me. I really can’t wait to see you again soon. Anything, any last words, anything you want to promote, push, say?

Prasad Gogate: Yes. I mean thanks to you for this and definitely, we would expect that you come to Pune once but one thing that probably I want to mention it over here is one of the important things in the Drupal community that recently is happening is more and more educational organizations have started taking interest and I think that is the root. I mean if we start giving education for Drupal from that stage, I think we’ll build a definitely a very good community.

jam: I’m glad you brought that up because I had forgotten, one of the very impressive things that I’ve seen here in India is huge community effort to bring Drupal into high schools and into universities and this is another challenge that I’ve – the efforts that I’ve been involved in, it’s been very, very difficult for us. India is now producing young software engineers who know Drupal and who like Drupal and it’s really, really exciting that you are solving the pipeline problem and everyone else out there, you need to come and see what the Indians are doing because it’s just, just right. Catch them at 15, 16. Get them excited about the web and we can have them. Prasad, shameless plug?

Prasad Shirgaonkar: No. It’s exactly the same thing I was going to say. The universities and colleges are so important and we need to have Drupal over there. So we are – actually we are in talks with IIT. They have open education resources project where they have a software project, software education translated to like 15 Indian languages and we are planning to provide a Drupal content to them. So that way, Drupal will reach to the most - remotest corner of India in their own language.

jam: Please let me know when that is happening. I’d love to help promote that.

Prasad Shirgaonkar: Absolutely.

jam: Prafful?

Prafful Nagwani: Again, the focus is on the education systems. So India community recently started the DCAP program, the Drupal Campus Ambassador Program which is in pilot phase. I think what we need to immediately do and we are trying to do is get students connected to people and they know where to go. They are not left somewhere looking around, okay, what to do next. That is where we lose them.

jam: Take them by the hand and bring them to the goal.

Prafful Nagwani: Show them the way. Show them. If they take Drupal as a career, definitely a good choice for them but we need to tell them, yes, Drupal has a career option. It’s not that only Microsoft or other technologies have that.

jam: Listen, we run 2% of the web, 5% of sites with identifiable CMS and it’s only going to get bigger. You’ve got a job here. ... Prafful.

Prafful Nagwani: Thank you so much.

jam: Prasad.

Prasad Shirgaonkar: Thank you so much.

jam: Prasad.

Prasad Gogate: Thank you so much.

jam: Zero, one. Thank you guys for taking the time to talk with me. It’s been really, really great to spend time together. I can’t wait to see you next time. Thanks, guys.

Prasad Shirgaonkar: Thanks.

Prafful Nagwani: Thanks.

Prasad Gogate: Thank you. Bye.

Skill Level: BeginnerIntermediateAdvanced
Catégories: Elsewhere

Janez Urevc: Blog design refreshed

jeu, 21/07/2016 - 20:52
Blog design refreshed

Today I am very excited! A while ago I asked my friend David Ličen to help me improve appearance and UX for my personal blog. He carefully observed my desires and added some of his own ideas. When we agreed on the initial mock he proceeded with the theme implementation.

He finished his part a while ago. I needed to tweak few other things on the back-end too, which took me way too long to do. Today I finally decided to finish this and deployed the changes to the live website.

How do you like it?

slashrsm Thu, 21.07.2016 - 20:52 Tags Drupal Enjoyed this post? There is more! janezurevc.name runs on Drupal 8! We had great and productive time at NYC sprint! Sam Morenson is thinking about media in Drupal core

View the discussion thread.

Catégories: Elsewhere

Drupal Blog: City of Boston launches Boston.gov on Drupal

jeu, 21/07/2016 - 19:00

Republished from buytaert.net

Yesterday, the City of Boston launched its new website, Boston.gov, on Drupal. Not only is Boston a city well-known around the world, it has also become my home over the past 9 years. That makes it extra exciting to see the city of Boston use Drupal.

As a company headquartered in Boston, I'm also extremely proud to have Acquia involved with Boston.gov. The site is hosted on Acquia Cloud, and Acquia led a lot of the architecture, development, and coordination. I remember pitching the project in the basement of Boston's City Hall, so seeing the site launched less than a year later is quite exciting.

The project was a big undertaking, as the old website was 10 years old and running on Tridion. The city's digital team, Acquia, IDEO, Genuine Interactive, and others all worked together to reimagine how a government can serve its citizens better digitally. It was an ambitious project as the whole website was redesigned from scratch in 11 months; from creating a new identity, to interviewing citizens, to building, testing and launching the new site.

Along the way, the project relied heavily on feedback from a wide variety of residents. The openness and transparency of the whole process was refreshing. Even today, the city made its roadmap public at http://roadmap.boston.gov and is actively encouraging citizens to submit suggestions. This open process is one of the many reasons why I think Drupal is such a good fit for Boston.gov.

More than 20,000 web pages and one million words were rewritten in a more human tone to make the site easier to understand and navigate. For example, rather than organize information primarily by department (as is often the case with government websites), the new site is designed around how residents think about an issue, such as moving, starting a business or owning a car. Content is authored, maintained, and updated by more than 20 content authors across 120 city departments and initiatives.

The new Boston.gov is absolutely beautiful, welcoming and usable. And, like any great technology endeavor, it will never stop improving. The City of Boston has only just begun its journey with Boston.gov—I’m excited see how it grows and evolves in the years to come. Go Boston!

Last night, there was a launch party to celebrate the launch of Boston.gov. It was an honor to give some remarks about this project alongside Boston mayor, Marty Walsh (pictured above), as well as Lauren Lockwood (Chief Digital Officer of the City of Boston) and Jascha Franklin-Hodge (Chief Information Officer of the City of Boston).

Catégories: Elsewhere

Dries Buytaert: City of Boston launches Boston.gov on Drupal

jeu, 21/07/2016 - 18:50

Yesterday the City of Boston launched its new website, Boston.gov, on Drupal. Not only is Boston a city well-known around the world, it has also become my home over the past 9 years. That makes it extra exciting to see the city of Boston use Drupal.

As a company headquartered in Boston, I'm also extremely proud to have Acquia involved with Boston.gov. The site is hosted on Acquia Cloud, and Acquia led a lot of the architecture, development and coordination. I remember pitching the project in the basement of Boston's City Hall, so seeing the site launched less than a year later is quite exciting.

The project was a big undertaking as the old website was 10 years old and running on Tridion. The city's digital team, Acquia, IDEO, Genuine Interactive, and others all worked together to reimagine how a government can serve its citizens better digitally. It was an ambitious project as the whole website was redesigned from scratch in 11 months; from creating a new identity, to interviewing citizens, to building, testing and launching the new site.

Along the way, the project relied heavily on feedback from a wide variety of residents. The openness and transparency of the whole process was refreshing. Even today, the city made its roadmap public at http://roadmap.boston.gov and is actively encouraging citizens to submit suggestions. This open process is one of the many reasons why I think Drupal is such a good fit for Boston.gov.

More than 20,000 web pages and one million words were rewritten in a more human tone to make the site easier to understand and navigate. For example, rather than organize information primarily by department (as is often the case with government websites), the new site is designed around how residents think about an issue, such as moving, starting a business or owning a car. Content is authored, maintained, and updated by more than 20 content authors across 120 city departments and initiatives.

The new Boston.gov is absolutely beautiful, welcoming and usable. And, like any great technology endeavor, it will never stop improving. The City of Boston has only just begun its journey with Boston.gov - I’m excited see how it grows and evolves in the years to come. Go Boston!

Last night there was a launch party to celebrate the launch of Boston.gov. It was an honor to give some remarks about this project alongside Boston Mayor Marty Walsh (pictured above), as well as Lauren Lockwood (Chief Digital Officer of the City of Boston) and Jascha Franklin-Hodge (Chief Information Officer of the City of Boston).
Catégories: Elsewhere

Mediacurrent: Think First, Then Design

jeu, 21/07/2016 - 17:01

There are many talented designers with the ability to create a fabulous, responsive, web design worthy of the term “screen candy.” But looks aren’t everything and website design is not just art. When a website fails to engage the visitor, it’s often due to the designer’s failure to plan strategically.

Catégories: Elsewhere

Drupalize.Me: Why Is Learning Drupal Hard?

jeu, 21/07/2016 - 15:00

When it comes to learning Drupal I have a theory that there's an inverse relationship between the scope of knowledge that you need to understand during each phase of the learning process, and the density of available resources that can teach it to you. Accepting this, and understanding how to get through the dip, is an important part of learning Drupal.

Catégories: Elsewhere

FFW Agency: The Power of Extending Twig Templates

jeu, 21/07/2016 - 09:06
The Power of Extending Twig Templates David Hernandez Thu, 07/21/2016 - 07:06

Extending in Twig is a method by which one template can inherit content from another template, while still being able to override parts of that content. This relationship is easy to imagine if you are familiar with Drupal’s default system of template inheritance.

A theme can have multiple page templates, many node templates, even more field templates, and a plethora of block and Views template. And it is common for those templates to largely be identical, save for a snippet of markup or some logic. The advantage in extending templates is reducing this duplication, thereby simplifying architecture and easing maintenance.

Let’s say, for example, you want to change the template for a specific block, adding a wrapper div around the main content area. This might be done by copying the standard block template and giving it a name specific to your block.

Classy’s block.html.twig template
{%
  set classes = [
    'block',
    'block-' ~ configuration.provider|clean_class,
    'block-' ~ plugin_id|clean_class,
  ]
%}
<div{{ attributes.addClass(classes) }}>
  {{ title_prefix }}
  {% if label %}
    <h2{{ title_attributes }}>{{ label }}</h2>
  {% endif %}
  {{ title_suffix }}
  {% block content %}
    {{ content }}
  {% endblock %}
</div>

Copied to block--my-special-block.html.twig
{%
  set classes = [
    'block',
    'block-' ~ configuration.provider|clean_class,
    'block-' ~ plugin_id|clean_class,
  ]
%}
<div{{ attributes.addClass(classes) }}>
  {{ title_prefix }}
  {% if label %}
    <h2{{ title_attributes }}>{{ label }}</h2>
  {% endif %}
  {{ title_suffix }}
  {% block content %}
    <div class=”content-wrapper”>{{ content }}</div>
  {% endblock %}
</div>

This accomplishes your goal. You have a template specific to this particular block, and a wrapper div just where you need it. Following the same method, and with a complex site, you can end up with lots of different block templates (or node templates, or field templates, or … you get the idea.)

But, now you have a different problem. The majority of the template is duplicated. All the CSS classes, the outer wrapper, the markup for the block title, etc. If any of that needs to be changed, like changing all block titles from H2s to H3s, you have to update every single one of those templates.

Even if this happens infrequently enough not to be considered time consuming, it is still prone to errors. You might make a mistake in one template, miss one that needs changing, or even change one that should not be changed.

This is where {% extends %} comes in

Extending templates allows you to reference the original template, and only override the parts that are unique to the child template.

In the block example, we can create a block--my-special-block.html.twig template with this content:

{% extends "block.html.twig" %}
{% block content %}
  <div class=”content-wrapper”>{{ parent() }}</div>
{% endblock %}

That’s it. That is the whole template. Twig uses the original block.html.twig template as the main template, and only uses what we override in the more specific block--my-special-block.html.twig template.

The parent() function simply returns all of the content within the {% block %} tags in the original template. This saves us from having to duplicate that content; keeping the template simple, and future proofing it. If any of that content changes in the original template, we don’t have to update the block--my-special-block.html.twig template.

In this example, the content in the original template is fairly simple, only printing the content variable, but imagine if there was a large amount of multiline html and Twig code wrapped in those block tags.

Twig blocks, not Drupal blocks!

This overriding is done by using Twig blocks. (Terminology is fun!) The Twig block is what you see identified by the {% block %} and {% endblock %} tags. The word "content" is the identifier for the block. You can have multiple blocks in a single template.

In the block--my-special-block.html.twig template file, we can do anything we want inside the block tags. Twig will replace the original templates “block” with the one in block--my-special-block.html.twig.

What else?

Well, you have access to pretty much everything in the main template, except the printed markup. So, for example, you can modify the variables it uses.

{% extends "block.html.twig" %}
{% set attributes = attributes.addClass(‘super-special’) %}

This template will add a CSS class called "super-special" to the attributes printed in the outer wrapper of the original block template. The alternative would be to copy the content of the entire block.html.twig template just to add this class to the ‘classes’ array at the top of the file.

You can also just set a variable that will be used by the original template.

{% extends "block.html.twig" %}
{% set foo = 'yellow' %}

Imagine a series of variant field or content type templates that set variables used by the original template for classes, determining structure, etc.

You can even add Twig logic.

{% extends "block.html.twig" %}
{% block content %}
  {% if foo %}
    <div class=”content-wrapper”>{{ parent() }}</div>
  {% else %}
    {{ parent() }}
  {% endif %}
{% endblock %}

Pretty much anything you still might want to do with Twig, inside or outside of the block tags, you can still do.

Things to note

Before you jump right in, and bang your head against a wall trying to figure out why something isn’t working, there a few things to know.

  • The {% extends %} line needs to be at the top of the file.
  • When overriding markup, you can only change what is within block tags in the original template. So add {% block %} tags around anything you might want to modify.
  • You cannot print additional things outside of the overriding block tags. You will have an extends line. You can set variables, add comments, add logic, and override blocks. You cannot put other pieces of markup in the template. Only markup that is inside a block.
  • If Drupal does not extend the correct template, based on what you expect from template inheritance, you may have to explicitly state the template you want.
    Example: {% extends "@classy/block/block.html.twig" %}
Additional Resources Tagged with Comments
Catégories: Elsewhere

GVSO Blog: [GSoC 2016: Social API] Week 8: Social Post implementer

mer, 20/07/2016 - 22:36
[GSoC 2016: Social API] Week 8: Social Post implementer

Week 8 is over and we are just one month away from Google Summer of Code final evaluation. I mentioned in my last weekly summary that I would work on documentation about implementing a Social Auth integration.

gvso Wed, 07/20/2016 - 16:36 Tags Drupal Drupal Planet GSoC 2016
Catégories: Elsewhere

Pages