Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have a problem which I can use your expertise. I have a page and that page has a hero image. The hero image is a background image. The way I did this is the following.
I have a region called hero image.
I created a image field (hero-image) on the page, formatter focal_point and excluded it from display
I created a view (block) with contextual filter of the node being viewed.
I created a twig override for the image field called views-view-fields--hero-image.html.twig
Hi, this is my first drupal site and first post here. I'm currently having a problem where jquery click events are not being triggered while navigating to the website on a real mobile device. I've tried everything I can think of to troubleshoot/resolve the issue and the only thing I can think of is that there's a problem with how drupal interacts with jquery or maybe I'm doing something wrong and don't know it so hopefully someone here can help me out. I asked/searched on stack overflow as well but haven't had any luck.
I have a PHP project that is being ported to Drupal 8 modules, but for the time being, it would be useful if I could restrict access to a real directory of scripts within the Drupal home directory using existing users and roles.
I've experimented with Custom Permissions, but it seems to only recognize Drupal Paths and not real paths.
I've enabled access to the directory by adding a RewriteCond line to Drupal's .htaccess and have the folder secured using another .htaccess within my test folder, but I'd like to be able to leverage Drupal's permission system.