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

Get nodes id from text filter function[fixed/answer]

I can not figure out how i can get the nodes id a filter is called on.

Wokring on a contrib: https://www.drupal.org/project/amazon_pa

I need that "node id" so i can log on what node the filter failed, meaning a token is invalid.

class AmazonFilter extends FilterBase {

..
..

public function process($text, $langcode) {

//filter stuff
//i need to find out what node it is running on

}

}

Thank you for any help. 

Free Module for SSO SAML to set up drupal as Idendity provider

Iam new to drupal and i need a free Module for SSO SAML to set up drupal 9 as Idendity provider. I checked the miniorange saml idp, but that is much expensive. My requirement is that when drupal user login to drupal website they will be automatically logged in to a third party website developed in java. This third party has already incorporated saml as service provider.

So can any one suggest me how to achieve this in drupal 9?

counter module can auto reset visited for every monthly?

Hello everyone, 

counter module can auto reset or recounting visited my page for every monthly?

currently using this module https://www.drupal.org/project/counter

Does anyone know the solution for it or any suitable modules that can be implement on it?

Thanks in advance.

My JS library attached to a view is getting a 404

Hi, I've fixed this now.  I think it might have been a typo?

I'm getting this error in the web browser:

Route - Controller

Dears,

Please advise when I need to use the Controller in my application, also can I use custom module and custom block to retrieve the node content from backend.

Thanks in advance.

Regards,
Mohamad

Calling $entity in hook_taxonomy_term_presave() causes session write error (Drupal 9)

Hi Everyone,

Background: Kicking off my first Drupal 9 project and running into a puzzler for me. I have a custom module, a vocabulary and some taxonomy terms. I've added some custom fields to the term entity using the UI. I'm trying to programmably alter the field data when new terms are created. Devel is installed, ksm is working elsewhere.

Pages

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