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.
Hi
we have different groups of users that must be able to download files only available for the folders that are allowed for the groups, the user belongs to.
Unregistered users must not be able to access these files, also not via links.
The user is on a page, where s he sees the list of available files for the groups it belongs to.
I know:
How to get user and its role in a preprocess_page / twig template.
How to serve static files from directories with php (readfile or x-sendfile) in general.
Hello, i am working on moving a drupal site from one server to another. I have done the following:
1) move the files to the new host
2) import the exported database tables to the new host
3) change the rights of the folders like sites/default/files
4) change the database login information on settings.php
At some point near the end of development for my Drupal 8 site, any NEW block placed in a region isn't displaying or being output to the DOM. I place the block in a region, define what pages to display it on, click save blocks and yet nothing shows. I've tried clearing cache multiple times, but no dice.
All of my other blocks are still working (from before this started happening) but I'm afraid that if I remove them and try to re-add those blocks, they aren't going to render anymore. Any ideas?
I have Superfish on a D8 site and I have created custom styling for everything. But I'm running into a problem in that I can't figure out how to style the link of the current page. I have looked at the page source code but I don't see any class for the current page so I can't think of how to change the styling. Can anyone offer any advice?