This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Custom fields, repeatable without using paragraphs?

Hi everyone, I was hoping you might have some ideas as we have been unable to find workable solutions.

In our new site migration project, we are attempting to build a content type that includes a compound field group (custom field) that is also repeatable. We are avoiding Paragraphs due to the performance issue related to nested paragraphs and translations.

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

Modify Relationship Fields in hook_views_post_execute

My account object has a EntityReference field list (for custom content-type Degrees) and I created a view to display this list of the degrees. The view is a User view with a relationship to the EntityReference field.

As I have it now, the view pulls in the X number of Degrees the current user is associated with, however, I need to modify the results to append some text to the matchedCareer field that exists on the Degree content type.

Default entity layout

I have a default Layout created for an entity - a content type in this case. This means every time a node of that type is created, it's created with the default layout applied. That's expected.

However, what I've noticed is that when node is created (saved for the first time, either through UI or programmatically) layout_builder__layout field is empty. In order to populate it, need to open the layout and save.

Drupal 9 - Uncaught ReferenceError: jQuery is not defined

I am trying to use an external Javascript library areYouSure in Drupal 9. I am getting the error "Uncaught ReferenceError: jQuery is not defined".

My php code for form looks as below.

Design video page

Any suggestions on how to play custom videos via color box or any light box having outlay feature?

In addtion need to display only the thumbnails of the video rather than the video player in the listing page. Once user clicks on the thumbnail it will play the video with an outlay.

Only for custom videos from local not youtube or any using video embed module

Please suggest

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions