Drupal - Open Source Content Platform

Subscribe to Drupal - Open Source Content Platform feed
The place for news, articles and discussion regarding Drupal, one of the top open source (GPL) CMS platforms powering millions of websites and applications, built, used, and supported by a diverse community of people worldwide. More Info: [Drupal.org](http://drupal.org)Drupal - Open Source Content Platform | #Celebr8D8
Updated: 27 min 27 sec ago

How to add Google Fonts to Drupal 8 theme, the PROPER way

1 hour 37 min ago

Concise and well written solution to my problem.

submitted by /u/theshannons
[link] [comments]

Drupal 8 Theme Guidance on bootstrap based theme

6 hours 1 min ago

I am looking for advice on how people choose to start their custom Drupal 8 themes that include Bootstrap 3. I will want a setup with Gulp, that builds bootstrap from sass so I can include only what I need. I cruised Github and found a few starter kits, and noticed none of them are "subthemes" of the drupal.org/project/bootstrap theme. Which is what I originally was going to do, but now unsure.

I don't really know the pros/cons to using the Bootstrap project theme as a parent-theme OR classy for example.

Starter kits I found (I am looking to do something very similar) * https://github.com/alexandar87/d8bs * https://github.com/xenomedia/xeno_demeter * https://github.com/mlaroy/drupal-8-webpack-starter * https://github.com/kurtisdunn/Drupal-8-Starter-Gulp-SASS

What are the pros/cons to subthemes? I got burned in D7 when a profile maintainer abonded their Distrobution, and I can see the pros to a Vanilla Drupal install now :) So I want to start my theme out correctly!

submitted by /u/slaphappie
[link] [comments]

Drupal Dev Thursdays: Post here with development questions or discussion

8 hours 4 min ago

This is the weekly thread for development questions or chit-chat that doesn't belong in the Monday Beginner Questions thread. All questions/comments/ranting about Drupal dev is fair game.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

It's Drupal Contrib Wednesday! Post recent contrib module likes/dislikes

Wed, 01/17/2018 - 09:08

Have you tried a new module or theme recently, or do you have a favorite that nobody seems to know about? Tell us what you like or dislike.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Drupal Config Management: Multiple Developers and SVN

Wed, 01/17/2018 - 01:05

Hi guys,

we're in the process of rewriting our old D6 site into a D8 site. The config management is giving us a bit of a headache.

Setup:
  • Our team consists of developers and a Drupal consultant.
  • We commit our config to svn.
  • We use config_split to manage staging differences
Workflow commit (order of steps is important):
  • export config
  • dump relevant content (Things we consider configuration, but Drupal considers content)
  • svn up (This merges the svn state with the current local state)
  • Import the config and content to test locally
  • svn commit of relevant config changes and related code changes
  • Jenkins starts and tests config changes (Can the config be imported? Are there any error messages when opening pages?)
Problem:

This process only works if everyone is very disciplined. Otherwise, it results in dozens of unnecessary changes to the config files that have to be sorted out. This leads to commits of unwanted changes or to commits that are incomplete. This happens a lot, especially to our consultant, who can't program at all (we knew this going in). At least once a week one of the developers spends 1-2 hrs cleaning up the committed config. Commits are time-consuming, because of this. Everyone knows to commit more often as that mitigates the changes and thus lowers the time needed. However, not everyone wants or can do this (some changes are bigger, but not big enough to warrant a branch).

Example 1: One developer swears he only worked on the feature he was supposed to but had inexplicable changes across all files. Names had been translated from English to German.

Example 2: Our consultant added new fields (e.g. recommendation and ISBN) to product entities and later deleted some of those fields (e.g. recommendation). Yet the commited fields contained references to the deleted fields (e.g. ISBN depended on recommendation).

Opinion

The new configuration management works. It does what it is supposed to do. It's the process that we use that is to complex but how to change it?

In my opinion, the problem is that in symfony changing the configuration is a conscious act. Drupal obfuscates it to a degree (to make it easier to work with). I think that is part of the problem. In D6 we built a configuration management based on features. After a feature module was created we directly altered that, which made changes deliberate. We could alter the yml files directly (which some of us do already) and use config_split to bundle relevant configuration together. Something just does not feel right with that approach.

Question:

How do other teams handle this? Is there something we're missing? Most of the developers in our team are familiar with symfony and were hoping something as streamlined.

submitted by /u/Mindz-ei
[link] [comments]

Drupal website having browser issues

Tue, 01/16/2018 - 23:47

So we are developing our Drupal 7 website.

Yesterday I tested out the test site and noticed with chrome browser I was not seeing design updates.

However I switched to incognito mode in chrome browser and I could see the updates!

Why is this so? I also tried clearing the cache and no success why?

Thanks!

submitted by /u/froddo7
[link] [comments]

It's Triumphant Tuesday! Post your recent Drupal wins and launches

Tue, 01/16/2018 - 09:07

Here's your chance to brag about cool stuff you've done recently and awesome sites you've shipped. Anything happy and Drupal-related goes.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Drupal 7 to drupal 8 job change?

Tue, 01/16/2018 - 02:52

Hi there,
I am offered a position as a backend D8 dev. I am currently doing D7 and I'm kind of ok with it, except that I can get tired of the complexity of drupal.
I have heard that D8 adds some complexity and the learning curve is quite steep. Plus, the future of drupal is rather uncertain as well. So my question is: should I put the energy to learn D8 or stay where I am and learn something else on the side (NodeJS, Python...) to prepare for the future.
I know that there are a lot of other parameters to take in consideration (salary, colleagues etc) but I'm asking about the technical aspects of it.
Thanks for your inputs!

submitted by /u/send_nudes_kudasai
[link] [comments]

Related Contents, views and fields (D7)

Mon, 01/15/2018 - 15:34

First, I would like to thank you all for taking time to read and answer my question. I really appreciate it!

I have an issue to hide content from a view on a side bar. We created in the past a related view that is only used to link different content types such as project, publication and blog.

I added the content type profile to the view the related project, publication or blog from each user example: [link]http://institute.smartprosperity.ca/profile/scott-mcfatridge As you will see here, you are able to see the Related Work of the user (tiles). But the problem is coming from what I cold the 2nd link. When you are one the page linked, example the blog post on "The Buck Stops Here: How to Pay for Species at Risk Conservation in Canada" [link]http://institute.smartprosperity.ca/content/buck-stops-here-how-pay-species-risk-conservation-canada

On the left side bar, just after shareable button, you will see the Related. I want to hide the profile (the second link) and only show the other content type of document (blog, publication or project).

In other terms, I want to output the $content['field_related'] on profile pages only, but not on other pages.

I am on Drupal 7. The actual code on my tpl for each type of content is

<?php print render($content['field_related']); ?> I tried different way and I know I am close, but I am not a web dev.

<? if ( $node->type == 'profile' ) {print render($content['field_related']);;} ?> I hope I gave all information requested to answer my question.

Feel free to contact me.

submitted by /u/matula2k
[link] [comments]

Weekly Drupal beginner questions thread

Mon, 01/15/2018 - 09:08

Ask your newbie questions here! No judgement!

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Which web server does the drupal:8-fpm docker image run?

Mon, 01/15/2018 - 08:07

Hi all.

On https://hub.docker.com/_/drupal I find images such as drupal:8-fpm and 8-apache. The latter one is Drupal running on Apache, but which web server does the former one use? It's based on php-fpm, but I can't seem to find any details on which web server it's running. Does anyone know how to figure this out?

submitted by /u/protoken
[link] [comments]

Pages