This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

issue in field comment

Hi, I need to change the comments per page value, I set it 50 from the field setting, but in some pages, I need to show only 10 comments, not 50. I tried to use this method.

setSettings([
    'per_page' => '10',
  ]);  

It changed the value, but still the page showing 50 results.
Code.

Webform likert element title and descriptions

What is the best way to get likert element title and descriptions of the questions in webform submission handler?

getData() gives only question titles and there seems to be no other easy method to get descriptions at all.

Webform 8.x-5.2

How handle submit of a form that extends RegisterForm. Please Help

Hello Friends,

I am trying to extend the default native Drupal registration form.

Ultimately, I would like to save the users new id and details in a external database aswell as the native one.

I have managed to successfully extend the form, but I am getting a error when the form is submitted.

My code looks as follows;

NewUserRegisterForm.php:

Captcha module which one to use for Drupal 8?

Hi all, Is there only currently a beta of the Captcha module for any Drupal 8.6 sites?

How to add fields to default registration form

Hello friends,

How would I go about accessing and adding additional fields to the default registration form using a custom module?

I know I can do it using the UI via /admin/config/people/accounts/fields

But I would like to do this in my custom module so that I can have full control of the forms fields and pass it to a custom Twig template.

My guess is that I would somehow extend the Default Registration Form?

Any suggestions or advice would be greatly appreciated.

Can custom FieldType (TypedData) contain logic?

I've been evaluating D8 for at least a week, before delving into coding. 

I was wondering if a custom FieldType (TypedData) can contain some business logic? The way I see it, it's a Value Object (from the concept of DDD). 

For example, let's say we have a Dimensions field (similar to the physical module) with L, W, H columns. We can have the following:

$node->get('dimensions')->{getFieldType}->getVolume();

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions