All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

What is required for a view menu item to show up as a link in the admin page?

I'm creating several views that are to be used as reports. Since they all have a common topic, I'm grouping the views under a sub-path of admin/reports (e.g. admin/reports/data/needs_correction and ...
0
votes
0answers
9 views

Custom payment form for a custom payment method type [on hold]

I have a custom payment method and I want to had a custom payment form. The payment happens on site and I don't use credit card. I want something like a manual payment but with a payment form to ...
-1
votes
0answers
10 views

entity_metadata_wrapper not saving data consistently

When using the Entity Metadata Wrapper, I am getting inconsistent results when attempting to update data on the user object. I have a chunk of code that looks like this: global $user; $user_data = ...
1
vote
0answers
16 views

Incorrect User data being loaded after save

I am running into some data inconsistencies when attempting to load user data after saving the data. Basically, I have a callback that will update a field on the current user object. In a simplified ...
0
votes
1answer
27 views

How to un-cache a specific node field (also for anonymous)

My goal is to replace (by a custom markup) the render array of field_product when some conditions are met. (in a ecommerce site) Ex: If this is the weekend or if it is after 12pm the field_product ...
-2
votes
0answers
20 views

How do I create re-usable Paragraph items using Paragraphs Library?

An answer to a similar question says that we can use the Paragraphs Library sub-module to enable the re-use of paragraphs. But how exactly is this achieved? I cannot find any materials on how to use ...
0
votes
1answer
13 views

Display long text fields as type text input not as textarea on node forms

I have some fields which are configured as long text fields, which I need to display as <input type="text /> instead of <textarea></textarea>. I'm trying to find the correct naming ...
0
votes
0answers
12 views

Acquia Cloud and Cloudfront

I would like to use Cloudfront with my Acquia Cloud hosted site. Looking at https://support.acquia.com/hc/en-us/articles/360005539753-Using-a-Content-Delivery-Network-with-Acquia-Cloud it suggests ...
0
votes
0answers
23 views

Securing Admin on separate port

I am attempting to secure the admin pages (/admin/*) and login page (/user/login) to port 8443. I have successfully done that with the following in apache 2.4: <VirtualHost _default_:443> ...
-2
votes
0answers
13 views

Sending POST request through Rules

I have installed following modules: 1- Rules 2- Rules API POST What I am trying to do: On the node edit page, I have added a rules on specific select box selection, if user selects the specific ...
0
votes
1answer
9 views

Create a text field product attribute [on hold]

I am building a website on Drupal 8 with Commerce 2. In a previous version of the website, I used Commerce Product Option (https://www.drupal.org/project/commerce_option) to create fillable text ...
0
votes
1answer
38 views

Scoping an admin link to only show for certain node bundles

I have 2 node content types / bundles, A and B. each A has a relationship with multiple Bs. When on the edit page, node/%/edit, for A, I want to show a link to the list of related B so that an editor ...
-5
votes
0answers
39 views

Accessing raw pre-render data programmatically [on hold]

I have a bunch of Views and their Displays (tens) that I would like to access their raw pre-rendered data in order to create a JSON output, but without having to go and duplicate each one as REST ...
0
votes
0answers
39 views

View with a relation 1 to N in the inverse side

I'm working on a Drupal 8.7.3 application and now I'm trying to build a view page for a content that is related in a relationship 1 to N, but it's on the inverse side. Let me clarify: I have products ...
-1
votes
0answers
39 views

How to display the rendered entity of a reference field in a template?

I have the Message module installed on my site. I created a message template for the new node created in my sub theme. Nodes have a display mode called message_activity_stream How to display this ...
-2
votes
0answers
24 views

Get $tempstore inside Twig

I'm creating a module my_module, I want to tempstore a variable and get it inside a Twig template. Here's my controller: $tempstore = \Drupal::service('user.private_tempstore')->get('mymodule'); $...
0
votes
0answers
17 views

The “text_plain” plugin does not exist

I'm a member of a student group. A couple of years ago some former members build a knowledge management system on top of Drupal 7. It worked great since then but know we want to migrate to Drupal 8. ...
0
votes
0answers
18 views

Listing two different custom entity types in one view

We defined two entity types, questions and answers. They are related to each other but we will need a view listing all questions and answers in order of title or created date for example. When you ...
-4
votes
0answers
11 views

LDAP connection [on hold]

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

BLT tool generate wrong artifact [on hold]

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

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

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
34 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
17 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
23 views

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

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 ...
0
votes
1answer
33 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
23 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
26 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
26 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 [on hold]

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
24 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
21 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; $...
-1
votes
0answers
17 views

Local clone of live site for upgrade process [on hold]

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

Having problems running evaluation demo on Windows 10 [on hold]

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
13 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 ...
0
votes
0answers
30 views

How to display message author info

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 [on hold]

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
27 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? [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
22 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 ...

15 30 50 per page