Replacement pattern

Hello,

I just created a new custom field in View but I would like to use replacement pattern in my created field. Is it possible to do this?

In my example, How can I use replacement pattern in the field "$form['text']"

Thanks in advance for your help

How to check the value of a field in TWIG ?

Have created a field of type "List (text)" and I want to display a text according to the value of the field. How to do this ? Thank you

{% if store.field_professionnel_ets_statut %}
  micro-entreprenneur
{% else if store.field_professionnel_ets_statut %}
  entreprenneur
{% endif %}

https://ibb.co/MGS05ZB

The "field_professionnel_ets_statut" field can have the values :

- micro-entreprise

- entreprise

Here's what I want :

Adding custom templates for content-types in drupal 8.8.1

Hi Drupal Enthusiasts/Coders,

I got stuck in using custom templates for my content-types. I have been following all the documentation or answers that I found on google like the following:

I have page__content-type.html.twig file inside my themes/templates directory, the following if part(if code) is under mytheme.theme file, inside 

function mytheme_preprocess_page($variables){}, this is default function name(I didn't add it, it was there) which was there inside the theme when I installed it.

Can't install module with composer after upgrade to new recommended-project site

I just did a manual upgrade to D8.8.1 using the recommended-project layout following the instructions here:
https://www.drupal.org/docs/8/install/add-composer-to-an-existing-site.
All my contributed modules are in 'newsite/web/modules/contrib'. I tried to do a test of the new design by using composer to install a new module, redirect.

Use hook_views_pre_render() to change field to url link

I want to use hook_views_pre_render() to read in a view and change a field output to a clickable link.

Here is code:

Flood control module for Drupal 8

Hello

I m looking Flood control module for Drupal 8 its not update for drupal 8.

https://www.drupal.org/files/images/570142-flood-control.png

anyone suggestion for Flood control module for Drupal 8.I want block ip after 5 invalid login attempt.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x