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

THIS FORUM IS NOT FOR "What module..." or module support questions-- it's for module development and code related questions.

The module development and code questions forum is intended to aid those who are developing modules or writing code for Drupal.

Please note that this forum is also not intended for "Is there a module that does..." or "I need help with module x..." questions. It's also not a place to ask developers to write your code for you. Please respect this.

Please do not post general discussions intended to target module developers. If the question you have isn't specifically related to writing a drupal module, please post it in a more appropriate forum.

  • If you you have drupal installed already and are seeking a module that does a specific task, have a question about a specific module and what it does or if it will fit your use case, please place your questions in the Post installation forum.
  • If you have a problem or question about a specific module, you should create an issue in the module's issue queue (after checking for an existing issue first).
  • If you don't have drupal installed yet, please place your questions in the Before you start forum.

Add jQuery and CDN to all pages

I'm struggling with Javascript functionality and want to add jQuery to every page as well as a CDN link. I thought the first could be solved by amending the main theme library - e.g.

global:
  js:
     core/jquery

but this doesn't work. I've sifted through a lot of posts but can find an example of either use case. (I can achieve both of these requirements by CDN url's between <script> tags on a Basic Page.)

Any help much appreciated. Thanks.

Views-only conditional block: Show "Add Content" link or "Already submitted" message based on current user and Node ID

Hi everyone,

I am trying to achieve a specific conditional behavior on a node page using only the Views UI (without custom modules or custom PHP code).

My Setup

I have two content types:

  1. Request (richieste_tenute_meccaniche)

  2. Quote (preventivo_tenute_meccaniche)

Is using the State API (key_value table) as an L2 cache for API responses a valid approach?

We have a Drupal 10 site exposing ~13 custom REST API endpoints used by a .NET service layer and AngularJS frontend. Some endpoints are expensive to generate (5–30 seconds on cold builds) due to complex entity loading, paragraph traversal and taxonomy resolution across hundreds of nodes.

Below is the existing caching approach in our REST resources (before the two-layer strategy was added):

Postman Rest post creates node but cURL code exported from Postman fails

This script was exported from Postman and edited to provide Basic Authentication.

Different User Overview page based on Roles

Hello Please I need to have different user overview pages for different User Roles I have. Whoever that have an idea on how to achieve this should help me.

Thank you

Pages

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