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 pages whose titles are people (soldiers) and a a field on the page is Rank. I would like to create a block whose filter is current page > rank. So If Fred Smith is a Captain I would like a block to list other captains.
I have done this in the past with rank within the url but wondered if their IS a way of getting a block to look at the page it is on and filter by a field within the page content please?
Context:
In am building a site with a lot of media files (images+videos).
Following modules are installed: Media, Token, File(Field)Path
I would like files to be stored in this kind of hierarchy: my_media_files / year / month / my_file_xyz.jpg
Notice: "year" and "month" are NOT the "native" creation date of the media. They are taxonomy terms of shooting year and month. They are selected in my media Entity Reference fields.
I have a set of custom tables exposed to views via hook_views_data. I have created a view based on one of these tables and have set up the necessary relationships in the "Advanced" section of the Views UI. This all works - Views displays the data correctly. I would like to add a contextual filter based on one of my custom fields. When I try this none of my custom fields are listed. All I see is Global : Null.
What am I doing wrong or is what I want to do not possible?
I have a website mahajana net based on the Drupal 7.98 engine. Unfortunately, file aliases do not work on mobile devices. Everything is fine on computers. For instance, the PDF opens correctly on a laptop, but on a iPhone, the PDF tries to load, but ultimately does not load.
If I provide the original URL to the file, it's ok, on both mobile devices and computers.
However, I care about the aliases working correctly everywhere, because the original URL is long.
How can I make aliases working on mobile?
My question I don't believe requires core version any other details for that matter for an answer, but I could be wrong.
How does a Drupal site on a server living and breathing with modules requiring no security updates just randomly break?
I've gone through logs and it identifies an undefined 'index' file and 'variable'. If no files were changed how does a defined 'index' file and 'variable' become undefined? On 10/7 out of the blue these stated showing up in the logs
I recently updated my Drupal site using Composer (version 2.4.4) from Drupal 9.5.10 to 9.5.11 along with the modules Admin Toolbar and Paragraphs.
Everything was working fine before I did this update.
After I did the update when I tried to log in as Admin, I got the error message:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".