All Questions

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

error unsaved elements after saving in webform builder

I am trying to build a webform and it works well to a certain point. Then as I am trying to add elements and rearrange the order of them and then save, I get a message that I have unsaved elements. ...
0
votes
0answers
13 views

Change order item title in cart

New to Drupal 8 and Drupal commerce. I would like to update the title of a order item before it's put in the cart to add some extra dynamic info for the user. I tried this but nothing changes. In ...
0
votes
0answers
11 views

Confused with Symlink for Drupal Composer Project

I think I understand symlinks but I cannot get it to work like I think it should. I am trying to get the site_root of my server to link to the /web directory. I am trying: ln -s /. /web ln -s ...
0
votes
1answer
7 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 ...
0
votes
0answers
13 views

Attachement pager probleme

I created a view with a block that displays articles of a content type. Then I added an attachment that picks 4 articles randomly to show on the left side. The problem is when I scroll down on block ...
-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
1answer
11 views

How to modify the D7 user login page html to remove the register and new password options for non-admins?

So, I'm maintaining a Drupal 7 site for which we recently switched the users over to SSO through a third-party OAuth provider. The implementation isn't fancy, but added a login link to what I assume ...
-2
votes
0answers
17 views

How do I automatically add a php code field at the end of a content type whenever new content is created [on hold]

I want to allow the users to add content but every time they create a new content page, I want to automatically add a field at the end. for example: when a user presses add content, this comes up: ...
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
0answers
18 views

Serialize entity reference field

I am trying to make a REST export of my content that has a entity reference field. I've tried using REST View module to get the serialize the entity reference. [{"title":"My contacts","contacts":[[],...
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
7 views

Paginated ajax form with non-sql data

Using Drupal 8 I created a form to load data from a webservice with ajax below the form. Now i'm trying to add pagination to result, but the paginator is not been loaded, i'm doing something wrong?. I'...
0
votes
0answers
22 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 ...
0
votes
0answers
22 views

How to change the #size property of a select list of a selective exposed views filter?

I have a view with an exposed filter that is selective. Below is part of the array with the properties of the field. I need to set the #size to 20 but the code I'm using does nothing. Should be ...
0
votes
0answers
16 views

How can I stop the webform submissions based on a Drupal node registration form settings fieldset?

I am using the event example of the webform module for Drupal 8. I configured on the node fields for the user to be allowed to make new submissions until yesterday. I accessed the node today, and it ...
-4
votes
0answers
19 views

can't search for company name using the Geolocation module [on hold]

When I tried to search for company name/organization from "Geolocation Google Maps API - CommonMap" using a view, they gave me the address of the company name/organization.
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
9 views

how to display same time in twig and in google calendar

I applied below code to display same time which is in drupal 8 cms in twig which displays exact same time. here is the time entered in drupal 8 cms: start time= 9:00 AM end time= 10:00 AM here is 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 ...
-2
votes
0answers
14 views

Backup and Restore Module Limitations

What are the limitations of the Backup and Restore module? Specifically, I'm curious of the largest database it can handle, the amount of time it can run before failing, etc.?
1
vote
2answers
29 views

After restoring, incorrect database credentials are used

I am trying to get a local drupal environment up and running using an sql dump from a production environment. I am attempting to follow instructions from drupal's documentation. So far, from our ...
0
votes
0answers
15 views

Is it possible to change the one-time log-in for the demo site? [on hold]

After installing the Drupal Commerce Demo site and running the "quickstart" script, a one-time login link is launched automatically. Once logged in, I cannot change the password, because the ...
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
37 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
13 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
16 views

Send Data from contact form to drupal [on hold]

i have a contact form in webpage lik this and i want to send data from this form to website drupal , the question this is possible or not ?
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: ...
-2
votes
0answers
12 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
15 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 ...
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
-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
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 ...
-2
votes
1answer
22 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
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 ...
-1
votes
0answers
13 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
18 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
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. "...

15 30 50 per page