All Questions

0
votes
0answers
2 views

What are all the methods/verbs supported by the Views REST export?

Drupal 8 provides functionality to create REST exports of content using the "Structure->Views" in Drupal admin interface. What are all the methods supported by these REST export? When I tried a "...
0
votes
0answers
2 views

Errors when attempting to load Salesforce object from mapping admin page

We are attempting to push a content type from our Drupal site to a Salesforce object. We have successfully authorized the link between them. When we attempt to start the mapping, we get an AJAX error. ...
1
vote
1answer
522 views

How to attach a CSV file with the Google Chart API?

I have created a Google Chart based View and it is working nicely. Please guide me how to give the facility as the user should be able to upload a csv file and the data comes accordingly.
1
vote
2answers
470 views

How to add two separate GA accounts in one Drupal site

I have one Drupal site and I am using google analytic module for add ing GA account ? Now client want to add two separate accounts UA-87XXX-XX UA-87YYY-YY How can I add these two accounts ? ...
0
votes
1answer
8 views

Contextual filter in path for block view display, alongside pathauto aliases in Drupal 8

On our Drupal 8 site, we are using the article content type for press releases. We have the pathauto module generating automatic aliases for these nodes, so the article node entitled "Cool Things are ...
1
vote
1answer
465 views

How to eliminate direct access to files in private directory?

I have set up my Drupal 7 site for private files in a directory above root (../private). I also set my filefield on my node type to upload the image files to that private directory. I have two user ...
0
votes
1answer
10 views

WebForm images not displayed after node creation with submission handler

I'm at a loss. I'm using WebForm 8.x-5.2 on Drupal 8.7.3. I have a custom webform handler that takes the submission and creates an unpublished node for review. The webform includes an image field ...
0
votes
2answers
16 views

Why did my site crash when I moved module and theme folders?

A little background, I am quite new to Drupal and IT in general, so this may be a silly/basic question (I am going to start learning HTML, CSS, PHP, etc. for Drupal). I first set up my Drupal site by ...
0
votes
0answers
7 views

What is the Drupal 8 progress bar periodic update function return data?

In Drupal 7 from the function called with 'url/to/call/progressbar/update/function' (see below) you would return an array converted to JSON like this: drupal_json_output($message); I cannot find any ...
1
vote
1answer
465 views

default value imagefield -> get from field collection item

I've got a contenttype "gallery" with an imagefield "thumbnail", used in listviews oder teaserviews. This contenttype also has a field collection with "image", "title" and "description". So what would ...
-1
votes
0answers
11 views

How do I get the string %*% to appear as %*% instead of %% (which it annoyingly does)

In a Drupal forum reply, the string %*% was automagically changed to %%. How do
0
votes
0answers
4 views

Setting up Drupal commerce orders being sent to company erp system

I am new to Drupal and therefore bear with me. This might be a really simple question. Instead of using any of the payment functionality in drupal Commerce 2x i want the order to be sent to my ...
0
votes
0answers
4 views

“Delete scheduled tasks” not firing

I have done the following: rule component with action send email notification. rule that schedule the component "after saving a content". When I go to schedule I can see that the rule fires the ...
0
votes
1answer
14 views

How do you use hook_form_FORM_ID_alter() to alter the USER EDIT form?

I'm trying to mark fields on the /user/_uid_/edit screen as disabled. These are custom fields I've created in /admin/config/people/accounts/fields in D8. I have this code for another node entity type....
0
votes
1answer
483 views

Error while accessing admin section

I am facing the following error while trying to access Admin section in Drupal 8 (WAMP Server). I tried to install the Update manager module and from then I am facing this error. I am unable to access ...
0
votes
2answers
15 views

Using pathauto for taxonomy pages

I'm using pathauto on a D8 site successfully for pattern type Content using a pattern like this: [node:content-type]/[node:title] But I'm not having any luck at all when trying to use it for pattern ...
-1
votes
1answer
34 views

Other twig syntax in templates

In some twig templates of the commerce modules, I can see the use of an alternate syntax: Ex. in commerce-cart-flyout-offcanvas-contents-items.html.twig : <% _.each(cart.order_items, function(...
0
votes
0answers
18 views

--tail option stopped working [on hold]

Using Drush 5.9, Drupal 7.67, PHP 7.1.22 - haven't updated anything for a few weeks, but last Thursday wd-show --tail stopped working for me. This is both on my local (MAMP) and remote (on Google ...
-2
votes
1answer
23 views

View query filter [on hold]

I have 3 custom content types: red, blue and white. Each have 2 fields: a number and a date. So I have a load of nodes: blue, 27, "jan 4, 2019" white, 66, "feb 13, 2019" blue, 27, "jun 18, 2019" ...
-2
votes
0answers
8 views

launch cron only for one task for 300 lines

My hoster told me to send only 300 mail by hours for avoiding spam. So I decided to create cron job to send emails, and the cron will start every hours. So I need to tell to the cron : On each run ...
-4
votes
0answers
55 views

Can't run update.php after upgrading [on hold]

I setup my local VM, created new composer file (with all the necessary third-party modules) I updated Drupal core to 8.7.3 I copied the database back in Now when I run update.php or drush updb I get ...
0
votes
1answer
26 views

GraphQL query not returning data

I have 5 different content types and I've added content / nodes. I'm using graphQL to fetch the data, however in 1 of the content types the data is not being returned. This is the latest content type ...
1
vote
1answer
22 views

Upgrade breaks Rest Export View in Calendar [on hold]

We have a website that uses Views with a serializer rest export to display events on a monthly calendar. When we upgraded from 8.6.16 to 8.7.3 the calendar display is blank. All the json information ...
1
vote
1answer
17 views

Custom checkout pane for order comments not saving

I've created a custom checkout pane for commerce 2.x, Drupal version 8.7.x. I've added a textfield called field_order_notes on the order entity. The pane works, and I can run $this->order->set('...
0
votes
0answers
18 views

Receipt Email only shows Billing and Shipping data when an order is placed as an admin user [on hold]

I have triple checked all the User Permissions on admin/people/permissions. All checked permissions for under Commerce are checked with the exception of those that have the "Warning: Give to trusted ...
0
votes
0answers
7 views

Custom offsite payment module (redirection)

I've created a small module to add a custom payment method to my drupal commerce website, but I have a problem with the redirection to the offsite platform. Here is my payment method infos : ...
0
votes
0answers
11 views

What is the data key for a cell in a custom composite?

I am trying to figure out what the data key is in a custom composite table for specific cells. If I look at the YAML for a submission I see the following: data: dimensions: - length: '1' ...
0
votes
0answers
5 views

Skip a form step programmatically in simple_multistep module

I am trying to skip a step in multistep node form using Simple Multistep module. I have tried following snippet that works pretty good to skip one step. $skipStep = $form_state->get('...
0
votes
1answer
483 views

limit the number of nodes per User

I'd like to limit the number of nodes that an authenticated user can create. For example users can not create more than One post for specific Content Type. I am wondering how can I do so? Thanks..
0
votes
0answers
17 views

settings.php.lock error

I've been working on a Drupal 8 site for a month or so now and development has been progressing nicely until a week ago. It looks like the issues started at just about the same time that the website ...
0
votes
0answers
9 views

When using /user/login as the default 403 access denied page, how can I add the tabs block to the login form?

After removing the anonymous permission to view published content, and setting the 403 access denied page to /user/login, the tabs block is no longer shown with the user login form. The tabs block ...
0
votes
0answers
12 views

How to reference current user when creating taxonomy term

Using drupal 8.7.x I'm trying to create a vocabulary that references the user that creates the term The settings of the user reference field are the following. The taxonomy term is created using a ...
0
votes
0answers
7 views

Redirect domain to www, but on subdomain do not use www

I have a multilanguage website. The main language is English and the second language is Spanish. I need to have all the traffic using this domains: English domain: www.example.com Spanish domain: es....
1
vote
1answer
451 views

Views, Taxonomy, multiple parameters using contextual filters

A view has been created to display related content types via their taxonomy terms, using contextual filters. Currently the view is able to display content based on the first param eg. about The goal ...
0
votes
1answer
584 views

Blank screen with no error messages on new server

I have a working drupal 7 site, built with git, running on 2 different servers, one test server and one server used for staging and production sites. So I know that the site is working. So after ...
15
votes
3answers
19k views

Send attachments with drupal_mail

I'm trying to send attachments with my email from Drupal. In my custom module i have added: class SponsorprogramMailSystem implements MailSystemInterface { /** * Concatenate and wrap the e-mail ...
0
votes
1answer
36 views

Remove the cache for a particular Twig file

I'm showing currently logged in username in header. But it's showing already cached page. I know, I can disable cache for particular page in module using \Drupal::service('page_cache_kill_switch')-&...
13
votes
4answers
16k views

How do I disable Twig and block cache for a specific module?

I'm working on a module in Drupal 8 which retrieves time sensitive data from an external REST api. The data is processed and forwarded to a Block. The final data is sent to a Twig template like so: .....
0
votes
1answer
694 views

Unable to show the block title in D8

I want to show the D8-based blocks in the block.html.twig file with the html tag only. However, when I entered this special split file, I created a special branch file for each block area (eg region -...
0
votes
1answer
19 views

Which files do I need to edit to alter webform #states with hook_form_alter?

I need to create #states conditions between either the fields in any one element in a webform or across other elements in the same form. I'd hoped I could do it via the WF yaml editor but it seems I ...
0
votes
0answers
6 views

How do I programmatically sort table fields using hook_views_default_views()?

I have created all of the view configurations and exported the views_default.inc. After I re-imported my custom module the sorting table fields isn't working and needed to be configured manually again....
0
votes
0answers
9 views

Calculate values in or from custom composite field

Is it possible to use computed token or twig to calculate custom composite fields? I have a custom composite field that asks for length, width and height. I would like to be able to add a 4th field ...
-3
votes
1answer
20 views

Getting PHP extension “gd” and Database support disabled error

I am trying to install Drupal 8.7.3 on my windows machine through the Xampp (PHP 7.3.6). But I am getting following errors: Errors: Please see the screenshot: https://snag.gy/06sMEa.jpg Tried to ...
1
vote
1answer
689 views

How do I create product variants?

I have a product (for example, "Desk") which has two attributes (size and life). Size has the values small, medium, and large. Life has the values 7 years and 10 years. The price is different for ...
0
votes
1answer
7 views

Display Suite Token Fields in Custom Block Types

I want to add a Display Suite token field to my Custom Block Type. I have a custom block type. I created a token field with Display Suite Entities: Block Content Limit field *|* or link_card|* where ...
12
votes
4answers
2k views

How can I get a list of content types with drush?

How can I get the existing content type list with drush? This will allow me to quickly produce a list. I've tried with: $ drush @d6 @sites genc --types But I need the devel_generates module ...
1
vote
1answer
440 views

Change the default timezone variable_get from views

What I want is to change the way drupal views get the site's timezone setting. I want to set it manually in code. Searching through the files I noticed that the function "views_get_timezone()" in ...
0
votes
1answer
349 views

Get a views results programatically

I have a page with a view on it and some exposed inputs. I need to get the results programatically. I can load a view programmatically no problem but setting the exposed input has not been working. $...
0
votes
1answer
558 views

Add a checkbox on registration page for subscription newsletter with Simplenews

I'd like to add a checkbox for subscription to a newsletter on the user registration page. I'm using Simplenews. How could I do that?
4
votes
1answer
60 views
+50

How to disable creation of node revisions on programmatic node update?

I added a field of type computed field to existing nodes. It's required to re-save the nodes to set/update computed field values. As I do not want to update the changed timestamp I decided to not use ...

15 30 50 per page