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.
Hello, I want to add my current user data "Privilège" (which is a checkbox list containing "Gold" and "Silver" values) as a filter criteria of my view "List articles".
In "liste articles", I've already added some criteria (such as the date).
In my user data, I have a select where I can choose "Gold" or "Silver".
If the user is Gold, I want to show only Gold article (same for Silver). If the user has no Privilege, show all articles.
I want this to be done as much as possible in backend, how can I do that ?
I have the node type Books, and i'd like that content/books would not show all books but 10 at a time, and in a specific order, and to be able to filter them.
Also I'd like to show 10 specific books on the frontpage, but the thing is that this 10 books change accordying to an api request.
I think its really simple and i'd like to avoid using Views, is it views the only and best way to do this?
Where do I change what is feeding content/books ? Should this be part of a theme or a module?, and if its a module what is the hook?
I'm trying to load UI Kit the old fashioned way (without using an extension). I'm setting up my info.yml and libraries.yml. I can load the UI Kit framework CSS just fine, but can't seem to get the JS file to be included.
What combination of modules would I need to setup a single map on a Drupal 7 site that would allow me to add nodes with locations that are shown on the map. For example store locations with a pin that can be click to show full details of each individual location?