All Questions

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

How to parse JSON feed from a d8 into another d8 site using Feeds Migrate Module

This is the JSON output from a view using REST export [ { "spotlight-title": "Spotlight 3", "spotlight-body": "<p>This is spotlight 3</p>" }, { "spotlight-title": "...
0
votes
0answers
6 views

Odd problems with Drupal 8.7.7 and drupal/jsonapi 2.4.0

I share a release branch with a team of developers and I am the only one having this problem locally (see below). $ git reset --hard origin/2019-Oct-R2 HEAD is now at 8e5cec59b1 WWW-1599 update spoke ...
0
votes
0answers
4 views

Content creation and manipulation with jsonapi not logged

The Database Logging module logs system events in the Drupal database. However, I can only see logs where the content was added or modified via the drupal user interface. How can I enable logging for ...
1
vote
1answer
13 views

Why do I get Template “@bartik/block” is not defined?

So I've created a small subtheme called bartik_graphql. It just overrides the 'Powered by Drupal' block. Besides it's bartik_graphql.info.yml file it has a templates directory containing one file ...
0
votes
0answers
16 views

View with Taxonomy Path

We have a taxonomy vocab called Phones that goes like this. Taxonomy: Phones -Nokia --3310 --Jitterbug --7.1 -Samsung --Galaxy S6 --Galaxy Edge --S7 -HTC -- one --S7 list goes on, but you get the ...
0
votes
0answers
28 views

Region with menu block disappears suddenly, re-appears after re-saving menu

We have a website with a menu in a block, that is placed into a region "Sidebar". My customer notified me that the whole region containing the menu keeps disappearing on the live site, on average once ...
0
votes
0answers
9 views

Add property to schema_article_author (schema_metatag)

I want to add the property honorificSuffix to the authors of an article. Since the author is not a group in terms of schema_metatag definitions, i cannot add the field, as shown via ...
-1
votes
0answers
32 views

How is twig generated? [on hold]

In Simple PHP to use twig we are using following logic as given here: http://zetcode.com/php/twig/ require __DIR__ . '/vendor/autoload.php'; use Twig\Environment; use Twig\Loader\FilesystemLoader; ...
0
votes
0answers
21 views

PHP Fatal error: Cannot redeclare twig_without() [on hold]

Getting the below error after I tried to install new modules to D8. [error] 32411#32411: *31 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot redeclare twig_without() (previously ...
0
votes
1answer
22 views

Form state cache breaks dependency injection [duplicate]

I have a class that extends FormBase and there are 6 services that are injected into the class via Dependency Injection (DI). My problem is when I submit the form it says to a class property that ...
0
votes
0answers
8 views

How to check empty tableselect

I have a Drupal Form with a tableselect than is loading with some information of authenticated data. So the tableselect could be empty. Using Drupal Form #States, I am looking for a way for checking ...
0
votes
0answers
29 views

Rebuild a site from a Git repo [duplicate]

We have a Standard Drupal site with lots of custom configurations ad custom modules. We would like to put this in a GitHub repository so that anyone can clone this repository and install the Drupal 8 ...
-1
votes
0answers
26 views

How can I create a membership site using drupal 8? [on hold]

Is there any module or alternate method available for creating a paid membership site using drupal 8 .we need to create 3 membership type please help me Thanks for any pieces of information.
-1
votes
0answers
18 views

How can we add a filter to /admin/people/switch-user-list? [on hold]

I am using the User Switch module for switching between users, but I have a big list of users listed on /admin/people/switch-user-list. I need a way to filter the user list by name or email. I didn't ...
0
votes
0answers
9 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
1answer
29 views

Change order item title in cart

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 the onCartEntityAdd function: $item = $...
0
votes
0answers
19 views

Confused with Symlink for Drupal Composer Project [on hold]

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
2answers
15 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
16 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
16 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 ...
1
vote
1answer
15 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
18 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
23 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
35 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
39 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 an issue on Drupal.org to try and get this solved in the documentation, but I'm trying to see if ...
1
vote
2answers
20 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
22 views
+100

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
9 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
33 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
20 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
58 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
18 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
20 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
16 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
23 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
25 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
15 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
30 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
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
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

15 30 50 per page