2,799 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
31
views
Redirect to a specific page using htaccess on the status code 400
I want to redirect my site to a specific page (Ex: /example-page-400) if the status code received from the server is 400. Actually I am having a drupal site on which SSO login is enabled. In some ...
0
votes
0
answers
34
views
Page not found after refreshing in Drupal 8 (DKAN)
I have a DKAN platform, my frontend is ReactJs, and my backend is Drupal. I created 5 new pages on the frontend with the specific routes:
export const routes = {
HOME: BASE_ROUTE + "/",
...
0
votes
1
answer
52
views
Google Captcha is hidden upon calculating the shipping cost in Drupal Commerce checkout form
I have the following form
function beyond_shipping_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if ($form_id == 'commerce_checkout_flow_multistep_default') {
$...
0
votes
0
answers
42
views
Not saving total price for orders in drupal commerce
I tried to implement saving total price in orders but it`s returning an issue like before saving everything is good, but after it debug returning null
protected function createOrder($order_data) {
...
0
votes
1
answer
972
views
No route found for "GET http://localhost/drupals_new_test/web/"
Once I create a new database, and import all data from the old one, update my settings and restore the folders and files, I get this error:
No route found for "GET http://localhost/...
1
vote
1
answer
182
views
Parent menu link opens children when clicked, instead of going to link (Drupal)
I have created a Menu in Drupal and the structure look like this:
A parent link with children. In my website it looks like this:
Note that "products" takes you to /products. However, when ...
0
votes
1
answer
648
views
How to override page.html.twig in module for my custom page
I have a custom page defined in routing with it's ControllerBase class. I want to override the whole page.html.twig for this page.
If I use hook_theme and define there 'page__test' => [...] it ...
0
votes
1
answer
246
views
How to render a specific page using my template mypage.html.twig?
I want to render a specific page using my own template. My theme regulating html.html.twig and page.html.twig. I want to rebuild completely the page.html.twig but only on specific page.
In my module ...
0
votes
0
answers
31
views
error installing module HybridAuth and Drupal 8-10
i try to install HybridAuth module on Drupal 8 and 10 using composer on ddev but i had errors :
module : https://www.drupal.org/project/hybridauth
erreor:
ddev composer require 'drupal/hybridauth:^2....
0
votes
1
answer
88
views
Is there any way to show combined search result from an external api and also internal content from drupal 8
I have a Drupal 8 website which shows articles from an external API. also my basic page contents are coming from Drupal itself. I need to implement a search functionality so that search will return ...
0
votes
1
answer
849
views
How to get the image url to display it in my twig without and with node
I create a custom form then I retrieve the fields in a table then I return the table in a branch then I extract the contents of the branch in a variable which I put in a node.
and it does not show me ...
1
vote
2
answers
1k
views
Drupal 10 views: fields/custom text show translated label for field
I am building a bilingual site with Drupal 10 and I am using views to show content items listings. In my views I am using field: Custom text to format the teasers of each item the way I want.
I have ...
1
vote
1
answer
359
views
How to Display Translated Content by Language in Drupal Views?
Title: How to Display Translated Content by Language in Drupal Views?
I have a View in Drupal with multiple displays, each configured as follows:
Display 1: Articles
FILTER CRITERIA:
Content: ...
0
votes
0
answers
20
views
Hosting Migration Drupal 8 Link Faliure
I'm changing my hosting from a VPS server to the cloud
I've copied the files and database from the old site to the new one.
I have updated the data to access the database but there is a problem ...
on ...
0
votes
2
answers
631
views
Drupal Front Page "404 Page Not Found"
I have a website "https://www.example.com" which is suddenly showing 404 Page Not Found.
Header Footer is coming but in the body part its showing nothing but appearing a Page Not Found text.
...