All Questions

0
votes
0answers
2 views

Site wide settings versioned & staged

I'm developing a decoupled site and there's some site wide settings, such as logo, social links and others that appear in multiple places so we're looking to have a centralised location to store them ...
-2
votes
0answers
17 views

Selection, storing, caching of custom fonts

I would like you something about font paths and font caching in Drupal 8 (8.7.2). My aim is to use a custom font, without using the @font-your-face-module. Just for trying out, on my local ...
0
votes
1answer
12 views

Drupal 8 Quick Start site not reachable

I'm trying to launch a Quick Start distro on macOS with MAMP: [519] : php core/scripts/drupal -vvv --verbose quick-start Select an installation profile [Install with commonly used features pre-...
1
vote
1answer
8 views

Undefined index: und on .tpl.php for content type

How can i fix the error message? the error message is Notice: Undefined index: und in include() (line 9 of /var/www/html/sites/all/modules/custom/theme/icons.tpl.php). my code is: <?php ...
1
vote
0answers
26 views

How can I apply my own Form API #states to an existing webform?

I have the need to set visibility state of a checkbox option in one question (Table checkbox select) based on the value of another checkbox in the same table. I also have other scenarios where I would ...
1
vote
2answers
17 views

How to let non-admin Role Approve comments?

I'm looking for a way to allow a non-admin user Role to Approve comments. I thought a Flag/Rules combination might be a solution but I can't figure it out. I added a content-moderator role, then ...
0
votes
0answers
19 views

custom webform time and date elements id's

Using webform, I have two "Date/time" elements with popup date and timepickers enabled. I have a jQuery script to calculate and display detailed time difference between the values (date and time) ...
0
votes
0answers
14 views

How to set an array of hidden form fields using $form_state->setValues

I want to set hidden fields (permission by field) of a form in Drupal 8. The fields in the form have the names field_pbf_municipality[0]['target_id'] field_pbf_municipality[0]['grant_public'] ...
0
votes
1answer
9 views

how to get valid URL in combination of text and field content in VIEWS

Field HOSTNAME returns IP Adress. I have to overwrite the field output . Is there a way to modify this with an given URL like this: 'www.ip-tracker.org/locator/ip-lookup.php?ip=' and adding the field ...
0
votes
1answer
36 views

Create the FooTable functionality by using only views

I noticed by using FooTable display on one of my view on a Drupal 8 site, it is increasing the load time of the view by more than 2000 ms. The main idea i am using Footable is because of the ability ...
1
vote
1answer
10 views

How can I export Image Crop configuration with an Image Style for custom module?

I have a custom module I'm re-using on other projects and I want to include an image style with an image crop configuration. Under the configuration menu, I export a single crop item: langcode: en ...
0
votes
1answer
27 views

Why isn't my controller returning AccessResult::forbidden()?

I'm working on a node access module. I've set up my logic. I can't seem to get my code to return AccessResult::forbidden(). I can't even get \dpm to run in access method. What am I doing wrong? Below ...
1
vote
0answers
6 views

Use generated JWT from Keycloak to authenticate user in Drupal using REST API

We are working on developing a mobile app and users should be able to log in to the app and in our backend Drupal site authenticated from Keycloak. Our main goal is that the user would be able to ...
0
votes
0answers
7 views

Why do I get “Type does not correspond to an entity on this site” when POSTing to REST api behind an Apache Reverse proxy?

I have the REST api configured to allow POSTing new users to /entity/user. On my local machine, it works just fine. Once I push up to my remote host, it stops working. The key difference is that on ...
-2
votes
0answers
25 views

Equivalence of module elysa cron on drupal 8? [on hold]

I am a beginner in D8, I would like to know if there is an equivalence of module Elysia Cron that can manage cron on Drupal 8
0
votes
1answer
24 views

How do i use onHourShow callback in a date_popup control with the Form API [on hold]

On my form I have a date_popup control: $form['order-group']['delivery'] = array( '#title' => t('I Need The Equipment Ready By'), '#type' => 'date_popup', ...
0
votes
0answers
14 views

Open a modal form on user login submit

I have user login page, when user login in the site successfully, user should be redirected to the their edit profile page in modal. Following code do the redirection to the edit profile page, but i ...
0
votes
0answers
20 views

Modifying Page Title To Be Separate From Browser Title [duplicate]

I have a module that contains multiple forms, each form in its own file. I need to modify the page title such that it is different from the browser title for several of these pages. The name of the ...
0
votes
1answer
13 views

Mismatched entity and/or field definitions for comment field

I have been receiving this message ENTITY/FIELD DEFINITIONS Mismatched entity and/or field definitions The following changes were detected in the entity type and field definitions. Comment The ...
0
votes
0answers
10 views

how to update FieldStorageDefinition in a hook update?

This is a feeds module related issue. An entity update that started to cause errors on 8.7.x after the removal of automatic entity update. Originally an entity definition needed to be updated using ...
0
votes
0answers
14 views

viewsreference child view Sample Code

Is there any example code for creating a new paragraph object with a viewsreference field and setting a view on the viewsreference field with its "type" and other display options set? Can't really ...
0
votes
0answers
30 views

HTTP Client Manager $request->getStatusCode() == 200 return?

When I read this HTTP Client Manager docs on Drupal, I don't understand why it returns the $build when $request->getStatusCode() == 200, is that supposed to be not equal 200? I also copy and paste the ...
0
votes
1answer
25 views

Update fields to use a different FieldFormatter during an update hook

I have a drupal.org module that has changed its fieldformatter ID in a later version and I need the update hook to update all isntance of the content to use the new formatter, but cant seem to figure ...
-4
votes
0answers
29 views

Display future dates and end dates with a view [on hold]

I have a view of events. Currently, the events are showing start dates/ future dates. If an event has a start date AND end date, it will only show that start date of the event and the event will ...
1
vote
1answer
26 views

How can I read config schema from a config entity?

I need to read the schema definition from a config entity, which is located in config/schema. For example the schema from a node type defined in node.schema.yml: node.type.*: type: config_entity ...
0
votes
0answers
22 views

View escapes node's text field HTML

I've looked at other posts but been unable to resolve the issue. I have a Text field (formatted, long) in a content type, when the node is viewed the HTML in the field displays correctly, when I view ...
-2
votes
1answer
24 views

I want to make a Drupal 8 view with contextual filter

I want to make an intelligent view and want to pass contextual filter. If the contextual filter value is passed in the url so only display the article having the id like http://example.com/article/2. ...
0
votes
1answer
15 views

Generate automatic URL alias removing words

I'm trying to create a topic page for "internet of things", but each time I create the page I notice the URL slug removes the word "of" in it. By default Generate automatic URL alias is checked. The ...
0
votes
1answer
20 views

Page not found while create custom form

I am a newbie in Drupal 8. Today I have created a custom form in Drupal 8. Here is the folder structure and here is my routing.yml resume.form: path: '/resume/myform' defaults: ...
-1
votes
0answers
18 views

Select options shown in wrong order [on hold]

So I have a form element like this: $form['country'] = array( '#type' => 'select', '#options' => mymodule_country_select_list(), '#title' => t('Country'), '#required' => TRUE, '#...
1
vote
2answers
44 views

How can I print the vocabulary name instead of the referenced term in a node template?

Let's say I have a content type article with a field "taxonomy". The vocabulary is "fruits". The terms are "apple", "orange", "bananas" The article belongs to "orange". I can easily print in my ...
0
votes
1answer
15 views

How to customize entity print pdf

I've installed Entity Print in order to create PDF files. I've read the documentation to enable a twig template to customize the pdf output, but I don't know how to do simple things, in the twig file, ...
0
votes
0answers
17 views

Drupal 8 : Multiple Submit Handler

I am using Drupal 8.6 for creating custom module in Admin. I have a custom form where i have to use multiple submit button for form submission. I am not able to submit the my form to specific function....
0
votes
1answer
20 views

How to get taxonomy term values?

In my user entity, I have a term reference. In that vocabulary, I have a regular field. How can I fetch that field's value? I tried the below in devel/php to no avail. $user = Drupal\user\Entity\...
0
votes
1answer
34 views

How do I change drupal_core_path to /public instead of /web in Drupal VM?

I use Drupal VM to build my VM. I have to change the folder drupal_core_path: "{{ drupal_composer_install_dir }}/web" to drupal_core_path: "{{ drupal_composer_install_dir }}/public" But if I run ...
-2
votes
0answers
22 views

Taxonomy ul parent in view

Greeting, I am new to drupal, I am currently a web developer of a company and I have to address a project in drupal 7, reading tutorials and looking like crazy I found solutions for some things, but I ...
0
votes
0answers
11 views

View of XML feed: The exposed filter is case sensitive

I have a Drupal 8 view that uses XML as a data source. I have exposed filters set on the XML Text of the XML elements <first_name> and <last_name>. The exposed filters work, but they ...
0
votes
0answers
28 views

Imported Image Style Edit Form Error

I am getting an error accessing the edit form for imported image styles. *Tested on Drupal 8.6.13 and 8.7.3 Create image style in UI. Export image style. Delete image style in UI. Import image style....
0
votes
1answer
14 views

Skip words/vary word order in search for autocomplete suggestions

I'm using an Entity Reference field which searches taxonomy terms of type Person to suggest options for autocompletion. Let's say, i have the following terms (Persons): - Jason Jay Smith - John ...
1
vote
1answer
25 views

How to filter a node view on a paragraph field

I have a content type "Lunch" containing a paragraph type field named "Ingredients". This is a multiple values field which store a prapgraph type named "Ingedients" => Taxonomy term + Quantity LUNCH ...
-2
votes
0answers
22 views

jQuery vulnerability issue [on hold]

I am using jQquery version 2.2.4 in my drupal site but I got vulnerability issue with that jQuery version. I tried to upgrade with 3.1 but it break the site. I got 2 vulnerability issue with jQuery@...
0
votes
0answers
33 views

Passing variables between theme preprocess hooks

i'm a newbie to drupal 8 and php coding in general so i hope my approach is not too much out of the lines. I'm trying to theme some parts of my website by fiddling a bit with templates, what i need to ...
-3
votes
0answers
20 views

Need Regressions for bitly urls to exclude links [on hold]

I need help from this support group. I am using External Links module in my project. Here we have admin module link admin/config/user-interface/extlink, there is one option Exclude links matching ...
0
votes
0answers
9 views

Altering Shipping/Billing address inline entity form

Now that Drupal 8 Commerce moved to Inline Entity Form approach. I am having trouble of altering Address for fields for the checkout... In the past I could do this: function ...
0
votes
0answers
22 views

Database error in migrating from JSON

I had a migration that was working a few months ago on an 8.6 site before the JSON API module was part of core. Nothing has changed on the site I'm migrating to or from, but I'm now getting the ...
0
votes
0answers
19 views

InnoDB not locking a SELECT statement using db_query()

From Any way to select without causing locking in MySQL? I found a way to implement a select query in a InnoDB table without locking. The example code given there is the following. SET TRANSACTION ...
-3
votes
0answers
27 views

layout builder replace panel page?

it takes too much time to follow and learn what's going on with the new function. for this layout builder, I just want to know if its the replacement of the D7 panel page?  at the moment, I can see ...
0
votes
1answer
32 views

Responsive Image Module is only selecting fallback image style

I recently tried implementing drupal 8's Responsive Images Module. I studied about it's basics and implemented according to the guides available online. But when i try to use it on any image on the ...
0
votes
1answer
16 views

How to change order currency in cart/checkout page?

I want to change the price of the order in the cart/checkout page. Let's say I have a product ABC with $100(USD) and I added that in cart. But after adding I want to change the currency to EUR and ...
0
votes
0answers
8 views

Search result page with tabs and ajax pagination

I need to create a results search page with those characteristics: The page will have different tabs (like the bootstrap ones so no page reload), each tab will only shows the relative content type. ...

15 30 50 per page