All Questions

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

How to display a result counter in the page menu link?

I have a navigation menu on my site, each menu link corresponds to a page of views. I want to display in front of each menu link, a badge with the number of results of the corresponding page views. ...
0
votes
0answers
10 views

How to load block content through ajax callback?

my_module.routing.yml my_module.content: path: '/my_module/path' defaults: _controller: '\Drupal\my_module\Controller\PageController::content' requirements: _permission: 'access content'...
0
votes
0answers
7 views

search api manipulates phrase

i have a site with search API and views. I configured and created my search. (The site is in hebrew), I noticed that when I search for a 4 letter word - lets say "ward"; I get results with the words :...
0
votes
0answers
23 views

How do I pass arguments from URL into panel page block?

I have created a view with a contextual filter set to a taxonomy term. I am attempting to use the view block in a panels (page manager) page and pass the taxonomy term from the URL into the block. I ...
0
votes
0answers
9 views

Add extra values to “next submission value”

Each time a webform is submitted it create a submission value i.e. 30 and when this is passed to the notification email it looks like: http://localhost/sitename/admin/structure/webform/manage/...
0
votes
0answers
14 views

How do I migrate the content of a book?

I have a Drupal 7 site I want to upgrade to Drupal 8. I take this occasion to rethink the structure and theming, but I would like to extract/copy/move/import the book content from the original site ...
0
votes
0answers
10 views

How do I give access permissions to custom text field plugin?

I want to give access permissions to custom text field handler in views to display the field based on the user permissions. This is my custom view field handler referred to: https://www.webomelette....
-2
votes
0answers
16 views

How to customize node view [closed]

I have this node view for my custom node. What I wanted to do is edit the files into button and the pictures into carousel. How can I manage that? Thank you
0
votes
1answer
11 views

How do I get the list of permissions?

I am trying to use the group method hasPermission(permission_label, user). I found an example that is the following: $group->hasPersmission('administer members', $user) I would like to know ...
0
votes
0answers
11 views

Are there migration plugins for D8 sources?

I found 2 references here for migrating D8 to D8, but both are very outdated. Certainly there will be a need to do D7 -> D9 or D8 -> D9 migrations for many, but there are also current use cases. One ...
1
vote
0answers
9 views

Entityqueue + inline entity creation?

Background / use case The entityqueue module is a great way to bridge content with configuration: The entity queue is created in config, and created automatically on deployment. It can then be ...
0
votes
1answer
18 views

RESTful Web Services : How to simply post a paragraph entity

I have simply activated the default paragraph ressource with core (8.8.3) module : I would like to post a paragraph but even just with the "type" field, I got 403 error in response ! I have nearly ...
0
votes
0answers
19 views

Troubles deploying on Heroku

I'm trying to deploy my drupal (8) application on heroku. I've already created the db with heroku jawsdb and set up the credentials on site/default/settings.php. $databases['default']['default'] = ...
0
votes
0answers
9 views

Vimeo embed code being ignored

Feeling frustrated. I run an number of websites, and have recently had need to embed video (mostly Vimeo but not exclusively) in one of them. I have another site where I have embedded the code ...
0
votes
0answers
24 views

webflo and behat issue preventing patch via composer

I am attempting to install a patch for the smtp module on a Drupal 8.8.4 vagrant dev instance. Trying to do so fails with the following error: Your requirements could not be resolved to an ...
0
votes
0answers
12 views

I want to add a pagination below the Twig rendered table updating the Twig rendered table and the pagination form next and previous button links

What I Have: I want to consume an external API, and show the results on the page. For this I have created a custom route attached to the controller with a custom Twig theme. On visiting this route, ...
1
vote
2answers
16 views

How do I give access to only specific roles to buy at my store?

I have a platform with roles for moderators, editors, teachers and students. Only student roles should be able to buy courses and the other roles should not be able to buy courses or see any of the ...
0
votes
0answers
9 views

How can we show up active filter values in exposed filters?

I have a requirement to show up selected filter values from views exposed filter. For ex: When I select OptionA from filter-1(select list) and OptionB from filter-2(select list), Results will get ...
0
votes
0answers
13 views

“EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format for date field”

I am working on creating a calendar events and hence created a custom module to save events on custom content type. I installed the Entity and the Date modules, and I created a date field (...
0
votes
0answers
21 views

Is there a way to use the core Media module with an existing image field?

I have a site with a lot of nodes already using an image type field where I'd like to switch to using a Media browser (for consistency with other areas of the site). It seems a media browser can only ...
-1
votes
2answers
35 views

Checking for the content type in html.html.twig

In the html.html.twig template, the task is to output different classes for the <body> tag, depending on the type of content. I know how to do this in the node template, but it doesn't work in ...
0
votes
0answers
13 views

Webform submission count by user

Our website offers live streaming videos for instructional purposes. We are asking users to submit a form after they watch the video, sort of as a "Check-in." After 10 "Check-ins," the user gets a ...
0
votes
0answers
30 views

How to refer to an entity with a start and end date?

my question is complicated :-( My site is a marketplace, that is to say that it brings together several stores belonging to several owners. I want to set up pop-up stores. These are temporary ...
0
votes
0answers
11 views

How to change the view for a rendered product?

I'm learning Drupal Commerce with a Commerce Kickstart installation. I understood in part the way products are displayed, with variation types and content types. Have made some changes like visible/...
0
votes
0answers
18 views

Admin toolbar CSS broken by theme

I'm facing issue with Admin toolbar. Every time I create theme and define default style guide for typography eg.: ... h2 { font-size: 3rem; } p { font-size: 1.2rem; } ... Admin toolbar's CSS is ...
-2
votes
0answers
17 views

How do we delete region from the site [closed]

Hi how do we remove a section/ region here. Can we do it dirrectly from the following dashboard
0
votes
0answers
26 views

Decoupled back-end and front-end

I'm looking for the best way to use Drupal as a front-end for a decoupled Drupal back-end. The set-up I'm looking to accomplish is: a Drupal 8/9 back-end as a central content repository 3 Drupal 8/9 ...
-1
votes
1answer
11 views

How to make a listing page of contents without using UI

I'm currently trying to make a Drupal 8 site that will show a list of actors with their image, description, and rating. I have already done so using the drupal UI itself but I want to achieve the same ...
-2
votes
0answers
43 views

How do I use a static function?

I'm trying to use \Drupal::isConfigSyncing() in the Drush 8 sitealias.inc file. The file is located in app/vendor/drush/drush/includes/sitealias.inc. When I try, I get the following error. PHP ...
-6
votes
1answer
31 views

How to get username of two different ids [closed]

I have created a block inside a module and in that, I just need to get usernames of two different Ids $account = \Drupal\user\Entity\User::load($id_1); $account_2 = \Drupal\user\Entity\User::load($...
0
votes
0answers
9 views

Automated Testing using CodeShip and Cypress

We are trying to figure out the best way to incorporate CI/CD with our End-to-End cypress tests for our Drupal project which contains a lot of custom code, but are finding it a little difficult given ...
0
votes
1answer
12 views

Get Webform Category Name in Preprocess

I am trying to get the Category name (from the General form settings) for webforms in a preprocess function, ultimately to add as a class to the webform wrapper. MYMODULE.module: function ...
0
votes
0answers
21 views

How to hide body field in a view only on certain content types

I have a search result view of different content types, and i want to show the body field (trimmed) on some content types, but show no body on other content types. Since they all share the same body ...
-1
votes
0answers
13 views

How do we make the demo page into the main page? [closed]

I have a demo page demo6 and i would like to make it the main page. website.com/demo6->website.com I amusing dupral and c panel
0
votes
0answers
11 views

Message (from message stack) not translated into the preferred language of the recipient

Here is a code which can be pasted into devel/php (run php code) if the message template new_user_register exists with a user reference field called field_user_reference This message should be sent ...
0
votes
0answers
11 views

Security review: Some files and directories in your install are writable by the server

I am running Drupal 8 on a vps running latest ispconfig/apache fastCGI. Security review module reports: "Some files and directories in your install are writable by the server." and basically lists ...
0
votes
1answer
13 views

Put link/button in email to reply to sender on website

I'm having a bit of trouble figuring out how this is meant to work. What I'm trying to achieve is as follows: 1) I've got Webform module installed and working. Just has generic fields for now. 2) ...
0
votes
0answers
17 views

Hide view's elements onfirst load, show them on filter click and reset it again by general data filter

Edit As my first question I made some mistakes, so I'm trying to keep it more clear and useful for other people. The scenario: I built a View showing nodes and contextual filters to have taxonomy ...
-2
votes
0answers
28 views

Updating 7 to 8, how to remove .less / scss files

I am updating a website from Drupal 7 to Drupal 8 and suddenly I see all these .less files influencing the style of the page. I found them in the theme's /srss directory (mytheme/srss/bootstrap/) ...
-2
votes
0answers
26 views

Toggle button to switch between roles

I am working on a site where there are 2 roles. creator Approver A person approved to Creator role will be seeing only that content. Similarly a person who is having approver role will only see ...
0
votes
0answers
19 views

Twig alter replacement patterns / rewrite results views field

I have some text I'd like to alter in the custom output of a views field. For example, if the output contains the word "pancakes" I'd like to replace it with "waffles". {{ field_recipe_prep__value ...
0
votes
1answer
34 views

is there any possible conflict for fields with the same machine name?

i am trying to debug a paragraph not displaying fields and i am having /admin/reports/fields a same machine name for a field in 3 different paragraphs field_call_to_action_ref paragraph ...
0
votes
1answer
25 views

“Drupal already installed” Message on Restored site

We had an issue on a Drupal 8.8.2 site, had to restore DB, Core and Vendor, now anyone visiting the site gets the site as normal, but if admin logs in I receive: Drupal 8.8.2 Drupal already installed ...
-2
votes
0answers
11 views

Using if else statement in Views “FILTER CRITERIA”

I added a field "isFirst" type Boolean to content type "Publication". I create a block that display just the latest one publication that its field (isFirst == true). I want that the block display the ...
0
votes
0answers
17 views

How to get block relationships in a Views content type? (3 references in a Views)

As part of a migration from drupal 7 to drupal 8, I currently have a rather original node display method that I'm trying to reproduce to Drupal 8, but without success. Currently on Drupal 7, this ...
0
votes
0answers
13 views

Group paragraph fields in Views

I've added the paragraphs field as a relationship and managed to add my fields to the view but I can't seem to group them together. As a result the node entity is being spit out twice. Is it possible ...
0
votes
0answers
16 views

How can I compile Bootstrap file locally?

I just installed Bootstrap 3 theme on a fresh Drupal 8.8.4 installation. For the moment the theme is using a CDN. But I want to use bootstrap core locally. So did this : I downloaded a bootstrap 4....
0
votes
0answers
18 views

Menu links won't appear

I generated 2 entities and addtyed a new Form with the overview of them. But when I try to add links, they won't appear. I follow the guide but wont work. Form and Entities work. The routings are ...
0
votes
1answer
54 views

Add Vue.js to theme best practices

I want to enhance some parts of the frontend UX of my Drupal theme with Vue JS. I made a Webpack setup to compile and build my SCSS and Javascript. What is the best way to add the Vue JS library to ...
0
votes
0answers
20 views

How I fetch the markup from a component to use in a controller response?

I'm using Components in our theme which is working well, but I'm having trouble finding documentation on how to retrieve and render a particular component as a controller response. I want to return ...

15 30 50 per page
1
2 3 4 5
1644