All Questions

Filter by
Sorted by
Tagged with
-3
votes
0answers
25 views

How can I create my own template? [on hold]

Is there a way to make a webform I created into a template? I know I can just duplicate it but would rather have it the template tab for other users.
0
votes
0answers
20 views

How to get the file ID using managed_file on custom form?

In Drupal 8, I have a custom form that I built using the Form API in a custom module. I am trying to upload a file using managed_file field. For some reason I can't get it to give me the file ID no ...
-2
votes
0answers
30 views

Better paragraphs in paragraphs module [on hold]

I am using paragraphs module to edit texts in a blog. My problem is that I edit long texts and the presentation of paragraphs is not very friendly. You lose the WYSIWYG effect and long texts separated ...
-1
votes
0answers
27 views

Load View according to the enabled Module [on hold]

I have two custom views which I load into Twig file by using the following code: {{ drupal_view('My_custom_view_1') }} AND {{ drupal_view('My_custom_view_2') }} My Custom module name is '...
0
votes
0answers
18 views

View page count in Twig template

I can't seem to figure out how to get all this information in one line in a views template. <div class="pagination--totals"> Page @current_page of @page_count <small>(@total Results ...
0
votes
0answers
16 views

Admin file upload assigned to specific users

I'm looking for a way to allow the administrator to upload files. These files will be for specific site users (think receipts, test scores, etc) and can only be viewed by that specific user. Things i'...
0
votes
0answers
22 views

Rules action “Send Mail”: doesn't work for more than one recipient

I have installed Rules, Views Rules, Phpmailer. Test mail works. In a rule, I have three actions: 1) Send mail to a specific address: it works! 2) Send mail to all users of a role: it doesn't work ...
0
votes
0answers
7 views

Rest Export View's “Link to Content” field is returning Original Server FQDN instead of Reverse Proxy FQDN

I have a Drupal 8 application behind a reverse proxy. Assuming that the FQDN for ReverseProxy is https://reverseproxy.com, and the FQDN for direct server access is https://directaccess.com. I've ...
-2
votes
0answers
30 views

any idea on how to make background width of some fields of content region to full width of webbrouser screen? [on hold]

I'm trying to implement new design to web site (Drupal 8, adaptive theme). idea of web page design is to have in some areas background image with width of 100% 0f browser window. There was no problem ...
-4
votes
0answers
17 views

Form alter the password modification [on hold]

How can I alter the password modification ? function alter_form_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { if ($form_id == '###FORM_ID###') { } }
1
vote
2answers
34 views

How to make an nid replacement in a Text area inside Footer?

I want to generate an nid of the current page in the Text area inside the footer of a view. I cannot add the ID (node id) in the Footer. What is the proper way for doing this? Any hint? Thank you.
-3
votes
0answers
17 views

Running batch process using drush executing for only one batch [on hold]

I have defined a drush command which run a batch process. On my local it is working fine, but when I am running it on stage machine only one batch getting executed after that it stops. I don't how to ...
0
votes
1answer
19 views

Field contains list and values of it are shown in one symbol

I'm developing a drupal module and there's a problem. I need to make a content type with some fields and one of them should have list with string values. But when I try to create content and choose ...
-5
votes
0answers
17 views

jQuery upgrade conflict JS due to collapse text module [on hold]

After upgrade jQuery version to 3.1, jQuery get conflicted due to deprecated function andself. As collapse text module call core js file misc/form.js which have andself function. This function is ...
-4
votes
0answers
17 views

Adding search field [on hold]

I tried adding search field inside drupal webform, when I try to search it takes to the search page and display results. Is it possible to display the result inside the webform itself? I am using ...
0
votes
1answer
36 views

Adding a view block to a basic page

I have been tasked with creating a new basic page that contains displays, the content of some new content type. So far, I have created the basic page and I have also created a new view block (i.e. I ...
1
vote
2answers
39 views

Add a condition on dropdown selection

I have a dropdown in a node and the id of the dropdown is "field_b_status". I want to add condition in a rule if the drop down value is equals to one of the value "Complete" then send email. When i ...
-2
votes
0answers
16 views

How can I add a dropdown on the view details page and connect to the API on submit? [on hold]

I have a view which displays the list of the Orders on the page. and when user clicks on the order then user sees the detail page where user sees all the order related information. I want to add a "...
0
votes
0answers
29 views

Updating custom entity field

I have a custom entity and wish to increase size of a varchar field. This gives helpful input: https://www.drupal.org/docs/8/api/update-api/updating-database-schema-andor-data-in-drupal-8 I added ...
0
votes
2answers
19 views

Display selected fields from referenced node rather than just referenced node title

I've searched for an answer to this, I can't find it for the life of me. I want to in a node display additional selected fields from referenced nodes, not just the title field of the referenced node. ...
0
votes
1answer
31 views

Overriding radio button rendering

I have a List (text) field on a comment type. This field is required and only one option may be chosen, so a radio button is how it will be rendered. I would now like to change the way the radio ...
0
votes
1answer
12 views

Is there a field tpl for body and/or title fields?

I need to add some data- attributes and I am hoping to change it for the body and title fields on article content types. Do the title/body have tpl's that I can modify to add these? Or another method ...
1
vote
0answers
29 views

How to display the parent node or product of a comment?

I installed the Message module on my site. I created a custom module that created a message when a comment is created. https://imgur.com/a/4OLhGlL How to display the parent node or product of a ...
-1
votes
0answers
11 views

Drupal 7, Ubercart, Sage Pay and SCA [on hold]

Not being a developer but looking for some assistance. We successully use Ubercart with the Sage Pay module and have done for a few years. I now understand in a few months the new legislation ...
4
votes
1answer
44 views

What does the term 'Bootstrap' mean?

Referring to https://www.drupal.org/project/health_check I am confused as to what 'If Drupal fails to bootstrap' means. What is term 'bootstrap' referring to? Does it make a database call? From what ...
0
votes
0answers
21 views

How to update a content node's field value with a link (URL)

In Drupal 7, there was the ability to create a Rules Link in Views that passed arguments to a Rule that could update a single value in a node without having to use a form. How to do this in Drupal 8? ...
0
votes
1answer
30 views

Code inside attached behavior not executed

I nested jQuery code inside a behavior. I don't understand, why the code does not execute. I would be appleased if you could give me a hint on what I probably did wrong. My code: $(function (){ ...
0
votes
1answer
8 views

Exposed filter or facet for a vocabulary listing select list

I have to create a form with a fulltext search field and a dropdown listing every terms of a certain vocabulary. On submission the form is redirecting the user with the value of both the fields as ...
0
votes
2answers
38 views

Error during config export

I have added one field in the content type. So when trying to export configuration it gives an error $ pwd $ /c/xampp/htdocs/Test/docroot/sites/testone.com $ ../../../vendor/bin/drush config:export -...
0
votes
1answer
21 views

Unable to add Quantity in Stock in Drupal Commerce 8 using Commerce Stock Module

I have enabled Commerce Stock Modules and its submodules 1. Commerce Stock API 2. Commerce Stock Field 3. Commerce Stock Local Storage 4. Commerce Stock UI Created a Product Type ABC and added a ...
1
vote
1answer
19 views

How to align views pager url with real page number?

When creating pager in views (D7) you get urls with query parameter like page=X by default. But this X does not match actual page number. page=1 is generated for 2 link in the paginator and so on. ...
0
votes
2answers
27 views

How to implement a text field formatter that renders a URL as the image?

If a node has a text field with the url of an image as its value, how can I render this field as the image? The image does exists it will be given the image url. I have to write that url into the ...
0
votes
0answers
8 views

Add a button on the login form

Is it possible to add a button on the basic login form? function alter_form_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { if ($form_id == 'user_login_form'...
-2
votes
0answers
15 views

sort between 2 date [on hold]

how can i sort a specific content type between 2 date $nids = $query->condition($and_condition_1); $nids = $query->execute(); $original_count = count($nids); $nids = $query ->sort('...
0
votes
1answer
35 views

How to create a Tour on the homepage?

I created a Tour with the Tour UI module and I was unable to activate the tour on the homepage. The homepage of my site is the default view of drupal 8 with the machine name frontpage How to ...
0
votes
0answers
9 views

CKEditor/Media Gallery Using Absolute URL for images, how to update?

After entering 100's of hours worth of content we noticed that the images entered through the media gallery plugin contain absolute paths, not relative. This means they breaking when we switch domains....
0
votes
1answer
26 views

Drush can not connect to mysql when run a Drupal in a Docker/Azure

I have a website that it's running ok in Docker/Azure. I have this configuration in my settings.php $databases ['default'] ['default'] = array ( 'database' => getenv ( 'MYSQL_DATABASE' ), ...
0
votes
1answer
53 views

How can I store plugin configuration safely on content entities?

Let's say I need store a plugin ID and its settings on a content entity through a FieldType plugin, how can I do that safely? i.e. If a plugin is removed or its configuration is updated how can I ...
-1
votes
0answers
34 views

Generate a slug for a custom route

I have created a custom route and i'm trying to figure out how to replace the node id by a slug. I have this: /my-custom-path/1 I want this: /my-custom-path/a-node-slug How can i do that ? Thanks ...
0
votes
0answers
10 views

How to filter GraphQL query by content language?

I am coding Drupal 8/Angular app and Angular is fetching data from Drupal using GraphQL. Everything works fine except now I need to query nodes in a particular language. This is my query: { ...
-3
votes
1answer
27 views

Drupal using Guzzle request [on hold]

I call an API when someone connects via my login form. When the API sends me back 200 I would like you user to access the HOME. But I have the following error: The website encountered an unexpected ...
0
votes
1answer
20 views

Showing fields from different bundles that are related

I'm trying to display the fields of one content type while searching on another content type. More specifically... here is my situation: I have a view based on an index with fields in Organism and ...
1
vote
1answer
25 views

Sending file attachment in the email contact form

I have added a file field in a contact form. The client is receiving the email and there is the link of file. She now needs the file in attachment. Is there any module or code that could send the ...
0
votes
0answers
12 views

workbench_access filter by section

I'm green fielding workbench_access in Drupal 8.7 while keeping an eye how customer implemented it in D7. I need to provide a view for a content_type of basic_page which a $user has access in WBA ...
-3
votes
0answers
21 views

Open new url when accessing link on a webform? [on hold]

When accessing a link within a Webform I want to open a new url. I have multiple links within a webfrom I would like for people to be able to access without being taken away from the webform. Any ...
-1
votes
1answer
27 views

How to run tests in my contrib module?

I'm writing a contrib module but I can't find the documentation to run the tests - unit and functional. I know that I'm supposed to use PhpUnit, but I can't find examples of PhpUnit configuration ...
1
vote
2answers
50 views

How to programmatically build a page and a form in the same page

What I'd like to do is build a page with two things: On one half of the page, custom markup with data from Drupal. On the other half, a custom form also submitted to Drupal. There are a lot of ...
0
votes
2answers
40 views

Run validation callback before ajax

The submit element on my form uses an ajax callback which sends out an email. I have a validation callback which I've added to this form, but it gets run after the ajax callback and so the email will ...
0
votes
0answers
31 views

Alter a Field Collection display order inside a FieldCollectionHook

I have been stuck in here since yesterday and I'm starting to run out of ideas. I have a Field Collection that contains 2 fields. The first one is a multiple taxonomy term, and the second one is a ...
-1
votes
1answer
37 views

Webform element validation custom module

I want to add a custom validation to text input, I followed the instruction provided in https://www.drupal.org/docs/8/modules/webform/webform-cookbook/how-to-add-custom-validation-to-a-webform-element ...

15 30 50 per page