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

How to display all taxonomy terms in twig?

Hi there, 

I am using the content reference module and would like to show the taxonomy tags related to a node. 

in my preprocess function I have this:

Drupal Controller successes then failure

Hey,

We have written a Drupal module controller. It allows a user to select a course then enroll in the course. Upon successful enrollment the user is allowed to select another course and enroll in that course. After doing the enrollment process successfully 5 to 6 even 12 times in a row the course enrollment fails with this error in the browser console.

PSR-4 How is that done...

Hi,

I have some modules from a D7 site wich i shold convert to D9/D10

I use the

drush dmu-analyze modulename

Which works perfectly and i can remove old issues and obstacles.

But when it comes to classes, it really dont work.

I have followed some guides and everything fails, either because its not a Drupal namespace or it cant be found.

I would really apprechiate any help in this.

Drupal/modules/custom/test.module

Add dynamically fields on custom form

Hello,

I have a custom form in which I want to add several inputs. In the following test, I add a "car2" field. Visually I can see the new input created, but when I submit the form, "car2" is not present in $form and $form_state, there is only "car1".

I think I'm missing a behavior that wicks :p

Retrieving thumbprint of Certificate

Hi,

my requirement is to get thumbprint of the certificate and I am trying to use this 

$thumb = openssl_x509_fingerprint($certContent,"RSA-SHA256",false);

$thumb1 = openssl_x509_fingerprint($certContent,"sha256",false);

But the return of the above is not matching with the thumbprint.

when I open the cert and check "Details" --> Thumbprint , it is different than what is returned from above function. when I check here "signature algorithm = sha256RSA"   and "signature hash algorithm = sha256"

Please let me know if I am missing something.

Seeking a User Account Time Limit module that works in Drupal 10

I have viewed several user account Time Limit modules but they appear to be associated with older versions of Drupal - not Drupal 10.

I am seeking an existing module that essentially does the following and will work in Drupal 10:

1. A User Expiry Date field is added to the database.

2. Create time limits on user accounts so their access expires at a certain date.

3. It automatically sends a reminder notification to administrators that the user account is expiring 14/7/1 days before it expires.

Pages

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