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

How to get node id by URL path

Hi,

Can anyone tell, how can I get node id of  any page, which I have URL from drupal configuration.

For eg, I have page mysite.com/abc, so how can i find the node if of page abc, without writing any code.

Thanks in advance

#states and non-editable fields

With the #disable property I can make a field not editable
$ form ['field_meal'] ['widget'] [0] ['value'] ['# disabled'] = FALSE;
I have read that there is an option to do this through #states
I don't think that in my case it will be fine, as I have a select on an entityReference field and in relation to some boolean fields of the entityReference I have to make these fields editable or not.
I tried with the callBack and ajax response but I couldn't find any command to make the fields uneditable
I hope I was clear

(D7) Hundreds of PDF uploads to webform directory with no submissions

Hi there,

over the course of about 6 hours this morning, a few hundred PDF files were uploaded into our public 'webform' directory.

Although we do have webforms that allow PDF files, there are no submission records in the database that would explain the uploads.

Watchdog logs show that someone then tried to access each of the files via GET, but were served a 404 for each.

I can't see it having been done via FTP, as we have very strict security.

Installation of Cookiebot Module (Alpha Version)

We are currently building out Drupal 9  website for our Organization.

We have a Cookiebot Subscription with us for Cookiebot Consent and GDPR . Currently the Alpha module is available on the Drupal 9 website.

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

 8.x-1.0-alpha8 released 10 December 2020

Adding empty items to a paragraphs widget in node form via ajax

Hey guys

After 2 days of searching and struggling I have to give up and ask for help with something that turned out to be a lot harder to do than I thought it would be :)

I have a node type of “course_application” which lets people sign up to courses. It has 2 fields:

how to clone a page within page manager menu

the module page manager has the ability to create pages but not the ability to clone them. Anyone know of any solutions? I know about the quick node clone, which allows you to clone content nodes but that is different than the page manager page entities 

Pages

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