Views - Page Template

I have installed Drupal and it is working fine, but we are looking at whether we can create a page for a views page.

We have a view with 2 blocks and 1 page and want the page to have a separate layout to other pages, I know it will mean creating an html.twig page but what I would like to know is it possible to have a views page have it own layout and how would I go about setting it up, please.

Running Drupal 8.9.1

Many Thanks
 

How to query an external, non-drupal Database

Hey,

I want to query an external sqlite Database. This Database does not contain Drupal information, or Drupal specific tables. It jus holds some data, I want to display on my website.

How can I integrate the database?

So far, I added it to setting.php:

$databases['external']['default'] = [
  'driver' => 'sqlite',
  'database' => '/gesamtausgabe_2019.sqlite',
];

And then, I try to call it in my Controller.php file:

question about inject core service in custom class.

HI:

I‘m little confusing about the injection of core services in my class.

I have a module, named with helloworld. And in the helloworld.service.yml  file ,i have the service defined like this:

services:
  HelloWorld.salutation:
    class: Drupal\helloworld\HelloWorldSalutation
    arguments: ['@current_user', '@config.factory']

In my HelloWorldSalutation class ,i have a __construct() function to inject the core services:

Image styles for media image in content

[Using Drupal D9]

With a 'traditional' image field in a content type, eg the default article type, it is possible to assign image styles and/or responsive image styles to the image, and to have different styles depending on whether the node is displayed in full or as a teaser etc.

I can't get this to work when using a media image entity reference field in the same piece of content. The image styles for a media image seem to be defined with the media type not the content type and therefore cannot respond to the displaymode of the content node.

Can you help me create a module that lists user tasks ?

Hi, I want to create a module that lists the user tasks, for the entities "User", "Drupal Commerce" and "Group".

I have a Drupal 8.9 site with the Drupal Commerce and Group modules :

https://www.drupal.org/project/commerce

https://www.drupal.org/project/group

I want to create a task list on the following pages :

Own permissions for ECK and Paragraphs in Drupal 8

I am referencing Paragraphs and ECK entities within content types, mainly to allow users to add a group of fields together (like multiple past experience details with company name, years of employment etc.).

The problem is that both these entities don't allow permissions to edit or delete 'own' entities. So, the options based on permissions are to leave a vulnerability that users can edit or delete others' experience details or they cannot edit their own.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x