All Questions

Filter by
Sorted by
Tagged with
-4
votes
0answers
11 views

LDAP connection [closed]

I want to connect my website to an active directory with the LDAP module. Can anyone with some experience in this topic help me?
-4
votes
0answers
11 views

BLT tool generate wrong artifact [closed]

Hi Guys please help with this issue I am using this command to build artifact ./vendor/bin/blt artifact:build -y usually it should copy all files from outside to deploy folder, but now it does not ...
0
votes
0answers
17 views

It's possible to inject text in the not-found message [closed]

It's possible to inject text in the not-found message in order to trick the user to make him visit website or do something an attacker might be interested in. It is returning the user input in the ...
2
votes
0answers
17 views

How can I purge unused translatable strings from the translation interface?

During the development, the wording changed quite a lot. When I generate translation jobs with tmgmt module (or by any other means), all the old wordings are listed as well. Is it possible to have a ...
0
votes
1answer
24 views

Webform detect sender country automatically

We use Drupal 7 webform module. We want to detect the sender's Country automatically from the IP Address. Then based on the Country, the form is sent to another e-mail address. We do not want an extra ...
-2
votes
0answers
14 views

“File upload error. Could not move uploaded file. The favicon could not be uploaded.”

How can I solve the following error when I am trying to upload an image into a Drupal 8 website? File upload error. Could not move uploaded file. The favicon could not be uploaded.
0
votes
0answers
35 views

Get the value of password confirmation field register

I want to use the default register form to get the value of the password confirmation field on register. If a user change his password it will call my API ans send the new information. I can't find ...
0
votes
0answers
18 views

How to show contextual filter results for arg1/arg2 OR arg2/arg1

I have a very simple view that displays the author UID as well as the (entity)recipient UID. How do I show results for arg1/arg2 AND arg2/arg1 First Argument: Author UID Second Argument: Entity UID ...
-2
votes
0answers
24 views

How to display all taxonomy terms whether it is selected or not? [closed]

I have content type Apartment contains a field which is an Entity reference to the taxonomy Facilities and I set it to allow unlimited number of values. As usual, this field only display terms that I ...
0
votes
0answers
14 views

Migrating without changing structure

I'm trying to to migrate Paragraphs content from my existing Drupal 7 site to a new Drupal 8 site. The content models are not changing. As one of the simplest examples, I'm migrating Paragraphs ...
-1
votes
1answer
36 views

Does Acquia Dev Desktop allow 2 or more local sites using different core versions?

The goal was to assemble a local version of a live Drupal 7 site, plus a new installation of Drupal 8 which would become the upgraded version of the Drupal 7 site. But whether I create the Drupal 7 or ...
-3
votes
0answers
24 views

Scan error of “The following CGIs are not protected by a random token”

A scan run against my Dev Drupal 7 website lists the following error: The following CGIs are not protected by a random token: /contact-ocr /civ-rts-coordinators The content of these 2 URLs are ...
2
votes
1answer
29 views

Is there a way to get the max size of a varchar textfield?

I have an entity with a textfield created using the core Fields feature that looks like this when I inspect the type of the field table in the database varchar(40). I want to be able to determine max ...
-1
votes
0answers
27 views

How do I prevent/mediate constant site attacks?

I'm using Drupal 7. I scan my log messages daily. I've noticed an increase in external attacks that include: access denied - typically “node/add” page not found – typically a php file call, or, ...
-1
votes
0answers
12 views

export view to document word

I'm using drupal 8 and i'm looking for module that export the view content or the html page to document word when users(please notice that i want this in page and not in BE ) click on download word ...
-4
votes
0answers
13 views

Classified advertisements website [closed]

Can any of the Drupal software used to develop a classified advertisements website? If yes, which module(s) is (are) required? Best wishes, Alfredo
0
votes
2answers
27 views

How do I make a profile select option on user registration?

I thought this was easy but normal fields and media don't seem to do what I want. I can use normal fields, because it is Drupal 8 and the user is an entity. So all I want to be able to do is: a) show ...
0
votes
0answers
26 views

Using REST to create user with CAS username

I would like my CAS server to POST an account to my client site when a new user registers. My CAS server is using D7, clients are using D8. Using the entity/user endpoint I can create a new user, ...
0
votes
1answer
39 views

Programmatically remove content from a group

In order to add a node to a group in Drupal 8, I use the following code. $group->addContent($node, 'group_node:article'); Now, for removing content from a group, I have tried $group->...
0
votes
1answer
79 views

Can't render node view mode programmatically

I try to render an HTML data from my node view mode but unfortunately, I have some small progress. I did some searching and modification on the others code Here. I have this now. $nid = 145; $...
-2
votes
0answers
18 views

Local clone of live site for upgrade process [closed]

A new, empty Drupal 8 local dev site has been created in Acquia Dev Desktop (v. 2, Stack rev: e13d3f0). Now I want to clone a production site, currently in Drupal 7, for reference in doing both a ...
-3
votes
0answers
27 views

Having problems running evaluation demo on Windows 10 [closed]

I am trying to run the Drupal Evaluation and have a virus warning message when I execute the 'php core/scripts/drupal quick-start demo_umami' from the xampp shell. Everything runs fine until it ...
0
votes
0answers
15 views

How to refer to the node created date in Computed Field PHP

I am using the Computed Field module in D8. I am trying to compute some dates using the node created date as the start point. As my first try, this code works: $valuein = $entity->field_datefield-...
2
votes
1answer
21 views

File upload via REST returns 403

I've been attempting to get a file to upload using REST services and have been having a heck of a time getting it to work. All attempts come back as 403 (Forbidden). Here's the code: export const ...
0
votes
1answer
24 views

Auto-submit exposed form

I'm currently working on a views exposed form block. I want the form to auto-submit using AJAX, whenever an exposed filter is changed. I have searched for this, but I couldn't find any tutorial or ...
-1
votes
0answers
32 views

How to display message author info [on hold]

I have the module Message installed on a Drupal 8 site. I want to display the information of the author of a message but I can't figure out how to do it. How can I display: the url of the account of ...
-2
votes
0answers
13 views

How to get Inline Entity Form Field prefix and suffix [closed]

I want to alter class of inline entity form field eg : field_author (inline_entity_reference) inside this -> field (title) field (body) field (image) i want add those field prefix to ...
-3
votes
0answers
30 views

Cannot insert images in body of a new block

That's my problem when I try to add an image in a custom block. This is a new problem, I didn't have it before. I've watched this question Cannot insert images in body of a basic page But it doesn't ...
1
vote
3answers
85 views

Can I translate nodes and provide access to their translated content without the use of a site-wide language switcher?

Intended behaviour / question Writer creates /node/5001 Translator translates /node/5001 to french using all the niceties of the Content Translation backend system Visitor goes to /node/5001 and sees ...
-3
votes
0answers
25 views

How can I create my own template? [closed]

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
23 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 [closed]

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
29 views

Load View according to the enabled Module [closed]

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
21 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
19 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? [closed]

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
18 views

Form alter the password modification [closed]

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
20 views

Running batch process using drush executing for only one batch [closed]

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
28 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 [closed]

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 [closed]

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
39 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 ...
2
votes
2answers
41 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? [closed]

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
31 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
20 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
32 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 ...

15 30 50 per page