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

Multi Factor Authentication

 I see there exists a commercial contrib module but my first impression is it is not something I want to use. I'm looking at coding by own solution. Any ideas where to start? (.module hooks, classes, services, ..etc?) You have to modify the new account and change password process. I also have to add a table or two to store a fingerprint for each user and maybe a secret key and temporary passcodes.

Data model

Hello everyone, I need to obtain the model or data structure of a database in drupal 9.5.11, I already have the SQL dump of that database but not the relationships between the tables. Can you guide me on how to obtain this?

LDAP Manual install issues

I have download and installed Active Directory / LDAP Integration manually. I go to configuration/people but there is no selection to configure it. What am I doing wrong?

 

Best approach for creating content types and handling different styles

Hi,

I'm new to Drupal.  We're converting our current site to Drupal.

Some of our content types have a specific purpose. But, some are sort of generic, the only difference is the styling that is applied to them. Some pages have cards that are larger with text beneath an image and some have text wrapping the image. Some have a background that is slightly different,etc. The users insist on having everything the same in the Drupal site. What is the best approach to creating content types and handling the variations in styling?

Thank you

[SOLVED] hook_ENTITY_TYPE_presave() not working

I'm working on a custom module to update a field "curryear_birthdate" in an entity "Person" in my Drupal 10.2.4 site using the hook_ENTITY_TYPE_presave() construct.  I followed the template that several Drupal guides showed.

I have two problems:

1) The field doesn't get updated; and
2) I put a debugging display in to see what might be the problem and the display is not appearing.

The code for the .module is shown below.

<?php

use Drupal\Core\Entity\EntityInterface;

css and js aggregation breaks my site

Hello,

I am trying to migrate my settings in .htaccess to my vhost.conf. I am also trying to disable mod_rewrite. Apache says you should avoid it. I have one problem. The following rewrite rules in .htacces are neccesary for css and js aggregation to work:

  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ index.php [L]

If I remove them I also have to disable css and js aggregation. Otherwise the site breaks, the menus dissapear.

Pages

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