TransWikia.com
  1. All Categories
  2. Drupal Answers

Drupal Answers : Recent Questions and Answers (Page 18)

Find answers to your questions about Drupal Answers or help others by answering their Drupal Answers questions.

How to change filed type from integer to string

using D8. I have a field field_number just in one bundle (a node content type that I called law). Now I found that I need to change the field type;...

Asked on 10/26/2021

1 answer

How to sort the query results?

In my task I need to display the results based on "the newest first". I perform a query: $query = Drupal::database()->select('node_field_data', 'node');$query->innerJoin('node__field_ils_apps', 'app', 'app.entity_id = node.nid AND app.field_ils_apps_target_id =...

Asked on 10/26/2021 by badm

1 answer

Alter a path alias depending on a node property

I use the Pathauto module and I'm trying to get, for the same content type, two different path aliases depending on a Boolean field that content type has. I would...

Asked on 10/26/2021 by Fizzz69

1 answer

Webform variants as blocks

Drupal 8.9, Webforms 5.x I have a load of forms that are all basically the same, except for the confirmation URL (a download link, essentially) and some minor tweaks to...

Asked on 10/26/2021 by LordAro

2 answer

Views + Search API not properly sorting by Commerce Price (seems random)

I have a search index View of product variations. The commerce_price field is indexed and exposed as sort option. However, when sorting by the price it appears mostly in order...

Asked on 10/26/2021 by quantumized

1 answer

How do I redirect a domain but keep the URL structure?

I have example.com and example.co.uk. They both point to the same Drupal installation on my server, so both domains load the exact same site. I am now trying to redirect...

Asked on 10/26/2021 by Georgina Smith

1 answer

How do I translate the weekday in a date?

I created a view from a JSON file; the dates in that file follow the 2020-07-28 20:00 format. I do a rewrite of the date to <span>{{ value_1|date("l d/m/Y") }}</span>...

Asked on 10/26/2021 by David Brugmans

1 answer

Using swiftmailer, how to check if an email was sent successfully?

For example, when Drupal core contact forms fail to send an email for any reason, swiftmailer throws an exception and logs a message. However, I am trying to hook into...

Asked on 10/26/2021

0 answer

Change workbench moderation state with VBO does not work properly

I have two workbench moderation states draft and publihsed When I try to change the state of a node from draft to published using VBO's set moderation state action, It...

Asked on 10/26/2021

1 answer

Language variable doesn't work in Twig?

I have to put a several languages in a site. But I just discovered that the taxonomy terms without a language (because it's the same label for every language) gives...

Asked on 03/04/2021

1 answer

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP