Questions tagged [8]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

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

How can we add a filter to User Switch module?

I am using User Switch module for switching of users. But I have big list of users which will be listed down here /admin/people/switch-user-list. I need a filter in this page so that I can filter out ...
0
votes
1answer
9 views

Composer installation of drupal console missing functions

I've been attempting to install drupal console for the first time ever. I was looking for a means of creating boiler plate modules, blocks etc. My issue is when I have finished the installation ...
-2
votes
0answers
12 views

Update nodes with matching custom field

How can i update existing nodes from CSV with matching one custom field instead of the UID? I found this module: https://www.drupal.org/project/csv_importer But it seems it can only match the node ...
0
votes
0answers
14 views

Alter query to inner join subquery joining on two fields [on hold]

I know this question gets asked over and over again (I found multiple), and each time it's slightly different. Most answers I found are on Drupal 7 though and I can't figure out how to approach this. ...
0
votes
1answer
33 views

Building a non-config, programmatically-created, semi-dynamic, semi-manual menu

We have a custom entity called "Topic". With this entity, users can build topics and reference other content to "belong" to the topic. We also have a requirement where, whenever a user creates a topic,...
0
votes
0answers
30 views

When should hook_post_update hooks be used instead of hook_update_N? [on hold]

I cannot find a definitive guide as to why/when developers should use one or the other. I created a Drupal.org issue for this: Improve documentation for post update hooks and update hooks to clarify ...
1
vote
2answers
16 views

How do I create a grouped exposed filter on a block?

I have both a "Galery" content type and a "Galery category" taxonomy. The taxonomy only has two terms, 'Video' and 'Photo' (picture). When I create a Galery content type, I need to choose the galery ...
0
votes
1answer
31 views

Cookie sharing on multidomain site [on hold]

Can somebody please clarify, that cookie sharing in Drupal 8 is just possible for sub domains siblings of the same parent domain. Before this was discussed here: Multi-domain cookie - unfortunately ...
0
votes
0answers
9 views

Problem with OAuth2 refresh token

I have the following problem with the simple_oauth module. I can get the initial jwt token with a POST request to /oauth/token with the following form data: username: user password: password ...
0
votes
0answers
24 views

How To Get Item_id value in ProcessItem function

I developed a custom module which will process my items in queue. I have some custom table and custom action buttons to Process queue items. When i click on "Process Queue" button it will call the ...
2
votes
0answers
55 views

How is a response generated?

A generic basic PHP Application using Symfony uses code similar to the following one. $request = Request::createFromGlobals(); $context = new RequestContext(); $context->fromRequest($request); $...
0
votes
0answers
16 views

Menu options missing in node form

In Drupal 8, despite the fact that there is a menu set for the content type, menu options are not showing in the node form. I have disabled some menu modules in case they were interfering, but with ...
0
votes
1answer
11 views

Send data from webpage to another

I have 2 website the first is static Webpage and the second with Drupal I use module JSON:API to send data from Drupal to other website to show content. and it's working good for me, the problem the ...
0
votes
0answers
18 views

Exceptions not been caught in Custom Rest plugin

I have a custom rest plugin which accepts post requests: public function post($user_data) { // You must to implement the logic of your REST Resource here. // Use current user ...
-2
votes
0answers
15 views

How do we add additional formats to the default ones supplied by Restful Web services?

I am using the Restful Web Services module to provide a Rest Export for views. I want to output the view as JSON. However I am seeing that there are only two formats - JSON and XML. I want to output ...
0
votes
1answer
22 views

Export Broken Links records as CSV/XLS

In Drupal 8 I can see the list of broken links at Administration->Configuration->System->Broken Link. It is showing thousands of records with pagination. I'm using Broken Link Module. Is ...
2
votes
1answer
33 views

How to set the default format in text_format and hide the select?

/** * Implements hook_form_alter(). */ function MODULE_NAME_form_alter( &$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id ) { if ($form_id == 'node_article_form') { ...
0
votes
1answer
24 views

Redirect non-www to www [on hold]

I would like to redirect the url "example.com" to "www.example.com". This is usually easy enough if I go to my .htaccess file under <drupal-root>/web and uncomment these three lines: # To ...
0
votes
1answer
24 views

Weird apostrophe issue

Using Drupal version - 8.7.4. Added a 'Text (plain, long)' field for news summary to news content type. There is a news view that shows all recent news items with the summary. I created a new news ...
0
votes
1answer
39 views

What does the embed display type do?

I've been trying to find an answer but any search for views embed display brings up a bunch of unrelated modules and questions. There is a Views Display Type/Mode/Whatever called "Embed" that you ...
0
votes
0answers
18 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 name in drupal 8. In drupal 6 cck field name is field_node. Here my export config file. uuid: ...
0
votes
0answers
12 views

How can I track popular products? [on hold]

Is there any module for D8, which looks through orders and figures out the most popular products, like Commerce Popular Products for D7
0
votes
1answer
34 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
24 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 ...
0
votes
0answers
16 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 ...
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
9 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
59 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
30 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
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
34 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 ...
0
votes
0answers
30 views

The User Switch module doesn't all the users in its list

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 debug ...
0
votes
1answer
23 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:...
-1
votes
0answers
17 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
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
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
19 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
17 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
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

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

How do I setup Drupal Console on Docker? [closed]

I am running Drupal 8 on Docker. It's easy to setup Drupal Console on XAMPP or Acquia dev desktop, but I am not able to setup Drupal Console in a Docker container. Usually, I run this command in the ...
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
42 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 ...
0
votes
1answer
37 views
+50

Drupal 8 inline Entity Form Ajax Event (Add another item) Message

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 ...
1
vote
1answer
13 views

How to update a field on menu_link_content (added using menu_item_extras module) entity from node form

I have a checkbox field added to one of the menus using Menu Item Extras module. By default, the checkbox is checked and works as expected when I create a menu item via menu admin UI. however, when I ...
0
votes
1answer
8 views

Added menu link not showed in menu configuration

I have a very weird problem. If I add a new menu item, I can do it without any error in the menu configuration page, but the item isn't showed in the menu in this page neither in the menu. If I check ...
0
votes
1answer
22 views

Why does not the preview of the loaded image appear?

When I load an image into a Drupal 8 form, JS errors appear in the console and the file link is not displayed. I have a limit of 10 MB per file in Drupal. If I load an image of 1 MB or less, it works. ...