Best way to get started with Drupal 8.6 or 8.5? Coming over from Drupal 7.

Drupal - Open Source Content Platform - Thu, 12/27/2018 - 17:58

I haven't touched drupal in a few years and still stuck on Drupal 7. I've been using the DrupalPRO VM box to do my developement on 7. How does everyone do it for Drupal 8 these days? I've been building out my d7 sites on ubuntu and mainly use alot of drush for 7. Is it still the same? I'm mostly in the command line...

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

Legacy Developer Question (Solr with views).

Drupal - Open Source Content Platform - Thu, 12/27/2018 - 12:27

Working on a legacy D7 site built circa 2011. I found that the original developers used Solr to index content (which is fine). But found that on a panel based page say new-events, they have a view that is an Apache Solr search result output event content type indexed by Solr. Would anyone know why such a solution was used vs just using views to filter content by the event content type?

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

Drupal Dev Thursdays: Post here with development questions or discussion

Drupal - Open Source Content Platform - Thu, 12/27/2018 - 09:06

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]

Scheduling A Post

Drupal - Open Source Content Platform - Wed, 12/26/2018 - 19:47

I'm using Drupal 8. I enjoy using it, but I am stuck on something. How does one schedule an article to be published (visible) at a later date than when it was written? I am using a podcast website that doesn't have a single web player for all episodes, but I would have to create a page for each episode. I don't mind doing that, but would like for the page to go live right after the episode does, while not having be t the computer to do it.

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

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

Drupal - Open Source Content Platform - Wed, 12/26/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]

Where to start in retrieving data from an external API

Drupal - Open Source Content Platform - Tue, 12/25/2018 - 23:28

Hello, and happy holidays!

I'm working on a project that's taking me out of my comfort zone of front-end development a bit into some back-end work. I'm building a Drupal 8 site that needs to integrate with a third-party natural language processing platform. To integrate with it, I first need to authenticate users using JavaScript Web Tokens – I think I've mostly figured that out using the JWT module. Then, I need to pull back data from the API that's associated with that user, such as their individual watchlist of content. (The API stores a few types of content – documents and news articles are the primary types.)

I had initially thought I could use something like the Migrate API to import all of their content, then associate that Drupal content with content from the API and, when actions were performed on the Drupal content (e.g. watching/saving a piece of content, which I'd do on the Drupal side using the Flag module), passing information back to the API, rather than having to get info from the external API quite as much. However, they don't have a full list of content from which I can import, because of the sheer volume of content they have (250k+/yr. and growing).

With that in mind, I'm a bit lost on how best to proceed. I assume I'll need to write a custom module that performs GET requests against URLs from the API to get a user's watchlist or other information that the API makes available, but I'm having trouble finding examples or best practices on how to get started with that. I'm also not sure if or how I can make a list of all content if the API doesn't provide even a truncated list of the latest n articles of content, another option I'd originally planned to implement (which, using Drupal, I'd generally build out with Views).

Ideally, I'd like to learn to do this myself – it would be useful knowledge for future work – I'm just not sure where to begin or what exactly to search for to find tutorials, articles, etc.

Any help would be greatly appreciated! Please let me know if I can explain anything in more detail. Thanks!

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

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

Drupal - Open Source Content Platform - Tue, 12/25/2018 - 09:06

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]

Weekly Drupal beginner questions thread

Drupal - Open Source Content Platform - Mon, 12/24/2018 - 09:07

Ask your newbie questions here! No judgement!

(Check out the weekly post schedule in the sidebar)

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

New module: Content fixtures

Drupal - Open Source Content Platform - Sat, 12/22/2018 - 19:25

I just wrote this module: https://www.drupal.org/project/content_fixtures that basically tries to recreate API and design assumptions of DoctrineFixturesBundle in Drupal. It's designed for heavily automated workflows, where website is being build straight from a repository, and allows to fill Drupal instance that is built in such a way, with content for development/presentation purposes. Maybe some of you will find it useful.

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

Commerce 2 Products theme help

Drupal - Open Source Content Platform - Fri, 12/21/2018 - 19:36

Hey all!

I’m very new to Drupal so apologies for my ignorance.

I’m working with Drupal 8, Commerce 2 module, and the Dawn theme.

Dawn comes with a view (named “portfolio”) that displays a series of content types. I’m trying to get this view to display the products I have created from the Commerce 2 module. The issue is the portfolio view is looking for “content” while the Commerce 2 module creates “products.” On the Views edit page I can’t seem to add any products. How do I make this work with the product content type? I've include an Imgur album to show you what I see.

Thanks so much! Very appreciative of any help you can give me!


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

D8 Blue/Green Deployments: What to do about the database?

Drupal - Open Source Content Platform - Fri, 12/21/2018 - 10:45

I am not sure if this is exactly the right place, but I thought I'd start here:

We currently have a Drupal8 site running within a Kubernetes cluster, with an external MySQL database as the backend. Our themes and modules are all present inside of a container. When we push a new container image, we:

  1. turn on maintenance mode
  2. push the image and restart pods
  3. wait for the pods to start up
  4. dial into the pod/container
  5. run any required drush commands
  6. turn off maintenance mode

This whole process takes anywhere between 10 minutes and hour, depending on what kind of changes are present in the latest image, during which the site is down, which isn't ideal. We've been looking at instead using blue/green deployments to minimize the amount of downtime for the site. Everything about blue/green deployments looks easy, with the exception of the database. I've done some preliminary searching on this topic, and most of the articles/blogs/stack overflow posts I've read on this state that they don't concern themselves with the database.

The thing is though, a major feature of our site is webform powered, so we need to ensure that any submissions are present in the database after the switch from blue to green.

Does anyone have any suggestions or advice on how to tackle this problem?

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