All Questions

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

is it possible to set a twig in routing.yml?

I am working with Opigno, which may be helpful to know. My end goal is to have my own twig file for the page that shows this information from the module. Here's the routing.yml entry: # Module ...
-1
votes
0answers
15 views

Calculate number of days between two date fields in Webform

I am using Drupal 8.7.6 + Webforms 8.x-5.4 I have two date fields in a webform and would like to calculate the number of days between them using Computed twig Please help
-2
votes
0answers
50 views

How do I migrate a CCK node reference?

I try to migrate cck field node reference drupal 6 to drupal 8. After migrate I don't see cck field_node in drupal 8. Here my node config cck node field_node: - plugin: iterator source: ...
-2
votes
0answers
14 views

Add an Image via a Media Migration inside a paragraph

I already create a file and a media migration to import images. I also created a migration to import text inside a paragraph. The migration works fine. Now I would like to import images inside a ...
0
votes
0answers
16 views

How to use oauth2 authorization in feeds importer?

I did it the postman like the following steps In the authorization tab, I selected OAuth 2.0 as Type. Then clicked on get new access token. I selected grant type as Client Credentials. Added access ...
-1
votes
0answers
13 views

How do I use nodeaccess?

How do I use NodeAccess? I have installed and enabled it, but I otherwise don't see any options besides the Grant node permissions on the Permissions page. Where are the actual access permission ...
0
votes
1answer
36 views

Setup many to many relationship - custom content entity

I'm currently setting up a site and using 2 custom content entities (generated with Drupal Console) : A tenant, with some custom fields A Building, with some custom fields Theses two entities need ...
0
votes
1answer
28 views

How to render a node with absolute URL to use in a mail?

I have to send node content by mail using an API. I manage to load and render the content to use it with my API class, and to send it. But when Drupal render the node, all URLs and image SRC are ...
-2
votes
1answer
23 views

How to remove watermark “For development purposes only” from Geomap using google API?

I have and issue that needs a solution. I am using Drupal 7 with the Geomap field module to view contents based on GPS coordinates Long/Lat. I can see the map with the location as expected, but the ...
0
votes
0answers
18 views

Migrating into a taxonomy and mapping terms based on their IDs

I'm working on a migration from a CSV into a Drupal 8 site, creating School nodes that include an entity reference field for a Sport taxonomy. The new taxonomy terms I want to use all exist within ...
-1
votes
0answers
14 views

one view with multiple search filters in a different view?

I have a problem what i want to achieve is that i have one view for my main page and there's a different filters from different views. Example:I have filters in my main view "Search for name" "drop ...
0
votes
1answer
16 views

CSS and JS 404 On Admin Site Only - New Install

This is a new server build... me@server:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic Apache... me@...
0
votes
0answers
19 views

Default CSS classes for custom block

I've defined a custom block (Drupal 8) and I'm able to specify defaults for block label and my other custom fields but can't figure out how to hook into the 'CSS class(es)' field for defaults that ...
0
votes
0answers
10 views

Current page title token doesn't change when going to multiple pages

I have a block where I want to include a token of the current page Title. But it's either caching or locking up after the first page. In a sidebar there's a block where I've tried two things: 1. "...
0
votes
1answer
66 views

Redirect to referring page after form submission

Trying to figure out how to redirect a user back to referring page after they have completed our feedback form. So a scenario would be if im on page foo/bar and I click on feedback webform link on ...
0
votes
1answer
33 views

How do I pass multiple block configurations to a behavior?

I am trying to create a Drupal 8 module that implements a Curator IO widget, so I created a block plugin with its own custom configuration. public function blockForm($form, FormStateInterface $...
0
votes
0answers
16 views

Back Up Migrate hangs and never completes

I am running into an issue where running drush bam-backup is never completing. It ran for about 18 hours and nothing happened.. The command works and completed on our staging server within about 45 ...
0
votes
1answer
22 views

Forward authenticated user to user.page on /login uri

If an authenticated user navigates to /login on a Drupal 8 site, she gets the "access denied" error. I want the site to redirect that user to /user (route user.page) instead. Unfortunately my ...
-2
votes
0answers
36 views

how to remove broken link tag in Drupal 8

How to remove broken link tag. these links are generated by Drupal for Administrator. I am not sure, how to remove/disable these on non-Authenticated user.
0
votes
0answers
20 views

drush cex re-creates files in config/sync while they already exist in module config folder

Having a config split which says that the location/configuration of the split/module is located under /sites/all/modules/custom/module/config/optional After it got imported with drush csim our_split ...
1
vote
1answer
21 views

View block with contextual filter on taxonomy term name in URL doesn't work

Say, I have taxonomy vocabulary 'fruit' with terms like 'apple', 'pear' and 'grape'. Through content type 'Healthy', 'Healthy' content is made using a entity reference field to choose a term from the ...
0
votes
0answers
42 views

The User Switch module doesn't list all the users [on hold]

I have installed the User Switch module to automatically switch between user accounts. It doesn't show all the user accounts registered on the site. I don't find any configuration too. I just ...
0
votes
1answer
25 views

How can I have profile edit pages displayed in admin theme?

Drupal 8- How to use admin theme for user profile edit page while editing the profile by an administrator. Example: when admin takes the URL: www.mysite/profile/{id}/edit (This is the URL you get ...
0
votes
0answers
11 views

Submitting a form programatically from a unit test

I have a form in the UI which I would like to submit from my unit test programmatically (i.e. not with a UiHelperTrait method) from the test. The drupalPostForm solution would be quite straightforward:...
-2
votes
0answers
29 views

How to Upload Drupal 8 custom module to drupal community /drupal.org [closed]

I make Drupal 8 custom module now i want to upload to Drupal.org .I need some help that how i upload to Drupal.org. Any related article or tutorials for uploading module please share with us.
-2
votes
0answers
25 views

How can I reverse engineer this download process? [closed]

There is a website where when we click on download and then automatically get redirected to another website and files download from there. How does this process work?
-1
votes
0answers
18 views

Scan a directory and get all file names of available images [closed]

There is an app that will upload images to my webserver under sites/files/uploaded_images. I am trying on Cron Run to: Scan this Directory. Check if the directory is not empty. Loop through all ...
0
votes
0answers
38 views

After PHP update Warning: “continue” targeting switch is equivalent to “break” [closed]

Once logged into the site I see the message Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in include_once() (line 3491 of D:\Projects\Registration\...
0
votes
1answer
11 views

View linked to the 'main navigation', menu disapears when I click on the menu tab, but I see the page

I'm new with Drupal. I'm using Drupal 8. I've create a View, I've create a Page and linked the page to the 'Main navigation'. In the 'main navigation' I see the new create menu tab. When I click on ...
0
votes
1answer
14 views

What is “Sticky to top of lists” value?

I'm creating a view, and I've pulled in the sticky to top of lists field, as well as a view conditional field. I want to determine if "sticky" is true, and set a value (so I can add it to a custom ...
1
vote
1answer
16 views

Exporting a View CSV during Cron

I'm working on a drupal 7 site and my client would like to have a certain view export as a CSV once a day into a folder. My initial thought was to tie this functionality to our cron schedule, but I'm ...
0
votes
2answers
16 views

How do I print out a embed video?

I have a paragraph which can either contain an image or a video. When I let the output just come out in {{item.content}} the actual youtube iframe is output. However when I start parsing things to ...
-1
votes
0answers
6 views

Code to ajaxify menu links not working

For my website, I have tried to add ajax so that the content of my menu is loaded without the page being refreshed. However, instead of loading the content of my menu link, the code is reloading ...
0
votes
1answer
20 views

How do I change the description of a view?

I have some existing views for which I have written a developer guide description. Now I duplicated the views for some other task, Duplication is successful but I didn't find any possibilities to ...
-1
votes
0answers
36 views

How to correct “Mismatched entity and/or field definitions”? [duplicate]

Hi with the latest version of Drupal 8.7 it is no longer possible to use the command drush entup. How to correct the "Mismatched entity and/or field definitions" error that was created by the "Message"...
0
votes
0answers
18 views

Showing a View of a Paragraphs block in a node with contexual/relationship filters

I have a slightly complicated question. So i'm experimenting with nested paragraphs where the parent paragraph is a container for another paragraph. In this case, i'm making an Agenda/Event program ...
0
votes
0answers
23 views

Pass rendered markup to redirect route

Drupal 8.7.x I have form that passes the outputted data into a template. This template with the data gets rendered into a string like so: : public function submitForm(array &$form, ...
0
votes
0answers
26 views

Installing modules using UI vs Drush

I've been having quite a time trying to install Drupal Commerce using the UI on my Drupal 8 project. Lots of WSoD errors. I decided to try again installing using Drush and everything worked like a ...
0
votes
1answer
19 views

Migrate Geo lolcation drupal 7 field to a drupal 8 manually

I have gone through the /upgrade gui part on my website. However the geo location fields have not copied across. Am I correct in thinking that instead of manually entering the data again, I could: ...
0
votes
0answers
7 views

New Relic shows the token hook being called a lot

I've just installed NewRelic on a Drupal 7 website, and I'm now going through the most obvious issues that jump out at me. Looking at the Drupal specific menu items, I notice the "Token" module ...
0
votes
0answers
14 views

How to combine two operators in search api full text search?

I have a search api view. I have an exposed filter for full text search. In the filter settings, I am using search keys and in Query settings I have selected multiple terms. I used this settings ...
0
votes
0answers
8 views

New Products using Price Tables unavailable on display pages

Recently one of my sites started displaying odd behavior. One product type uses Commerce Price Tables to offer quantity price breaks. Lately new products of this type have been displaying as ...
0
votes
1answer
27 views

Share nodes to Slack

i want to share link of post in social media i find module addtoAny and module social media for sharing poste butI didn't find to share post to slack. Any help?
0
votes
1answer
24 views

How to pass rendered form results to page

Drupal 8.7.x I have a custom form that currently replaces the form with the output of the form like so: CalculationForm.php public function submitForm(array &$form, FormStateInterface $...
0
votes
1answer
23 views

Using entity_lookup inside an entity_generate migration process plugins

I'm trying to use an entity_lookup process plugin inside an entity_generate process plugin. The YML looks like this field_validation: plugin: entity_generate access_check: false ...
2
votes
2answers
43 views

How can I add an age validator page?

To access the site, all users (except the logged-in users) need to pass through an age gate. They can only leave the welcome page if they are 18 years or older. I started by adding a session to my ...
0
votes
1answer
25 views

Moving “vendor/” in a different location and symlinking it breaks drush

I'd like to have vendor/ moved out of the Drupal 8 root and symlink it. Composer doesn't have any problem with that (all commands work) but when I issue any drush command, even drush --version, it ...
0
votes
0answers
36 views

Drush fails on D8 sites but works on D7 sites - PHP Version Issue?

We have a CentOS Linux 7 server with Plesk running several Drupal 7 and a few Drupal 8 sites. Drush commands work fine on all D7 sites, but on all D8 sites any Drush command returns: PHP Parse ...
0
votes
0answers
44 views

Detect when a new image is uploaded to my server

I have created a custom app that will allow logged in users to upload an image which will be automatically uploaded to my web server through SFTP method. Is there a module or even programmatically ...
1
vote
2answers
87 views

How can I display a message when “add another item” on an Inline Entity Form Multiple field is clicked?

In Drupal 8 inline entity form is there a "form_alter" or "submit handler" or some type of ajax callback for when a user clicks "add another item"? What I would like to do is display a message to the ...

15 30 50 per page