All Questions

-4
votes
0answers
18 views

Creating multiple Leaflet maps with multiple markers (per map) with labels

EDIT: according to some people, the question is badly formulated, but I think I put it as clearly and verbosely as I could. Can anyone tell me how to improve the question? Many thanks. I'm writing a ...
-5
votes
1answer
39 views

Automatically redirect user depending on its device screen size?

In a custom module (amap), I have two forms with the same final purpose: handle (create, update, delete) a custom content entity (distribution_inscription). The first one (...
1
vote
2answers
28 views

How to get my custom module to recognized a exported view?

I have created a view and then exported it normally to a yml file. Then I put this yml file into my mycustommodule/config/install folder. So current its named mycustommodule.view.user_assigned.yml ...
0
votes
1answer
26 views

Not able to enable 'Configuration Translation' module gives error

I am trying to enable MULTILINGUAL -> Configuration Translation. It gives below error. Error: Call to a member function getPath() on null in Drupal\config_translation\ConfigNamesMapper->...
0
votes
1answer
13 views

Modal dialog doesn't work

I want to display ctools modal. I tried the following code. /** * Implements hook_menu(). */ function my_module_menu() { $items['my_module/%ctools_js/test-page'] = array( 'title' => 'Demo ...
0
votes
0answers
9 views

How do I migrate to latest major core version? [closed]

I want to migrate a Drupal 7.23 site Drupal 8.6. Anyone give me a suggestion on what the process is.
0
votes
2answers
29 views

Filter taxonomy term attached to user field

I have a user that has a taxonomy vocabulary attached their account and a content type with the same taxonomy vocabulary attached to it. How do I get a page view filter to only display the nodes that ...
-2
votes
0answers
22 views

Swiftype integration issues

I am trying to integrate Swifype into one of my local Drupal 8 site. https://swiftype.com/ https://www.drupal.org/project/swiftype It works while I am logged even though JS errors are being thrown ...
1
vote
1answer
9 views

Configuring Fail2ban for the r4032login module

Recently, I installed fail2ban on my server to help prevent bots from abusing the site. I have the r4032login module installed and it is writing to the log, but it is using HTTP status 302 for the ...
0
votes
2answers
113 views

How do I prevent anonymous sessions?

I'm working on a site hosted on Acquia and we're using Varnish and Akamai. We don't want anonymous sessions from being saved in the db, as it breaks the caching. I've made a few tweaks, and I'm ...
0
votes
0answers
17 views

simpler hierarchy method than using taxonomy? JSON or XML file?

In Drupal 8... I have a couple instances where I need taxonomies with hierarchy, to be able to search by. But the taxonomy sizes are Large. Generally, the standard Drupal Taxonomy is wonderful. But I, ...
0
votes
0answers
13 views

Taxonomy terms not localized in view with enabled aggregation

On a view on content, I added a field "All taxonomy terms" (Display all taxonomy terms associated with a node from specified vocabularies) and enabled aggregation, see screenshot of view attached. ...
1
vote
0answers
24 views

How to create a pair of dates (date_combo) using the Form API?

The Date module provide a field type called date_combo that allows a date feld to collect both a start date and an end date. It works as expected when I use the GUI to create a content type with a ...
0
votes
0answers
21 views

Doing a checkout via API?

I am trying to figure out if it is possible to do a checkout via API for Drupal commerce 2. In Drupal 7 there was a module Commerce Services Resources. I found some posts, but they don't answer my ...
0
votes
1answer
18 views

Drush not fully installed

I have installed Drush 8.2.3 globally on a Lubuntu 18.04 image. This was done without Composer (I used the default install instructions here) However, if I run drush topic and select any topic number ...
0
votes
0answers
8 views

pending friends not showing flag friends

I am using flag friends. everything is working fine, but when I use (pending friends) link or tab it shows no pending request. when I use (friend request) link or tab it shows all the friends who sent ...
0
votes
0answers
20 views

Send shipment tracking number to customer

Drupal commerce 2.x Seems all shipment tracking number modules are for drupal 7. How can I enter and send a tracking number to the customer when order is marked as fulfilled in the commerce ...
0
votes
0answers
19 views

Multisite configuration with multiple domains and subdomains

Im using CPanel and Drupal 7. In CPanel I have created 2 domains and pointed to my drupal installation. In the drupal sites folder I have added a folder for each domain and added the settings file. ...
0
votes
0answers
11 views

How do I fix the “statistics_get() is deprecated” problem? [closed]

I am currently working on Drupal 8.6.13. I get the statistics_get() is deprecated warning when working with the core statistics API. I am using the following code, basing on How can I show node Hits (...
0
votes
0answers
17 views

How to properly use a JS library that inserts content into existing DIV?

As with many JS libs i need an existing DIV for the lib to insert its content. I am trying to use the Chart.js library to inset a chart on a custom drupalgap page. I eventually discovered the menu ...
1
vote
1answer
79 views

Passing data from outer preprocess to inner template

I have two templates: - a child that is printing each item in a list; - and a parent that calls it there is also an intermediate Field template that is not involved. The parent has preprocess access ...
0
votes
0answers
10 views

efficient organziation of geographic state/region/content for entries

This is kind of a general question, but maybe someone has an idea. I have a database that will have 300,000+ entries. Each one of these entries will have multiple entries for 'location' - not ...
0
votes
1answer
33 views

JSON:API to Migrating Taxonomy References isn't mapping

OK, for a number of reasons I'm doing a Drupal 8 - Drupal 8 migration using the JSON:API module on the source site. I've run into an issue attaching taxonomy terms to nodes. Here's as far as I've ...
0
votes
0answers
36 views

How to get translated term name from TID in views field template?

For a complex view, I need to alter the output of a localized term field: instead of putting out the TID of the term, I would like to render the localized term name. Does someone know how to alter the ...
0
votes
1answer
13 views

Stale Pathauto Alias

I'm just curious how other Drupal developers handle nested path aliases when they are based on another page's url pattern. I have a product landing page (it's a "basic page" node). When it's created,...
0
votes
0answers
66 views

Error while running “drush entup” or “drush updb”

When running "drush entup" or "drush updb" on the remote server only I receive this strange error. On my local servers it works without issues. I tried now several remotes on different machines and ...
0
votes
0answers
22 views

Errors while updating core to latest version

I have a website I had worked on but never finished, last year. It is at version 8.5.4. I've imported it (from a devdesktop environment) into a Docker/Docksal environment. At this point I can see a ...
0
votes
1answer
16 views

Only display profile edit button on personal profile page

I'm using the profile module and am trying to display a profile edit button on your personal profile page. my profile.html.twig: <div class="m-section__content a-container"> {% if ...
0
votes
0answers
19 views

Private Message AJAX request is breaking theme by loading JavaScript code twice

I have a strange issue when using private message module together with the bootrap theme. I setup the block to select the conversation/thread on the left region. I noticed when I use this block ...
0
votes
0answers
21 views

How do I programmatically get the flag creation time?

I need to get the creation time for a flag on a node. I started with the following code, but I probably need to use getEntityFlaggings() passing the node and the flag ID. $flag_service = \Drupal::...
0
votes
1answer
28 views

How do I a custom entity operation with a webform submission?

My lack of D8 experience is going to show by just how many unknowns I have here. I hope someone can link some of the pieces for me. I created a custom action using hook_entity_operation_alter() on ...
0
votes
0answers
32 views

Content type fields list on the page.html.twig template

I have an HTML theme that I am converting to a theme in Drupal 8.7.0. I have created content type Hero content. Then I created fields inside: title body image (there are multiple images) offer(text) ...
0
votes
0answers
36 views

How can I avoid getting “This route can only be accessed by anonymous users”?

I'm trying to use REST login from a React native app. When the user tries to log in, the app calls: var data_node = {name:this.state.username,pass:this.state.password}; axios.post('http://IP/user/...
0
votes
0answers
29 views

Replacing a specific content creation with the newest version

I'm creating a website that tracks users weight. A user can create content to enter their weight and I have a view that displays all entries of a users weight however I want it so that if a user makes ...
0
votes
1answer
25 views

Editing CSS without module/plugin

I am working on a website developed by a previous developer so I am studying how I can edit the style without source code or any extension... is there any possibility to do it?
0
votes
0answers
8 views

use TableSort with multiple database tables?

I have a custom module where i want to show a table on a page. The rows of this table are the representation of a list of objects stored in database table A. Most of the columns show data from ...
-3
votes
0answers
33 views

How do I configure Memcache and clear memcache?

I am trying to configure the memcache for drupal 8 setup. I have read some of the blogs related it but not able to get in the correct way. Along with how the memcache is configured, i want to know ...
0
votes
1answer
17 views

Redirecting old file URLs (no pattern)

running Drupal 7.65. Our previous website manager moved us from Drupal 6 to Drupal 7 and cleaned up the file structure on our server. While all the files that are now on our website have clean and ...
0
votes
0answers
23 views

Connection timeout when using backup module

Currently running Drupal 7.65. Trying to update to 7.67 due to the security update. I've been trying to run the backup & migrate module to back-up my site, but even when doing partial back-ups (...
0
votes
2answers
25 views

Enabling a contributed module under certain path only

Is it possible to enable a certain custom module under specific path only e.g. /store, and not load under other sections of a website? I am using Drupal 7.
1
vote
2answers
50 views

Programmically add multiple empty fields on a multiple value field/form

In Drupal 7, When you set a field "Number of values" to unlimited, it will show you 1 field on the creation page with an add more button. How would one go about so it shows 5 empty fields on the ...
0
votes
1answer
27 views

'image_style' entity with ID 'media_library' already exists

Recently updated Drupal to 8.7.1 and I am seeing the following error when running database update: www-data@php.container:/var/www/html/web $ drush updb -y The following updates are pending: ...
0
votes
1answer
7 views

What is needed to keep parent menu element active while browsing subpages (Bartik Theme)

Let's say we have 2 sections with pages like this structure: /section1 * /section1/page1-1 ** /section1/page1-1/page1-1-1 ** /section1/page1-1/page1-1-2 ** /section1/page1-2 ** /section1/page1-3 ** /...
0
votes
1answer
26 views

How to get and apply current page query parameters from current AJAX request

I'm having a hard time figuring out how to do this. Essentially I have a table displaying users on a page. The table is paginated with the PagerExtender and sortable with the TableSortExtender. Each ...
-1
votes
0answers
13 views

webform Custom composite field copy values from first row to next rows when click on + button

Can we able to copy the values entered in first row to next rows when we click on +/Add button in Custom composite field in webform I need somthing like below .
0
votes
0answers
7 views

Export Text Format and CKEditor Profile with Features

First, this is not a duplicate of this, because I can't even get that far. The OP was able to put their CKEditor profiles into a Features module with all of the settings are stored in the Features ...
1
vote
2answers
69 views

How to call a function in a form from another form? [on hold]

I have 2 forms: distribution_inscription_table_form and distribution_inscription_for_user_form in the same custom module (amap). namespace Drupal\amap\Form; use Drupal\Core\Form\FormBase; use ...
2
votes
0answers
53 views

How to get my blog on Planet Drupal

Background I have started a tech blog which will regularly have Drupal articles. I've followed the Planet Drupal instructions specified on Drupal.org Created an RSS feed and validated it on W3C ...
0
votes
0answers
14 views

How do I use the DateFormatter? [duplicate]

I am trying to use the DateFormatter so I can convert my unix time-stamp into a usuable date stamp that will be set on a custom form. This is my code: $time = \Drupal::time()->...
0
votes
1answer
34 views

Are there specific cache tags which get reset on user login?

Scenario I'd like to invalidate a set of caches based on user id upon user login. I'd like to avoid creating new tags, and limit new code as much as possible. Presumably the way to do this is with ...

15 30 50 per page