Ouput scaled image

I have an own content type. I added some fields ... One field is an image.

I choosed to show it as an 220x220 image

i display it in my template with {{ content.field_mypic }}

The problem is, that it will be not scaled. It still has 800x300px

I looked at the folders and found out that the folders are generated. Also i the user is allowed to write in the folder.

Any idea?

Request PHP problem

Hi,

I don't know if Drupal is the problem or not, but in my PHP code i use a request who is displaying data from a database. BUT when i'm adding the condition AND name = 'blabla', i don't have any content displayed on my Drupal block, it's weird because the request works fine on phpmyadmin, it returns rows, but not in the PHP code.

I don't know if it's the good place to ask this question becaus ei'm not sure that's a Drupal problem

Book page parent view

Hi
I'm trying to create a view showing several books and only want to display the parent page of each. I seem to only be able to create a view listing parent and child book pages together. Do I need a relationship or contextual filter or something else?

Thanks in advance
B

Relationship and contextual filter options

Hi
When creating a relationship, is each option with the little tick box you are presented with just a table to pull a foreign key from? And with a Contextual filter is each option just a field from available filtered tables you can select from?

Thanks
B

Add field in Drupal to change values in PHP

Hi !

I did a custom module programmatically, it has a custom block who can display data from a database. I wanted to know if it is possible to create a field or something like that in Drupal (when we are placing the custom block for example) where we are able to put a value in parameter who can change a value in the PHP code (typically in my SQL request).

The goal is to change the data displayed for every block that we created. Is what my explication clear?

Have a good day !

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x