Drupal is up and running but how do I ...?

How to add extra text field for fiel type in content type

Hello,

I'd like to add an extra text field for the "File" field type in a content type.

I've added this field to the "media type" but it doesn't appear in my content type's form.

I have modified the "default" and "media library" display types.

So, when I click on upload from a custom content type, I must have :

  • - The document
  • - Description field
  • - Author field

How can I achieve this? I only need this extra field, so I'd like to not install a huge module.

Thank you !

Drupal Commerce Products, Attributes, Variations- WHY?

This is part question, part frustrated rant.  I'm rebuilding my ecommerce site in D9 from D7, and am migrating from Ubercart to Drupal Commerce.  Why on god's green earth did the  commerce guys build Drupal Commerce products like this?  First of all, why are products not nodes anymore?  But that's a minor gripe. 

Installing and configuring Google AdSense on drupal 10

Hello,

I'm trying to install and configure Google AdSense on my drupal 10 site in order to test if it is possible to make some revenue.

On the https://www.drupal.org/project/adsense download page I notice that for drupal 10 there only exists a pre-release version: 8.x-1.4-rc1 released at 18 Dec 2022 at 22:44 UTC.

Content page produces error when creating feed type

I have a media type "Library Image". When I create a Feed type for this media type, the Content Page completely crashes giving the message "The website encountered an unexpected error. Please try again later." Deleting the feed type removes this problem.

Why might this be happening? Might it be related to the "Feeds item" field that is automatically created by the Feeds module? For reference, the media type in question has nearly 30 fields, most of which are Entity Reference types referencing Taxonomy terms.

Thanks in advance

trusted_host-pattern

Hi,

Cron warns me that the 'trusted_host-pattern' in my settings.php hasn't been set yet, and that might cause security problems. However, I did set it according to the rules. But still cron comes back with that warning. Now I find that at te beginning of settings.php, there's this:

<?php

// phpcs:ignoreFile
 

Does that mean that this settings.php is being ignored completely? And in that case, what do I need to change? TIA

How to get $form_state->getUserInput() in each inline entity form and not only in the first one?

I use the Inline Entity Form module to build nested multiple forms. I have a design form in which there is an inline form - garment. And inside the garment form, there is a product field.

In the hook_inline_entity_form_entity_form_alter() I get $field_product_user_input

Pages

Subscribe with RSS Subscribe to RSS - Post installation