Anonymous users access unpublished node through JSON api

Hi,

How anonymous users access the unpublished node through JSON api.

Regards,

Vijayan

Precisely edit my subtheme

Hello :)

I'm doing some tests using Barrio theme. I created a subtheme using the provided script.

Barrio provides a lot of customisation possibilities using Appearance page. However, I would like to go beyond them and modify CSS files. However, I don't know how to clearly target an element of the page, to find the proper CSS file, and then modify it, to alter only the targeted element, without consequences somewhere else.

Is there any tutorial for that how to gain more control on our theme ?

I heard of Twig debuger module, which modify HTML generated code.

[SOLVED] Webform : assign value to a text field according to a check box

Hello everyone,

I'm creating a webform. I have a need.

Let's imagine a simple case. There are two elements.

First, e1 is a checkbox.
Second, e2 is a text field.

What I want : When the webform is displayed, a value is written in e2 according to e1 checked state.

We can see another way : modify the content of e2 after submission.

Is it possible ? I didn't find how to do so...

[SOLVED] Configure SMTP

Hello world !

I try configuring SMTP, for email sending.

I installed and enabled SMTP module (SMTP Authentication Support module page) using composer.

However, when I configure it and test the sending, it fails.

I have the error : Unable to send email. Contact the site administrator if the problem persists.

Is there a tutorial for configuration ? Maybe I must modify something in configuration files ?

Twig render fields if depending on selected value

Hello,

I have a paragraph type that has several fields:

Image_field, link_field, and List Field that consist of:

s|Small
m|Medium
l|Large

In twig I want to have an if statement that if you select "s", wrap image_field and link_field with a div class of .small. If you select "m", wrap image_field and link_field with a div class of .medium...etc.

I tried doing this, but I'm still getting ALL my content rendered with .small div class:

Hide link to taxonomy page ?

Hello,

I'm relatively new to the Drupal environment and trying to develop a website for a while.

Here's my problem.

I have created a taxonomy vocabulary with a few terms. Each term has a description (just an image).

These terms are selected in a specific content. 

I want to display in that specific content a field integrating a view conditionned by one of these terms only showing the description according to the term selected.  

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x