Redirect after registration to web form

For registration I have several yes/no questions and based on answers I'd like to redirect users to a web form.  I.e. 

Are you a human?  If the answer is YES - go to 'human' webform.

Are you a plant?  If Yes, go to 'plant' webform.

Drupal Remote Video Youtube CSS Not Working

Hi, I'm using paragraphs, and have setup a content type to use Drupal core's remote video field. The div I wrap the video in is being showing, and has the CSS I'm specifying it, but it's not working. It doesn't appear the CSS I specify does anything except maybe change background colour.

The CSS I'm trying to apply to have the video fit to the size of the container.

It appears maybe the Youtube video has inner HTML which I is overriding my changes, and I don't know how to change the inner HTML because I only see it built on the rendered page.

Listing commerce order items in your preferred language in admin interface

In Drupal 8 Commerce 2.0 order item titles are saved in customer's language. This creates a huge problem in the admin interface (/admin/commerce/orders/*) when the contents of the order are listed in e.g. Chinese, Japanese or Arabic letters which the staff is uneducated of and therefore they are unable to process the order. What would be the easiest and the most user-friendly solution to show the contents of order (order item titles) in any language the admin chooses?

Connecting to MySQL via PHP

I have a custom made website that I want to migrate into Drupal, and a lot of it consists of PHP scripts using pdo running queries against another MySQL database and displaying the results (usually in tables). I have not used CMS before, so some things are a bit new to me.

I have added my second MySQL database to the settings.php as suggested on a stackoverflow post, but I'm stuck on what to do next. How do I actually go about adding PHP to my pages (currently it seems I can only add HTML)? Are there any modules that I need to install to get this to work?

How to create a region in D8

Hello,

I like to create a region in my D8 site. To do that, I added the following code in page.html.twig file. I can see the region just fine under structure > blocks > block layout page. Region name is eclipse. 

Adding node edit form to existing route with parameters

I would like to alter the node edit form location so instead of having node/{node}/edit to {person}/node/{node}/edit, I have used a routeSubscriber to alter the path and if i go to /nick that page works fine ,but nick/node/1/edit gives me a 404, /node/1/edit gives me a 404 so i assume that the route has been altered but i cant seem to get this route to work.

Any help apreciated

TLDR: is there a way to add an existing route to an existing route that contains parameters

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x