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

Block View with contextual filter (CONTENT ID from URL) is not displayed in node preview

I have a slider that contains images from the node. For design reasons, this must be a separate block.

The context filter is "CONTENT ID from URL" and it works great. 

BUT the block does not appear in the preview of the node. Is this possible somehow?

PHPUnit code coverage hangs on functional tests

My tests run fine when not using --coverage-text, but they hang on the functional tests that extend BrowserTestBase indefinitely when using coverage.

Here's my config file:

get results from a query and then write an if statement

Hi,

I would like to check if my SQL query brings back any results but I am not sure if my query is correct with the variables at the end?!

Accessing protected variables/arrays via twig templates.

Hi all

I am working on a module that involves the need to access variables that are held in content.field_shirts[#paragraph].0.values where 'values' is protected and the 0 represents the instance of paragraphs in the content type. 

What I need to do is at the point of processing I need to create a series of nested divs that are inserted into a table using each paragraph in the content type and the values it contains.

My paragraph contains 5 values (2 pics and 3 select values called field_node_select field_page_select and field_side_select)

VideoJS player not displayed correctly when using Ajax to load

I am using a Drupal 7 / Commerce Kickstart site that has videos in the categories. I am using the VideoJS Player as my player. In the viewmode, I have set the Format of the video field to video.js. When the page with the videos is loaded, everything is shown properly and the player is displayed as he should be:

https://i.stack.imgur.com/DEkwC.png

The html class of the video element is set to class="vjs-tech".
This is the HTML that Drupal renders for a video: 

How to change views exposed filter value in the URL (parameter)

Szenario:

  • View with exposed filter
  • with Field A (textfield) and Field B (textfield)
  • No Ajax
  • Only Field A will be filled with text (test)

If i press the submit button, after reload this url is given:

www.example.com/exampleview?field_a=test&field_b=

What i want:

Pages

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