How to sort by a View with specfic nodes ids

I am having a rest view i need to sort that view run time by my node id's like i have node id's in a array. I want to sort view like (5,8,3) so node 5 will be on top then node 8 then node 3.

View is rest api view. kindly guide me

{% trans %} tag in Drupal 8

So I'm using a custom setup and would like to use the Twig I18n Extension on my site (with Twig 3.x)..... which works fine, apart from the fact that all the variables outputted in the "trans" function are not autoescaped. I've seen that this functionality, and the functionality to use the "raw" or "escape" filters etc on variables inside the trans tags is available within Drupal 8.

I was initially using the PhpMyAdmin Github extension here: https://github.com/phpmyadmin/twig-i18n-extension

Change taxonomy term to lower case

I have a taxonomy term at a content type, which I use to create a breadcrumb with the custom breadcrumss module. The term is uppercase and so the created breadcrumb is. How can I convert this to lower case?

Drupal doBuild() forgets theme callback

This is baffling to me and I hope someone can suggest pointers for how to find a solution. I have a complex from using Ajax that returns an error at the end, failing to process the user info.

call_user_func_array() expects parameter 1 to be a valid callback, function '_mytheme_process_element' not found or invalid function name in Drupal\Core\Form\FormBuilder->doBuildForm()

A Drupal platform for Flemish Brabant: accessible and user friendly for everyone

The website of Flemish Brabant needed an urgent update. The navigation and redaction demanded a thorough redesign. And in the back, a new and high-performance WCM was an absolute must. It seemed as if they had already realised that digitisation would be an absolute must in 2020. Their new platform enabled them to easily translate their products and services during this pandemic year.

Sectors: 
Government

Ajax multistep form skips second step

I have a three-step Drupal form that queries a public API and builds nodes based on user selection. I have pored over the Examples for multistepForm (which is not AJAX) and adapted mine to model after the AjaxAddMore example. But my second submit handler nominally gets called but not run.

The logic for form building is in buildForm() while the submit handlers are supposed to run the logic for the parameters of each buildForm(). For now, my validate function is empty.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x