Placing blocks programmatically side by side

Hi,

I am trying to place a block on my custom page. The code in my Controller is placing the blocks in the 'content' region. How can I make the blocks appear side by side?

I have pasted the code, but it does not seem to work. Actually I want to show the two blocks side by side. Please let me know

<?php

namespace Drupal\heritage_ui\Controller;

use Drupal\Core\Controller\ControllerBase;
use Drupal\node\Entity\Node;

Webform fuctionality : Allow users to update a submission using a secure token

Hello, 

I use this functionality thanks to which recipient email can click on a link to modify his submission. At the end of the form, I find only a save button without any submit one. Someone can tell me how to define a submit button in this specific case?

Functionality :

Allow users to update a submission using a secure token

Stephane.

Help for extending H5P Audio Recorder

Hello

I'm new to progamming and working with Drupal. So I was interested in  making a site with an audio recorder that sends the recorded files to a API and get the results back. I found out that H5P Offers a Audio Recorder and I would like to leanr/understand:

  • How can I add an extra Button?
  • In wich file can I do it?

If someone could help me with that, I would appreciate it a lot.

Link for setting up H5P: https://h5p.org/documentation/setup/drupal8

template for content type nodes is 'trapped' into 'content' region

So the plan is to display all nodes of a certain content type below the page regions as a normal basic site.

Template for this content type nodes have been created however this node template is displayed within the content region which is third of width of a screen (as per page.html.twig).

Probably it is something to do with higher level templates namely page.html.twig which wraps the template however I only want this type of content not limited by width of a content region when viewing this particular node.

Use field widget in render array

A field widget was implemented to render an input with a corresponding datalist. The widget works just fine when

selected in adjust form fields through the backend. But I just can't get the widget to work in a render array.

Custom module API with cookie

In drupal 8, I plan to create a custom module that will expose an API. This API will drop a cookie on the browser to recognize the application user. Would there be any issues with caching in this solution? 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x