Filter out View results programatically

I have to filter out some view results programmatically because the filter is more complicated than what the build-in filter can handle. Now in the template file I've created for this view, it must display 3 items regardless of if 3 view result rows exist, if a view result row doesn't exist it displays a placeholder. 

I've been able to filter out the rows by creating a temp array and setting $view->result to that, however, after resetting the array keys to be a normal order (0, 1, 2, ...) the template file is unable to access those... 

Here's what my custom filter does

How do I add contextual data for each field (such as provenance or copyright)?

In the form of a content type called "Item" we would like each field data to be accompanied by contextual data about a) provenance (i.e. similar to academic reference with a note and a URL to a resource) and b) copyright information (i.e. another note and URL). This is like qualifiers for each piece of data. We are thinking of two ways of doing it:

How to create a vertical submenu using the 'Responsive & Off-canvas menu' module

I have installed and enabled the 'Responsive and off-canvas menu' module. I've also set up the dependencies and everything's good. The menu is working. However, the child items in the menu slides in from right; instead I want the child items to expand vertically (below the parent item). 

I looked at the mmenu.js documentation and they have an option to disable the 'slidingSubmenu' option. It works with the normal HTML setup but it's not working with Drupal menu's. 

Any idea how to make it work with Drupal 8.x? I'm kind of lost. Please share your experience/suggestions.

Date field does not ‘clear’ in popup select

Hi, I am finding that when you have a multiple (unlimited) date field, you cannot remove, as offered by the button ‘clear’, in the popup.

Problem

When you have selected the unintented date, you are unable to clear the date in the popup ‘clear’.

Clear

Steps to reproduce

Create a date field with unlimited values

Then select one date that you want to empty, ‘clear’ does not remove the date in the popup.

Quiz kind of project but at the end Dynamic content will be displayed based on questions weight / marks

Hello i am looking for a requirement where i need to create a quiz with 4-5 questions. each question has its own weight / marks and at the end total marks / weight will be show along with dynamic content and images etc will be displayed please guide me modules

No Theme but plain HTML-view

I've newly installed drupal 8.9.6 (where there is no need to manually install composer as described here) and I'm now wondering why there is no Theme nor UI available...

What do I have to do, to get a nice, modern UI?

THX!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x