All Questions

Filter by
Sorted by
Tagged with
-1
votes
0answers
7 views

How to create a page switch dropdown jump menu?

I have 2 sections in my Drupal 8 site, let's say /section1 and /section2 and I would like to create a dropdown switcher to navigate to the other section. So, if user is at /section1/about the ...
0
votes
0answers
7 views

I cannot uninstall the Coder module

I am using Drupal 7. I go to the Modules page and Coder, Coder Review, and Coder Upgrade are all disabled. But if I click on the "Uninstall" tab, Coder is not listed. How do I remove this module ...
-2
votes
0answers
18 views

Migrate forms to webforms in Drupal 8 from NON Drupal site [closed]

I have the form's submission data available in SQL and i have to migrate that to webforms in drupal 8. Any guidance will be helpful.
0
votes
2answers
16 views

Drupal 8 webform 8.x-5.8 - how to show the previous step value in next step?

I have created a multistep webform and it has 5 steps. is it possible to get the previous step field value/data in the next step? for example, I have a field select list field (key = ...
0
votes
0answers
10 views

How do I dynamically add og:image meta tags in drupal multisite

I have drupal 8 multisite setup, where I am creating multiple site using some script technique and rendering the data using domain name via twig files by fetching from dynamodb records. So my ...
-3
votes
0answers
25 views

If statement always return false

I am using condition to match value look at following snapshot to understand better, it's always returning false. {{dump(content.field_size_of_paragraph.0)}} <p></p> <hr /> {{dump(...
0
votes
0answers
7 views

Show all content referenced by another content, regardless of language

I have a "Movie" content type. It can be translated in 3 languages (fr/de/it). I also have an "Event" content type. It cannot be translated. It has a field that can reference a Movie (reference field)....
-1
votes
0answers
10 views

Call to a member function getPath() on null in Drupal\Console\Generator\ComposerGenerator->generate() (line 46 of [closed]

Error: Call to a member function getPath() on null in Drupal\Console\Generator\ComposerGenerator->generate() (line 46 of D:\Xampp\htdocs\drupal81\vendor\drupal\console\src\Generator\ComposerGenerator....
0
votes
0answers
12 views

Client Side Validation library custom error and success elements

I am using Drupal 8 with the Webform and the Clientside Validation modules. The validator works fine, but it adds error and success classes directly to the input element. I want to create a separate ...
0
votes
0answers
17 views

Serve statics files in each multiple sites with Nginx

I use Drupal 8 and I want serve statics files in each multiple sites with Nginx. I've a site at web/sites/site_1/ and a site at web/sites/site_2/. I want serve ads.txt or robots.txt for each sites ...
0
votes
0answers
11 views

Display the terms of 2 different entity references assigned/contextual to a node (display distinct and grouped)

I cannot manage it to list terms of two different entity references contextual to a Node in a distinct manner in one View (with two different views its no problem at all). I have an entity reference "...
-1
votes
0answers
20 views

Using saved data when creating content

I have a website which ordering and delivering things, to make an order user creates content. At that time he or she should fill the address and name of person who takes the parcel. Nowadays He or ...
0
votes
1answer
23 views

How to translate the month name in a date select list field?

I have created a date field in user account fields. In manage form display, I have selected Select list as widget. I want to translate the month names which is displaying a select list. I checked it ...
1
vote
1answer
35 views

How do I disable cache in my entityQuery?

I created a preprocess function in my recipe node page, inside that function I want to get 3 random recipes everytime the user accessess the page. I have this code: function ...
0
votes
0answers
15 views

Composite computed twig and conditional logic do not work in a form

I made a computed_twig and simle conditonal logic in a form and both work, then I copy the yaml as a composite, then I use (insert) the composite in another form but both (computed_twig and ...
0
votes
1answer
28 views

How to display date and time picker for base field on custom entity

I've made a base field on a custom entity with type "datetime" using "datetime_default" for the form display. It's displaying as only a date picker, with no time component, whereas I want it to look ...
0
votes
0answers
9 views

Edit SOLR query based on checboxes in form

I am using Search API and Search API SOLR modules to search with SOLR. Now I would to change the query and I already learned how to do it. Last thing I need is to allow user change query through some ...
0
votes
1answer
25 views

How do I empty the cart?

I want to programmatically empty the cart after these events. Add to cart Update quantity (in cart page) In fact users must have only one product in their cart.
-3
votes
0answers
47 views

Application Vulnerable to Stored Cross Site Scripting [closed]

When logging in with content editor role user, the user is not allowed to access most of the functionalities such as Extend> Install new module. An HTTP 403 Forbidden page is displayed to the user. ...
1
vote
0answers
30 views

How do I fix the “the entity does not have an ID” error? [duplicate]

I need to save the configuration entity using the following code. $entity->save() returns an error. src\Form\ProtectPayMerchantProfileCreateForm namespace Drupal\propay_api\Form; use Drupal\Core\...
-4
votes
0answers
23 views

Server Side Request Forgery / External Service Interation (DNS) [closed]

The application performs DNS requests on the domain name injected in X-Forwarded-For header. This technique is commonly used by adversaries to spoof their IP address. The header also supports ...
0
votes
1answer
28 views

Can a content entity type have a bundle which is a configuration entity type as with the contact form?

What is bundle_entity_type for @ContentEntityType when id = contact_message and where contact_message is @ConfigEntityType? Can a configuration entity Type be a bundle of a content entity type? core/...
0
votes
1answer
18 views

How do I create a view with some customization?

I like to create a view to display properties information as shown below. View View page 7676 - SQFT 7 - BR I created a view and added the fields based on my design. I made progress, but I am ...
0
votes
0answers
22 views

Where can I get dompdf_0-8-0 that include .info.yml files?

I am new to Drupal and can't get the download PDF feature working in Drupal 8 webform submission, getting the following message: Error generating document: Missing dependencies. Please install with: ...
0
votes
1answer
26 views

Twig embedding and field object

I'm using Radix and trying to create a Botstrap carousel component with no luck. This is the code so far. Kint shows me that media object is there with its multiple fields but nothing is rendered. ...
-2
votes
0answers
58 views

How are modules loaded in Drupal 8? [closed]

I am trying to figure out exactly how modules are initialized and loaded in the Drupal 8 paradigm. can someone point me to a graph detailing the architecture of the Drupal Backend? Note: I am not ...
0
votes
0answers
48 views

Can we pass argument to a form from a Twig template

I have a form that accepts a custom argument sourceid public function buildForm(array $form, FormStateInterface $form_state, $sourceid = NULL) Now, this form is displayed in a twig template ...
1
vote
1answer
46 views

Cookie Compliance and Google Analytics

I'm using Drupal 8.6.14 (going to upgrade soon) and i am trying to create a cookie consent page that actually works! I've used many different modules like EU Cookies Compliance, GDPR Compliance and ...
3
votes
1answer
35 views

How do I retain user input in a form after submission?

I am working on a simple form for searching a collection of marriage licenses. It consists of a select box where the user may choose to search last names, first names, or both, and a text field where ...
-3
votes
0answers
14 views

New FTP User / Password [closed]

I have an administrative credential for Drupal. But not for FTP. The guy who left our organization doesn't provide this information. How I can create a new FTP user? Thank you Konstantin
0
votes
0answers
11 views

Migration_lookup plugin when field names don't match

I had a migration for image files to media images. It used a migration lookup of: field_media_image/target_id: - plugin: migration_lookup migration: agr_file source: fid Now I am migrating ...
1
vote
1answer
24 views

How can I get field labels from submission data?

I have created a custom webform handler which works. And I can get the data from the WebformSubmission. However, I can only get the machine name of the field. I would like to get field label. For ...
0
votes
0answers
10 views

Webform Submission View returns duplicated results

I created two bogus submissions for this example. When I remove the Address field from the view, only Record 1 and 2 show up as desired. When address is included, I see the results in the images. ...
-1
votes
0answers
34 views

Why does composer misstate which module versions are installed?

How do I update a module if Drupal keeps telling me that submodules within that module aren't compatible with the newer version? In this case, I am trying to update the advagg module, and composer ...
0
votes
0answers
8 views

Move field into the Menu settings on node edit

I want to move a field into the "Menu settings" section in the sidebar on node edit form page with the following code: /** * Implements hook_form_alter(). */ function mymodule_form_alter(&$form,...
0
votes
0answers
16 views

Get data from one editor field and pass that into another editor field

I have no idea if this is even possible, but I figured I'd ask anyway. I'm working with a site that is on Drupal 8, and long story short, we don't have access to extending nor updating much so any ...
-1
votes
1answer
38 views

Why my variable is not replaced by its value?

On the article content type, I have added a field named information of type Text (plain, long). Then I have created an article (nid: 5) with the value of the "Information" field set to: $...
-4
votes
0answers
24 views

Need to iterate values of all field collection mentioned in the screen shot, Not able to get correct method

1: I have 3 field collection in a block form and not able to iterate target ids in foreach
0
votes
1answer
39 views

Get field content of all instances of a field

I'm trying to get the content of all instances of certain fields based on their names. I've got a list of fields (which are in nodes/paragraphs and blocks) of which I want to extract the values from. ...
1
vote
1answer
36 views

Views field cache tags does not invalidate the views cache

I've implemented CacheableDependencyInterface on my ViewsField plugin. /** * {@inheritdoc} */ public function getCacheTags() { return ['arbitrary_tag']; } I can see the tag on the ...
1
vote
1answer
40 views

How can I get row field in hook_preprocess_views_view_unformatted(&$variables)?

Is there a way to get a field from the view in the hook_preprocess_views_view_unformatted(&$variables)? $rows = $variables['rows']; foreach ($rows as $id => $row) { // $row['field_name'] or ...
-4
votes
0answers
14 views

Authorization scopes in Office 365 integration [closed]

i doing Oath for drupal with Offic365 and it is asking Authorization scopes. what need to be mention there?
1
vote
1answer
31 views

How do I programmatically create a node with an entity reference (to an user)?

It is kind of strange because my code creates the node with the referenced user uid in node_field_data, but when I open this node the user reference isn't working. Then I navigated the database and ...
0
votes
1answer
57 views

How can I remove the black line from top and bottom of Entity Print output?

I'm using the Entity Print module with TCPDF. Is there a way I can remove footer and header? I did in Drupal 7 by editing the print_pdf.pages.inc file, but I wasn't able to locate the same functions ...
0
votes
0answers
10 views

How to flag a node and take the values from a node in a block and set these in fields of the flagged node

I am creating a calendar view showing the available sessions of a Teacher (role). Each session has a global flag named "Book Session". A Student (role) can have multiple courses but only one needs to ...
0
votes
0answers
33 views

GoDaddy does not allow me to install modules and themes

I just signed on for the Godaddy economy shared hosting plan. I have installed Drupal via the cpanel and my website in up and running, but I see that this drupal installation does not offer any links ...
0
votes
0answers
21 views

Variable price field for donation

Is it possible to create a variable price field where the user may enter any donation amount they like.
-2
votes
0answers
27 views

What is the correct way to create a store with REST API?

POST method: POST url: http://localhost/drupal/entity/commerce_store?_format=hal_json Headers: Content-Type:application/json Accept: application/json X-CSRF-Token: ...
0
votes
1answer
32 views

How do I check radio buttons in Twig template?

In a form, I have this field: $form['payment'] = [ '#type' => 'radios', '#title' => $this->t('Payment Mode'), '#options' => [ 'chk' => $this->t('by check'), 'tfr' =&...
0
votes
2answers
43 views

A custom route to an entity form will not pass the entity

I want a custom route to the normal user form. So, I've added an entry to the routing file that directs my custom route to the canonical form of the User entities: my_profile_form: path: '/user/{...

15 30 50 per page
1 2 3 4 5 1639