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

Views Preview with Fixed Value

This is driving me nuts. Any help greatly appreciated!

I have a view with a contextual filter of type Content datasource: ID

When the value is NOT in the URL, I provide the following fixed value: ?search=

It is a page display with a path of /search

A typical query string is "/search?search=venice"

I am trying to replicate this query string in the View Preview

The instructions in the View Preview are: "Separate contextual filter values with a "/". For example, 40/12/10."

How do I modify "?search=venice" to fit into "40/12/10"?

Contextual links for a custom block generated through code don't exist by default

Not sure if this is an issue or me being new to Drupal / creating a custom block through code and i'm just not doing it right, but i've made my first custom block through code and tried adding it to a layout and the contextual links didn't appear to configure / move / delete the block.

I've created 3 functions in my block class as per documentation that I found - blockForm for the different editable fields, blockSubmit for what configuration settings to save and build for what to render.

[11-Oct-2019 11:28:47 Europe/Rome] PHP Fatal error: Unsupported operand types in /home/lytsusaz/public_html/sites/all/modules/r

Dear drupal's expert,

few days ago the site was migrate to another host by my service provider. Today many menu's function doesn't work. For example when I click on  configuration in the menu the system reply http 500 error.

In the file public_html/error_log I see this error:

Drupal and Katalon

Hi Drupal Experts,

I'm creating some Katalon test scripts in Drupal but I'm not able to get the text from the selected value in a drop down object. I have checked in other web apps we have and it works.

I have opened a post in Katalon forum and the experts suggested some options that worked for them, but they didn't work for me.

Any suggestion?

This is my firs post here, sorry if this is not the correct place to ask this.

Thanks,

Ruben B

Drupal 8 - Custom Module Header template

Hello! 

I created a custom module and what that to have a custom header. So instead of taking in the standard custom header I want to display a different one. 

I followed the steps found here: 

https://www.drupal.org/forum/support/module-development-and-code-questions/2017-05-15/drupal-8-custom-module-template

and

Need help with password validation code.

Hi,

I'm working on an access form that eventually needs to redirect to another page on my Drupal site. I created a custom module and a form. I also made a config form for the password, which Drupal sees (as well as the cookie all the way below), but I'm having issues with...

1) Creating an error message for an incorrect password.

2) Redirecting the user to my node page once the password is successfully validated.

Thanks for any help.

Pages

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