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

adding text in a specific div

Hello,

 Possible to add HTML in a div of a specific page thanks to the personal module created in drupal?

 cordially.

add a field in the middle of a form thanks to the drupal module

Hello,

 How to add a field in the middle of a form thanks to the personal drupal module.

 With following instruction, the field is added at the end:

$form['action']=array(

'#type'=>'checkbox',

);

 

Return $form;

Input field in a table based on taxonomy on the content type

Hi all,

I have a (private) taxonomy terms that I would like to assign values to. 

So taxonomy can be added by users themselves, and they need to be shown on the creation of the content type. 

I would like to know how I can do the following (and I'm not really a hardcore Drupal expert, so easiest solution would probably be best :-)

How to store the last accessed form values before a user logs out

Hi,

My webpage looks like the following:

https://imgur.com/a/cjLLK8d

I want to store the last accessed values of the form before the user logs out. So that when the logs in again, he sees the same page.

It would be helpful if you kindly let me know how this can be achieved.

Thanks,

List all user fields

I tried to get a list of all user fields (machine names and labels), both the defaults such as username, but also the user fields added in the admin panel. I did find something, but I don't think its the right way.

This will only give the default of the user:

\Drupal::service('entity_field.manager')->getFieldDefinitions('user', 'fields')

The other method I tried was:

How to count the number of class on my page and display it in a menu counter ?

I have a site that I created with Drupal 8.

I have a page with a list of tasks like below :

https://i.stack.imgur.com/I49TU.png

- The tasks of color "Red" have the class task-list-danger

- The tasks of color "Orange" have the class task-list-warning

Pages

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