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

Custom Private Message form ajax

Hello,

Access denied.

Hello,

I am creating a module. But when I go to the module's page (/mymodule), I get the following error:

Access denied

You are not authorized to access this page.

These are the files of my module:

mymodule.info.yml:

name: My First Custom Module
type: module
core_version_requirement: ^9
description: 'My first Drupal module'

 

mymodule.module:

<?php

Bootstrap Paragraphs

Hi, 

I have Drupal 9.2.6 in the intranet site, and I am using Bootstrap Paragraph, specifically Accordion Section.  I would love to have Bootstrap Collapsible Panel With Up/Down Arrow Icon on the Accordion Section to show the up/down arrow under Drupal. Is there a way to set up an icon in the Accordion Section ?  Or do I have to write a HTML code to make it happen ?

Thank you.

Page not Found - Simple But not

Hi bit of a newbie here.
I used the page module to create a page using URL /someurl and then deleted the page. I created another page (yes - I should of used variants) with the same URL /someurl and now I get the page cannot be found.

I refreshed - check the DB (don't want to even think of touching this)

Is there a "simple" explanation?

hook_form_alter and Ajax

I'm converting my Drupal 7 app to Drupal 9. I had used some fancy Ajax techniques to dynamically alter some form elements. I'm having a hard time figuring out the subtleties of Drupal 9. Nothing is happening with what I'm doing so far. No errors either.

 I want to dynamically set the list of offices for a selected district.

It is not clear to me when to use ['widget'][0]['value']['#ajax'] and ['widget']['#ajax']. And recently I've seen 'target_id' in other posts about this sort of thing.

SMART DATE

I have installed smart date, Smart Date Starter kit, smart date recur, etc

https://www.drupal.org/project/smart_date

I have this working in views and it is showing event recurring dates fine, but when I try to call the date from the event twig.

It is working in the views but when I try to call it in events twig, nothing is showing.

{{ content.field_MY_EVENT_FIELD_DATE }}

{{ node:field_MY_EVENT_FIELD_DATE.value }}

{{ node.event.field_MY_EVENT_FIELD_DATE }}

Pages

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