All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

Hide a list of blocks from Panelizer in-place editor (IPE)

I have a list of blocks that shouldn't be added via panelizer IPE popup under manage content. Is there any way to remove them from the list?
0
votes
0answers
17 views

Should I use queue processing and poormans cron at the same time?

So for a drupal 7 site, I am using Ultimate Cron module to manage cron jobs. I'm using crontab to set the schedule. I am also using poormans cron launched by the serial launcher. However, on the ...
1
vote
1answer
24 views

How to use term edit page instead of view page?

On the terms list page, each term is linked to the view page (i.e. term/[tid]). As I don't have any details in the view page, I would like to link it to edit page. (.i.e term/[tid]/edit). How to ...
0
votes
0answers
13 views

How set a custom redirect confirmation path to webform programmatically

i'm trying to set a custom URL to redirect when the process of webform submit is completed without use the confirmation settings of webform. I Actually try with this: $entity->setSettingOverride('...
-3
votes
0answers
15 views

Migrating image fields and files [closed]

I am trying to migrate Drupal 7 site to Drupal 8 so that I migrated all the content from 7 to 8, but image fields and files are not migrated into Database. Anyone help me to resolve this issue.
-4
votes
0answers
26 views

Need to send out an email to site admin in case of error

Requirement: Need to send out an email to site admin in case any error comes up in watchdog/recent log messages. This will help us in fixing site issues at the earliest. Query: How to achieve this in ...
-3
votes
0answers
16 views

Any help please about HTML5 canvas usage [closed]

I am trying to create a custom module that will allow users to edit a uploaded image using a HTML5 canvas and save it. How am I supposed to do that?
-1
votes
0answers
20 views

Exposed filter ajax calling other entire ajax? [closed]

I have used the below code from this URL. Run callback after Views exposed filter AJAX . (function($, Drupal, drupalSettings) { Drupal.behaviors.myModuleScript = { attach: function(context, ...
0
votes
1answer
47 views

Custom entity custom cache tags

I've created a custom entity and having trouble providing proper caching. When you create custom entity, by default it has only one cache tag entity_type:id. Problem is, I need to display same ...
0
votes
1answer
33 views

How to create an entity from a custom POST request (JSON:API or REST)?

I've figured out the basics of how to use a simple POST request to create a new Drupal 8 node. For example, using the JSON:API (https://www.drupal.org/docs/8/modules/jsonapi/creating-new-resources-...
0
votes
1answer
23 views

How can I filter entity titles in an autocomplete form and use the title as context for a View page?

I am trying to provide a form with a single autocomplete text field on the front page. The user can search for a title of the product (commerce_product), and when they submit, they're redirected to a ...
0
votes
0answers
10 views

Post-migration editing of inline images in body field

I have many nodes in which the body field has inline images (created in D7 with CKEditor/IMCE/etc.). To make things more complex, the images have a picture mapping for responsiveness via D7 ...
0
votes
1answer
19 views

Trying to filter a View based on a Paragraph entity reference

I want to filter a View by content type 'Article' and only content that is referenced to a specific node id 123. I have a Paragraph in Article content type. Inside the Paragraph is an entity reference ...
1
vote
0answers
25 views

What is a proper way of uninstalling field types provided by the module?

I have a field type named mymodule_field_type, and we are installing it with config/install/field.storage.node.mymodule.yml, which has the following content: langcode: en status: true ...
0
votes
1answer
17 views

Installing in a sub-folder of Angular

I have an Angular 2+ application running. I would like to install Drupal in a subfolder and have my Angular application to iframe the contents. Ideal Folder Structure: / - Angular /...
0
votes
1answer
21 views

How do I get the email of the one submitting contact form in the “reply to”?

Drupal 8 site. I'm using the core Contact module for basic "Contact Us" form. How can I get the email of the person submitting the form to be in the From field? And a follow-up: How do I get the ...
4
votes
1answer
61 views

How to deal with Bubbleable Metadata when there's no rendering context and no render array

Since Drupal 8.0.0-beta12 "all rendering must happen in a render context", as stated by this change record. This is to avoid bubbleable metadata lost. So far, so good. Let's say I'm implementing a ...
1
vote
1answer
25 views

Image uploads seem to be timing out

I hate asking a vague question like this but I'm really at loss as to my current problem. I'm setting up a new site and image uploads fail on my production site (both in custom and content type forms)....
-3
votes
2answers
27 views

Where can I set the default filter for webforms?

When I go to https://example.com/admin/structure/webform I would like to have the webform filtered by active ones. Where do I change that?
0
votes
3answers
33 views

Counting each filter near its label

I've created a view in order to override the default search page form and results, then I've exposed the content type in order to have the possibility to filter by that, all now is working How can I ...
-3
votes
2answers
36 views

Upload file to S3 directly instead of using temporary storage

I have one file uploading form in Drupal 8 where I am uploading 3 different assets and they might be around 2gb or more in size. I have the s3fs module enabled and configured properly, but (due to ...
0
votes
0answers
37 views

Drush 9.x fatal error when running drush status (or any other drush command) [duplicate]

I'm running Drupal 7.67 on a Debian machine with PHP 7.2 and MySQL 5.6. My drupal installation is working perfectly fine with no warnings to find under /admin/reports/status. I've installed Drush 9.x ...
0
votes
1answer
76 views

The site crash when add a server

I'm trying to use Search_api_solr and search-api. I install the required modules and run the solr server and create a core. But when I'm trying to add a server to my drupal 8 site, an error appears ...
-1
votes
1answer
54 views

Get array number of paragraph item in TWIG

I have a paragraph (Entity reference revisions) with multiple items. I would like to display the item list rendered. I only get the paragraph as element['#object'] (in a pseudo field). ...
0
votes
1answer
26 views

Display content from a remote URL

is there a way to show content from an external URL (e.g. from GitHub) in a page? I was using PHP code but because of security reasons I would prefer to use a module instead. $c = curl_init(); ...
0
votes
0answers
16 views

Display an element based on user country

I guess this isn't a webforms specific question, but it might have been solved here before. I want to display an element based on the country that a user is from (based on GeoIP or Cloudflare / ...
1
vote
2answers
59 views

Deployment using Composer replacing old style install but issues with legacy Drush

I took a Drupal project that was created awhile back via downloading a tar file and recreated it on a local via composer with drupal-project. The recommended files were committed to git (i.e. no ...
0
votes
0answers
18 views

Enabled Text Compression

We would like to enable text compression for our sight. We tried to look, but could not find any contrib modules that do this. We are already using advagg to compress the JS/CSS files. It does not ...
0
votes
0answers
16 views

Want to change an automatic background image selected by a theme

The Parallax theme 8.x-1.8 comes with a background image I am not able to change. What should I do?
0
votes
0answers
33 views

Force download string as text file

I'm trying to return the results of a db_query as a raw text file. The php solution uses header() to instruct browsers to download content. I've attempted using header() in an AJAX callback function, ...
1
vote
0answers
15 views

How to render translated node body in two languages?

I use entity_translation to translate node body field, so in a fully loaded node object body is an array of 2 languages ('en' and 'ru'). For specific node type I would like to render body in both ...
0
votes
0answers
11 views

Webform default views missing “In Code”

I was looking in the error logs, and I realized that users cannot view submissions of webforms. I then realized that the webform views webform_analysis, webform_results, and webform_submissions were ...
1
vote
1answer
23 views

Serialization: define a normalizer just for a specific use case

I try to create a custom API with custom endpoints where API users can receive entity data from our page. We want to have flat arrays for most of the fields and some additional custom data added so I ...
0
votes
0answers
18 views

Repointing a site a subdomain

I have created a new Drupal 8 site in a subdomain of an existing Drupal 6 site. The new site sits in public_html/dev - so the url for it is dev.mydomain.com. What is the best way to redirect ...
0
votes
1answer
19 views

Update enabled migration module [closed]

I enabled a migration module. Now I would like to make some changes inside the yml file. How can I update my migration? I use migration plus.
0
votes
0answers
8 views

Changing field value with date expiry using Business Rules

I'm trying to set up a simple reservation functionality and I wanted to use Business Rules to change the value of a field (available/booked) when the end date of another field passes "today". I tried ...
0
votes
1answer
34 views

Add Button to Node View

I want to add custom button on node page. I tried with hook_node_view but it didn't show up. like this: function mymodule_node_view(array &$build, EntityInterface $entity, ...
0
votes
0answers
17 views

How to modify webform's setting by webform node's field value?

I have a integer field in the Webform Node content type, I want to modify the webform's "Limit total" setting base on the value of integer field. So I created a custom module, use hook_form_alter to ...
-1
votes
0answers
9 views

Send webform to selected Entity in 'wizard page' based webform

I have a content type Member with field Email. This member is used as field in webform, where anyone can select a specific member using Entity autocomplete field when filling webform. How can I force ...
0
votes
0answers
35 views

Sort handler with relationship

I added 2 views fields to make available the witdh and height of images using the information provided by the file_entity module. This works and I can show the values. Now I want to make both fields ...
1
vote
2answers
71 views

WSOD while sending headers, probably Cache-related

I have a very strange problem with a fresh Drupal install: On some pages, I receive a WSOD with ERR_EMPTY_RESPONSE: It happens for instance when on admin/config/development/performance I click Clear ...
1
vote
1answer
30 views

How to disable htmlspecialchars in custom module form table?

I'm making a table form $form['table'] = [ '#type' => 'tableselect', '#header' => $header, '#options' => $this->getOutput(), '#empty' => t('No vehicles found'), ]; In ...
1
vote
1answer
24 views

Contact email flood limit is per whole system(application) or user/ip based?

I have a question with contact emails flood limit which is present in contact.settings.yml, the limit is going to for whole system(application-wide) or is it going to limit the number of emails per ...
-2
votes
0answers
24 views

Views Infinite Scroll won't work

I'm trying to add 'Views Infinite Scroll' module to my Drupal 8 website, but it won't work :( Configuration of my View: Yeah I've checked AJAX I've selected "Infinite Scroll" as pager and checked '...
0
votes
2answers
13 views

Exposed Form in Block Missing?

I'm trying to create a view based on a Solr search index that includes a search form in a block. The view seems to be working based on the preview I see when editing the view. I have set "Exposed form ...
0
votes
1answer
20 views

Create a modal popup

I want to show a modal popup in drupal 7. On searching the web I came to know that it can be done using the ctools module itself. Here is the code I tried: function codeexpertz_menu() { $items['...
-3
votes
0answers
27 views

How to Create Custom form with table filter?

I'm currently studying Drupal 8, and I already learned simple CRUD in Drupal 8. Now I want to learn how to add filters or search on Drupal tables programmatically. How can I do that? The code below is ...
0
votes
1answer
37 views

Route access checks for REST/JSONAPI requests

I'm currently trying to fully decouple an existing Drupal8 site. As much as I've read about JSONAPI and REST (both in core) there's one thing I'm still puzzled about. A custom route that calls a ...
0
votes
0answers
27 views

How to check “_custom_access” for whole website and not module/path?

example: path: '/example' defaults: _controller: '\Drupal\example\Controller\ExampleController::content' requirements: _custom_access: '\Drupal\example\Controller\ExampleController::...
-1
votes
1answer
33 views

Show a content type's subfield instead of the default title in Drupal 7 when using an Entity Reference field

I am editing a large Drupal 7 website. In a part of this site, decisions are shown. Each decision can contain related decisions. There is a custom content type decision, in which there is a field that ...

15 30 50 per page