Normal view

Received — 24 January 2026 Drupal - Open Source Content Platform | #Celebr8D8

Question : Does anyone know how to fully audit and clean up a "/sites/default/files/" directory... ?

I've recently took on a new client, who has a 10+ year old Drupal 7 site, with 10+ years of ... decisions...

The file system is radio active disaster zone of files that I am 100% sure are mostly unused...

We just migrated the site to D11, and moved everything in to the media library, but theres still 12+GB of files that, as I said, are probably mostly not needed anymore.

Does anyone have a process, or documentation, or a guide of any kind on how to go about progromatically analyzing the content model, the actual usage in the database, with some sort of process to look for each file, and process them in some way to know which files are safe to delete?

Thanks!

submitted by /u/alphex
[link] [comments]
Received — 15 January 2026 Drupal - Open Source Content Platform | #Celebr8D8

How do you use webform to create a user contact form?

I can't seem to find a clear write up on this - but I need to build a user contact form with webform, and send an email to user's email account....

A user will look at a user profile at "/user/[user-name]"

And see a link to a webform, and I want the link to be something like

"/user/contact-form?userid=123"

Or "/user/contact-form/123" and have the email handler on the webform be able to look up user id 123's email address, to send to...

Is there a token syntax I can use in the "TO" field in the email handler?

or... how would you do it?

Thanks!

submitted by /u/alphex
[link] [comments]
Received — 20 November 2025 Drupal - Open Source Content Platform | #Celebr8D8

Token formatting for “webform_pardot” mapping - how do you submit a select multi value field?

I’m stuck on this.

I have a web form with a select list.

We have to push the data to pardot.

How do I use token to get the selected values and push them in to a pardot pick list. ?

The pardot mapping looks like this.

email|email first_name|first-name last_name|last-name account_name|company title|title phone_work|phone primary_address_city|city primary_address_country|country [webform_submission:values:solution_checkboxes:value]|interest fq_other_comment_c|comment fq_hidden_url_c|conversion-url

The webform token I have there, is where I'm stuck.

My form has a number of select items in this field, as a multi value checkbox select.

Do I need to map specific checkboxe as individual lines? Do I need to know the exact option values on the pardot side? (where my mapping needs to be like "interest.key" ?

I found this patch - but I don't know if I need it? https://www.drupal.org/project/webform_pardot/issues/3215050#comment-14109894

All of the other fields, as plain text, submit just fine... so I know we're getting data across the submit. Its just this field that is giving me problems.

Thanks!

submitted by /u/alphex
[link] [comments]
Received — 16 November 2025 Drupal - Open Source Content Platform | #Celebr8D8

Webform "post handlers" token values not being submitted...

I'm using the `webform_pardot` module which gives you a HTTP POST handler in webform.

The mapping field configuration is set up this way...

email|email
first_name|first-name
last_name|last-name
account_name|company
title|title
phone_work|phone
primary_address_city|city
primary_address_country|country
[webform_submission:values:solution_checkboxes:format:comma]|interest
fq_other_comment_c|comment
fq_hidden_url_c|conversion-url

Which, works... except for the token value you see on the 3rd from bottom line.

---

which, when you submit ... puts that literal string of text, in to the field on pardot...

---

Is my token syntax wrong?

or, is there something else that I need to get the submission post handler to take a token derived value?

Thanks!

-- Update

Of course this is a client issue - they told me the wrong field to submit to... But there's a follow up question I'll post as a new thread.

submitted by /u/alphex
[link] [comments]
❌