Latest Drupal related questions

Score: 0
Easy way for user to resubmit a webform
br flag

My users are clicking on an emailed link from CiviCRM to complete a webform, which when completed and submitted adds contacts to CiviCRM. I'd like them to be able to have an easy way of submitting the webform again without having to go back to the email, find the link and start over. This is because they are submitting details of one household per webform, and may have (say) 6 household they want to s ...

Score: 2
liquidcms avatar
Where is "click sortable" set for a field?
us flag

I am trying to properly fix a bug in D8/9 core which removes the ability for link fields to be "click sortable" in a Views table.

I know I can do a views_data_alter hook to set the field as "click sortable" but I am guessing there is a schema or annotation change I can make to fix this? Anyone have any hints?

Thanks.

Score: 0
Delford Chaffin avatar
Migrate commerce_order__order_items from CSV files
gg flag

I'm writing a custom migration module from a legacy system. I have all of my orders and order items being migrated, but the commerce_order__order_items table is not being populated.

My orders migration:

id: my_order_data
label: My orders
migration_group: mygroup
migration_tags:
  - kentico
  - orders
source:
  plugin: csv
  ids: [OrderID]
  path: 'public://import/program/orders.data.csv'
  header_r ...
Score: 0
mark newton avatar
unserialize(): Error at offset 0 of 18 bytes
in flag

I am doing a migration from Drupal 7 to Drupal 8. Its using a MYSQL database (Server version: 8.0.26-0ubuntu0.20.04.2 (Ubuntu)). With this one particular node type when I drush cr and then reload the page I am given the following error.

Notice: unserialize(): Error at offset 0 of 18 bytes in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables() (line 1288 of core/lib/Drupal/Core ...

Score: 0
Permission 'apigee.apiproducts.list' denied on resource 'organizations/betsol-innovation-lab' (or it may not exist)
cn flag

I am using Drupal 8 based Apigee Developer Portal Kickstart. I have an Apigee X free account, created API proxies and published also. I have connected my Apigee X account with developer portal through Organization Name and GCP Service key. There's no such error, test connection says connection successful but when I try to access the API Products in Apigee Developer Portal I get this error.

Permi ...

Score: 0
Dragan Petrovic FSD avatar
views Serializer in REST export field to add token
cn flag

I have pull data from the outside via Views JSON Source plugin, I changed via contextual filters, and one of the examples I got looks like this.

[{"value_1":"Adelaide (87)"},{"value_1":"Adelaide City Center (871)"},{"value_1":"Adelaide East (871)"},{"value_1":"Adelaide North East (871)"},{"value_1":"Adelaide North West (871)"},{"value_1":"Adelaide South (871)"},{"value_1":"Adelaide West (871)"},{"valu ...
Score: 2
Jay Williams avatar
Is there any problem with installing composer globally?
us flag

I have a VPS and will be hosting a mixture of drupal 8 and drupal 9 sites. I need to install composer to manage the sites.

Is there any need to install composer in a project folder or can I just install globally?

Score: 2
Varnish in multilingual site
uy flag

I have a multilingual site where I use in most of my custom modules (.module files) and in the mycustomtheme.theme file these lines of code : \Drupal::languageManager()->getCurrentLanguage()->getId();

\Drupal::service('domain.negotiator')->getActiveId(); I want to install Varnish on my site, and I know that I can specify some URLs not to be cached like for instance I specified the path of a ...

Score: 1
How do I allow users to sort articles by tag with the select field?
uy flag

I have a view page (articles), with a taxonomy term relationship for the tags vocabulary. I have no context filters, and the filter criteria are the following.

  • Published
  • Type: article
  • Taxonomy term (exposed) (with relationship "term", "tid" ID, no multiple choice, operator "one of", but I've also tried "all of" with no use)

At first, the article list on page displays correctly, but when I select tag  ...

Score: 3
Hermann Schwarz avatar
AJAX Form using a sub-class of ContentEntityForm fires/invokes/calls the WidgetBase::massageFormValues() twice
cn flag

I'm using a AJAX form. This form I build from a sub-class of ContentEntityForm. The Entity edited by this form has a field MyField. To bring all the field values in a appropriate structure I'm using massageFormValues() in MyFieldWidget class (sub-class of WidgetBase).

The little problem is: the method massageFormValues() is called twice on every submit. The are no other problems with the form. I can prop ...

Score: 1
Bharat avatar
Comments on user profile not working
mp flag

I want to add comments to user profiles. I added the comments in user profile under Configuration > People > Account settings, but when I add the field, the option to select the comment type is showing empty. What is the correct way to allow other users to give comments on user profiles?

Score: -1
Dragan Petrovic FSD avatar
How to remove big pipe