All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Encountered an error when visiting “Contexts” and “Content” under Panelizer Wizard

When modifying Content Type - Edit Default Panelizer, I've faced an issue when I visiting "Contexts" and "Content". [ === PHP Fatal error: Declaration of Drupal\panelizer\Plugin\PanelsPattern\...
0
votes
0answers
2 views

How to show shipping service before VAT in summary?

Normally in carts the total amount incl VAT is the last line and VAT is the second last line. Or anyhow that is how I want my cart to look. But when I add a shipping service it appears after the VAT, ...
-2
votes
0answers
10 views

Show related content by taxonomoy term and limit a maximum of 2 content links by each taxonomy term

I am able to show related content by taxonomy terms tagged on that particular node. The next feature I looking for is to be able to limit a maximum of 2 links for each taxonomy terms. Ex. Node 1 has ...
0
votes
0answers
9 views

How to create a custom token from the parent entity of a comment for the Message module?

I have a site with Drupal, as well as the modules "Message" and "Token". I created a custom module based on the module "Message example". It is possible to create comments on several types of ...
0
votes
0answers
6 views

JSONPath Feed Import looks right but not creating nodes?

Using a Feed Importer with the JSONPath parser, I'm stumped as to how I can import the JSON objects as nodes with mapped fields. Here's the JSON that gets returned: [ [ "Label", "...
1
vote
1answer
21 views

Prevent clubbing of server side error messages on top

I have inline form errors module enabled on my drupal 8 site. The server-side errors that appear on form submission are appearing as clubbed together like below: How to change this error language and ...
0
votes
0answers
7 views

Have can I have a view grouped by nested hierarchy?

I have a nested taxonomy as follows: Some forms will only have the taxonomy of "Basic Forms", some will have taxonomy of "overtime forms", etc. So I want my Forms view to look like this example: How ...
0
votes
0answers
26 views

How can I add sub-items to a tray?

I've successfully added an item to the the admin toolbar and now would like to create a drop down menu from that (i.e. the way Manage > Structure drops down Content Types, etc.) This is how I've ...
0
votes
0answers
19 views

How can I use an if-else-statement to conditionally display or hide field collection items?

How can I use if then condition to display filed collection items I have a filed collection with 3 filed time. The max limit of the filed array is 3 in another word [0-2]; Filed name: - television ...
0
votes
0answers
20 views

How to create a custom token for the Message module?

I have a site with Drupal, as well as the modules "Message" and "Token". I created a custom module based on the module "Message example". I created for entities, a display mode called ...
0
votes
0answers
23 views

Site complete loss of styling and not saving settings

I recreated a D7 site on EC2 for a client. After importing the database all seemed well until I refreshed and all the styling had disappeared. I thought it was because I clicked on the HTML Purifier ...
0
votes
0answers
13 views

Completely delete an entityqueue config

I'm trying in my module uninstall hook to delete a config of an entityqueue which is created by the module myModule. entityqueue.entity_queue.my_entityq.yml : langcode: en status: true dependencies: ...
0
votes
0answers
9 views

How to use webform tokens in mimemail Twig templates

I'm trying to send webform confirmation emails via mimemail. I managed to trigger the correct template file, but my problem is: How can I pass certain webform submission_values into the twig file of ...
0
votes
0answers
18 views

How can I migrate an Amazon S3 bucket to into Drupal?

SCENARIO I currently have a bucket where all my images are hosted and stored. I currently display them by simply using URLs that link to the images (i.e https://[bucketName].s3.amazonaws.com/[...
0
votes
1answer
15 views

Node Reference Argument In loadByProperties() while Creating API

I have a custom module which generates an API, I want the API to filter content based on a node reference field. How do I pass the field field_author(Entity Reference from another content type) field ...
0
votes
0answers
14 views

Only allow 1 discount using commerce_discount

I am having trouble finding out how to only allow 1 discount per order. eg. a specific user role allows 15% discount on their order. We also have another discount set up that applies a further 15% on ...
-3
votes
0answers
12 views

Display only last value checked from a related node

I have a view where I display different users (Profiles). On the other hand I have Content Type which has a field related to those Profiles. Moreover I have a check field (Yes/No) in that Content Type....
0
votes
0answers
5 views

managed_file - get ajax_submit of Upload/Remove button

I have a managed_file form field. Is there a way to add more functionality to the Upload/Remove buttons of that field, like modifying the ajax_submit of these buttons? For example, if the Remove ...
-2
votes
0answers
14 views

How to make dropdown in front view drupal 8 [on hold]

i have developed drupl8 site .How to make city dropdown? Not for a menu dropdown.
-3
votes
0answers
18 views

How to show/hide div based on the radio button selection in form alter

I have a content type, having a field with radio buttons. Radio button describes a list of the interest. Field Name: field_interest Field Type: Select List (checkbox-radio enabled in the form display ...
-2
votes
0answers
23 views

SQL Injection vulnerability test

My Drupal 7.67 - up to date, website, has been scan with a vulnerability tool and one of the findings is that there is a SQL Injection Vulnerability. The website does not have custom modules all are ...
0
votes
1answer
22 views

Permissions Rebuild fails

After I installed a quiz module on my Drupal 7 site, it asked me to rebuild permissions. when I try to rebuild it throws this error: I've tried everything that I found online, including: increasing ...
0
votes
0answers
11 views

Retrieve last published (moderation state) version of node when transitioning to published

I'm wanting to get the last published revision of a node that has a content moderation state of "published". The below code works fine until I set a node to the "published" state at which point it ...
0
votes
1answer
20 views

How to add extra eventlistener to menu object in attached library

This is my first Drupal 8 project and I'm running into a problem figuring out how to attach an extra event handler to an object. I am working on a custom theme using Radix as base theme. I am using ...
0
votes
1answer
21 views

How can I add a pager to the top of a forum?

I am using the standard forum module that comes with Drupal 8. The problem is, when I view a forum node, it shows the pager the bottom. I want the pager to also appear at the top. The closest I've ...
0
votes
0answers
16 views

Poll module alternative / node integration

I just added the Drupal 8 Poll module and can't seem to get it working in a content node by entity reference - rendered entity. It shows nothing, not even a field. Perhaps I'm missing something?
-1
votes
0answers
11 views

How to add Checkbox Fields to User Accounts?

Is it possible to add multi-choice checkbox fields to a Content Type or the fields of a User Type? Hoping it is possible to create the following when a User is registering for an account. They should ...
0
votes
1answer
26 views

One field (entity reference - paragraph) with two display modes

I am having issue with displaying one field twice in my template having different display modes. I have a content type basic page with field field_gallery (which is entity reference on paragraph). In ...
3
votes
1answer
49 views

Date input format problem

I need to import a large dataset (over 300,000 records) into a Drupal 8 site. I have figured out how to do this with feeds on a small test dataset. The dates in the records are in the format June 8, ...
0
votes
1answer
15 views

How to include a patch to a JS library?

I'm using the Superfish library in my Drupal 8.7.x project. I included it in composer.json like this: "repositories": [ { "type": "composer", "url": "https://packages....
-2
votes
0answers
17 views

How can I calculate the total value of two fields in webform

Here is my scenario: a user calculate a price for house design he/(she) can select in a drop down called type of house : apartment, office, standard home, and I want to if to specifies type of ...
-4
votes
0answers
18 views

Cannot change node url value [on hold]

I am using drupal 8 and php 7.2 in windows 7 How can I change or replace url value in node field ?
0
votes
1answer
20 views

Hook to run afer config import

I need to run some code after the config for my module is imported(it will create/update a css file that depends on configuration). So what is the correct hook to use? The module install will run only ...
0
votes
1answer
17 views

Block email from submitting webforms

I have a list of email addresses that I would like not be able to submit in webforms. I can't seem to find a setting for this? Is this currently possible or do I need to make a custom module to ...
0
votes
1answer
41 views

Change view mode based on the URL

I have nodes whose content type is X that I would like to render differently based on the node path. I'd like to use the default view mode for a path alias and a custom view mode for the other path ...
0
votes
0answers
23 views

Enable translation for theme settings

Theme settings are not translatable in core. Is there a way to make them translatable? I have some additional theme settings which needs to have different values per language. I'm trying to achieve ...
0
votes
1answer
25 views

ConfirmFormBase to FormBase

Drupal 8.7.x I have a Form button with a confirmation page to delete an ingredient. I'm trying to convert it to a standard Form that just deletes it without confirmation, however I keep getting an ...
0
votes
1answer
39 views

How is the user logout process supposed to work?

I’ve built a complete private site. Everything seems to work. When users wants to log out, they are redirect from /user/logout /user/login?destination=/, which seems the normal behavior, for what I ...
0
votes
0answers
11 views

How to change taxonomy link? [on hold]

I have taxonomy called "departments". I would like to make new view with list of all departments. Department should be a link to single department view with list of all articles. When I tried to do ...
-1
votes
0answers
12 views

Error generating document: Failed to generate PDF [on hold]

I have installed Entity Print on Drupal core 8.6.2 The following is my configuration: Enable Default CSS Force Download Default PDF engine for printing = Php wkhtmltopdf Paper Size = A4 Paper ...
0
votes
0answers
33 views

Hook “form_views_exposed_form_alter” is called multiply times

I would like to understand why form_views_exposed_form_alter is called multiply times. There is just one view, also there is just one exposed filter. However the hook is getting called twice. ...
-2
votes
0answers
10 views

getting error during installation of drupal-8.0.1 what we have to do?? i used MAMp [on hold]

Warning: preg_replace(): JIT compilation failed: no more memory in Drupal\Core\Database\Connection->escapeTable() (line 953 of /Applications/MAMP/drupal-8.0.1/core/lib/Drupal/Core/Database/Connection....
0
votes
0answers
15 views

Programmatically update remote video thumbnail

Scenario: YouTube video was previously unlisted, so thumbnail not retrieved and now needs to be, or chosen thumbnail has been changed and needs updating. There are a couple of core issues open on ...
0
votes
1answer
17 views

REST Export Serializer adds quotation marks to my field

I'm using the REST export to expose a list of my nodes including some fields. One of the fields is paragraphs field with subfields. I have written a formatter for this paragraphs field that puts ...
-3
votes
0answers
12 views

I can't upload user picture [on hold]

I want to upload an image for a simply user on the default form and I get the following error : "The file could not be uploaded." I have tried with all types of file formats. I also checked the ...
0
votes
1answer
11 views

hook_custom_theme() works except if a user submits a user form with mismatched passwords. Then they get served the admin theme

Title basically. My hook_custom_theme() has been working for ages and I only just realised the admin theme is being served for an error when saving a user form ie. mismatched passwords. A snippet ...
0
votes
1answer
32 views

Is it possible to show a menu in a view as buttons?

I'm trying to build a page with a quick menu. Now I've created a menu by the regular way and I've shown this on the place i wanted. Now due to the way my site currently looks, this is very out of the ...
2
votes
0answers
25 views

Layout Builder - How do we programmatically place a section and then a block in that region on module install?

We are looking for the best way to export a defined/built layout with inline blocks and then use that to programmatically set both them during a module install. eg. module install create node in ...
0
votes
0answers
11 views

How to import image using CSV user import?

I already success to import user and node, but the image is not imported. I also write the path in csv to the file public://xxx fullpathHttp://xxx and i've done upload the img to the server first, ...
0
votes
0answers
12 views

How can I get the address components from Commerce store entity?

I have an address field in a form I'm building with the Form API. I need to pull the address components from the Store's instance so I can set them in my form. I can pull other fields from from the ...

15 30 50 per page