All Questions

-1
votes
0answers
17 views

How can I debug variable output in preprocess_menu_local_action? [closed]

I found kint() is not available in some preprocess function like _menu_local_action. When I use kint() I get no output in such a preprocess function, but there is an output of array when using print. ...
0
votes
0answers
13 views

Requires Hard refresh of the page to get back broken Images?

When I upload images through media, the image thumbnails on the listing page only appears after hard refresh. Wherever Drupal image style is applied in any page, those page requires hard refresh to ...
0
votes
0answers
7 views

Broken video thumbnail with video embed media module and vimeo upload

I don't know exactly where i'm doing wrong. I have enabled Video Embed Media Module.I have created a media type with video embed type. I have created free basic account in 'vimeo.com' for testing ...
-1
votes
0answers
22 views

How can I build a custom views handler of the custom field type?

I contribute a module Taiwan Address Field with custom field type. I want to build a custom views handler filter with custom options on Drupal 8. How can I do that ? Is there any examples ? ...
-2
votes
0answers
16 views

Update resulted in Page Error's [closed]

After updating the 'Webform' module, the site now provides the following error message for various pages: "The website encountered an unexpected error. Please try again later.The website encountered ...
0
votes
0answers
12 views

Add metatag field to content type programmatically

I'm trying to create a metatag field (from the metatag module) to my content type programmatically. I know how to create a textfield to my content type (by using the node.module as example) but can't ...
1
vote
1answer
12 views

Navigation for book collections

I'm working in a projet where I have to show a collection of books. In this website I managed using the books navigation block, for one collection with many books, with css I managed to set a tree ...
0
votes
0answers
14 views

unexpected url redirect while submit contact_form

I configured the path prefix of my site language with '/en' and '/fr'. When I submit the contact form of path /fr/user/13/contact to send message to the user, the page redirect to /en/user/13. But I ...
0
votes
0answers
15 views

Multiple sites in same subfolder

I have multiple very similar drupal sites (each for a specific year of some project): 2012.somain.tld, 2013.domain.tld, etc. Their files are organized in subdirectories (2012, 2013, etc.) of ...
-2
votes
0answers
21 views

Data from database to form with different class [closed]

Can you please help me? I want to accept 5 rows from the database. I want to add this data from the database to the items on the forms. $db = DB(); $vyber = $db->query("SELECT * FROM hodnotenie ...
0
votes
0answers
14 views

Getting NotFoundException while deleting the fields in the content type

I have installed domain module and uninstalled it,since it was not required for me. Now I'm getting below error while deleting one field from one existing content type. Drupal\Component\Plugin\...
-2
votes
0answers
52 views

Can configuration synchronization be used between cloned sites?

I have SiteA.com installed using composer at /var/www/html/siteA and database as DB_A I have SiteB.com installed using composer at /var/www/html/siteB and and database as DB_B Now I ...
0
votes
1answer
18 views

How to append options and classes into a custom attribute in Twig?

In our twig template we have a need to wrap certain fields with a Link field. In the existing twig template there already exist an attributes variable (accessed by adding attributes), but we have a ...
0
votes
1answer
29 views

Altering Views Exposed Form Elements and their Associated Labels

I have a series of Views Exposed Forms across a Drupal 8 website. My goal is to generate unique template suggestions so I can theme each individual input and their labels differently as needed. Here ...
1
vote
1answer
22 views

How to create entity relation of counselor to client?

I'm trying to create a relation in D8 between a counselor and clients. The counselor would have to record counseling hours for each client. I've looked at the group module, even building the ...
0
votes
1answer
13 views

Theme preprocess for module's template variables using dynamic path

I am doing templating for a module that adds a block in the module's folder so that the template can be there, and it may be overridden in the theme if desired. I want the module to support different "...
0
votes
0answers
18 views

Field content not showing in public view

I didn't build the website, and I'm new to Drupal. I've been asked to add a new field to an existing content type. I've added the field, and it shows up on the form for that content type, but the ...
0
votes
2answers
27 views

How to insert fields into a link field in twig?

We have several fields on our Article content type, one of which is a Link field. In a twig template we would like to display a <section> such that all of it is clickable with different fields ...
0
votes
0answers
19 views

Paragraph field titles showing even when set to visually hidden

I am using the following code to render a paragraph entity in a twig template: {{ content.entity_name}} A second template renders the paragraph's fields correctly using: <h2>{{ content....
0
votes
0answers
26 views

This import is empty and if applied would delete all of your configurations

Customer bought a theme that has Commerce plugin installed with sample data. Anxious to get running and try out the new configuration system, I did what I do prior to Drupal 8.6. Commit everything but ...
0
votes
0answers
30 views

Export custom content type with fields

I want to export a newly created content type which has bunch of fields to a new application installation. Also I need to export few views etc... Exercise: I created a sandbox drupal 8 application. ...
0
votes
1answer
10 views

“Expand all menu links” Menu Block selection shows all menu items in block not just active trail items

I have a menu block that I have setup with Initial visibility level = 2 and Number of levels to display = Unlimited. When I check the "Expand all menu links" checkbox and view my menu block it is ...
0
votes
2answers
85 views

Print commerce pricing attributes to email receipt

Users cannot see what size or color shirt they purchased in the email receipt because tokens won't print the attribute fields provided by Commerce Product Attributes / Commerce Pricing Attributes / ...
0
votes
0answers
8 views

Data document format issue

I am trying to expose the node data in JSON format using view but having an issue to output the image_URL within the JSON data. If I change the output format to fields/Grid the image render and shows ...
1
vote
1answer
13 views

How to use language-specific menu items in URL aliases

I'm working on a site with internationalization from the source language, English, into a few other languages. Translating the pages has worked out fine; however, I'm running into trouble with URL ...
1
vote
1answer
19 views

Filter view list items by user property and item property

I have a view where I want to output a list of content node teasers. At the moment all content nodes are used, but I want to filter the output to only contain nodes that have a certain value in a ...
0
votes
0answers
37 views

migrating json data into entity node and entity reference revisions (paragraphs) using core and contributed migration module

I'm having issues now trying to migrate a local based json file. The goal is to create a node based on the data comming from the json file. For that I allready created a content type 'Produkt' with ...
0
votes
1answer
27 views

How to check for differences in config

Is there any way to check for differences with config in Drush? I checked the list of drush 8 config commands and I couldn't find anything. The reason I need this is that I have a site that runs ...
0
votes
1answer
27 views

How to upcast webform submission in custom routes resp. controller?

Using this route: confirm: path: '/node/{node}/submission/{webform_submission}/confirm' defaults: _controller: '\Drupal\mymodule\Controller\MymoduleController::confirm' _title: 'Confirm ...
0
votes
1answer
30 views

Embedding a view for search and redirection

I have set up a view for searching using Search API. In my specific setup, I need this search to be context sensitive, i.e. I have several pages /foo/search, /bar/search, ... and these return ...
-3
votes
0answers
40 views

How can I let users send private messages to each other? [closed]

I heard of Privatemsg, but it has no Drupal 8 version yet. Any other choice?
0
votes
0answers
38 views

Why are KernelEvents not triggered on cached pages? [duplicate]

Why Kernal events not triggering on cached pages.I have tried using priorities.. $events[KernelEvents::REQUEST][] = ['onRequest', 27]; Services.yml file tags: - { name: 'event_subscriber', ...
-2
votes
1answer
35 views

Rules Conditions to check changed Developer app field

I want to create a rule that takes an action whenever the overallStatus field of a Developer App is changed. But how do I do this since I think I cant use app-unchanged to compare the before and after ...
1
vote
1answer
28 views

Batch API to process millions of records

I need to run Batch API on a huge dataset. Specifically I have a custom table with a lot of rows which I need to iterate over. The batch process works fine using small numbers. When using the full set ...
-2
votes
0answers
20 views

onchange autosubmit autocomplete not working for safari

I created a custom autocomplete form in Drupal 7. Its working fine for chrome and firefox. but it's not working for safari and Mac. My code: function fitnessHomeSearch_form($form, &$form_state) { ...
1
vote
0answers
18 views

Add a default_value to name field in yml file for Drupal 8 migration

process: uid: EIN field_contractor_name: CONTACT name: CONTACT - plugin: default_value default_value: 'Full Name' I am using the migrate source CSV module. I have a few ...
0
votes
0answers
16 views

itok triggering modsecurity injection 942100

When identifying false positives with my Drupal 7 site running ModSecurity CRS 3.1, I noticed visitors were getting denied access to a page because that page loaded an image using itok?= which had 2 --...
0
votes
0answers
20 views

Pagination with entity

Don't know where to start and not sure if there is already some builtin functionality that can be used. I have an entity and items on the page are rendered with class ItemEntityListBuilder how can I ...
0
votes
0answers
8 views

How to make synonyms.txt and elevate.xml work in tandem in Acquia Solr Search?

I am using Drupal 7 with the Apache Solr module, combining it with Apache Solr Views module running in Acquia. This is a production site, and Apache Solr Search is running without issue. I am trying ...
1
vote
1answer
81 views
+100

When adding media to content, how can I search for the media by tag or term?

In Drupal 8, I created a new Media type "PDF Files." I have imported almost 30,000 of them, each complete with Title (Name), file, and the taxonomy that categorizes them. On the content type (Let's ...
0
votes
0answers
25 views

How do I create a “Filter By” option?

I'm trying to make a simple "Filter By..." option section for a View such that when someone wants to narrow results they can do so by clicking a checkbox or link and getting a shorter list, narrowed ...
0
votes
2answers
24 views

Set value of file field using entity_metadata_wrapper non working

I have a custom entity with a file field accepting multiple values. I would like to set file values according to https://www.drupal.org/docs/7/api/entity-api/entity-metadata-wrappers#example-value-set-...
0
votes
0answers
22 views

Multiple exposed form blocks with different fields

Scenario: View fields: name gender age especialty exposed form block (1) fields: name especialty exposed form block (2) fields: (This is also I want to have but as a separate block) name age ...
0
votes
1answer
22 views

How can I sum aggregate of expression

I have a problem that looks relatively simple. An activity entity has multiple invitation entities, the reference is from the invitation.activity_id => activity. Invitation has a completion_date (...
0
votes
0answers
10 views

Get path of advanced aggregator files

Is there an easy way to get the files? I would like to send the aggregated files over to a debugging service but the drupal_get_js() is not supported anymore. Any other way to fetch them?
0
votes
0answers
59 views

How to get rid of “The %field_name field needs to be uninstalled.”

I have a message in the /admin/reports/status page regarding some fields. FYI, those are custom fields that I have deleted Here is the message: The %field_name field needs to be uninstalled. To ...
1
vote
1answer
23 views

Add another button removes the default values from my fields on node form

I have a node form on which two fields are displaying. One is a list of radio buttons which is required field. I am getting a value from url using arg(3) and setting the default value of that field $...
0
votes
1answer
44 views

How do I export and import content types (including fields) between environments?

I've been trying to find a smart way of exporting content type and all its fields from one installation of Drupal to another. The core "Configuration synchronization" export only export the content ...
0
votes
0answers
35 views

How to upload a base64 encoded image using API

I am trying to submit enquiry form using api. I am able to post data through api by using the endpoint Endpoint: url/contact_message?_format=json Body: { "contact_form":[{"target_id":"...
0
votes
2answers
33 views

Which method is more efficient, database query or taxonomy term controller?

I tried to find a method to verify if the current taxonomy item page has a parent or children, now I get two but I don't know which one is better for the efficiency. approach I: use taxonomy item ...

15 30 50 per page