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

Two (or more) ajax views and only one exposed form

Hello everybody.

I'm starting to program with Drupal 8 (a real rookie) and I need a bit of your experience.

I need to update two views with ajax on the same page (I do not want to update the entire page and I do not want the parameters in the url). Since the filtering criteria are dependent and peculiar, I do not see how to do it through exposed filters or any existing module.

How to set the custom message in views based on expose filter selection.

How do I set any message before page result? I have views block which has two expose filter and I wanted to set those expose value as a message i.e <h1> Search result for X & Y</h1>

As I am using black ajax filter and I am unable to accomplish my requirement. So far I have tried hook_views_post_view, hook_views_pre_view & theme_preprocess_views_view to set the message but doesn't work. 

Any come across with such requirement please suggest me any solution.

change == to OR statement (solved)

Hi,

I am not a coder but i need to change a smal line of code.

($node->field_status['und'][0]['tid'] == 2)

This basicaly says as far as i know if tid 2 i need it to say if tid = 2 OR 84

Hope any of the coders could help me out.

AJAX callback commands

I'm new to Drupal and i'm trying to learn how Ajax works in the context of Drupal. Currently i've been able to create a simple module, but have had no luck in successfully creating any Ajax functionality. is there a good tutorial series available/advice to help me understand how to use Ajax in Drupal?

top-level form from hook_field_attach_form

I'm doing some custom validation using hook_field_attach_form. When field_group module is active and configured for the form I want to make use of $form['#groups'] as defined for that form but this info is only available in the top-level form. The API docs state:

"Hook implementations that need to act on the top-level properties of the global form (like #submit, #validate...) can add a #process callback to the array received in the $form parameter, and act on the $complete_form parameter in the process callback."

Attaching External JS Files to Custom Block

I'm still quite new to Drupal 8 module development and this is my first time posting so forgive me if this isn't perfectly formatted.

I have several external libraries that I need to attach to a custom block using the Libraries API. I have consulted the documentation for libraries 3.x module developers and followed it to the very best of my knowledge, but I'm at a loss. I continually get an error from the library API claiming that it cannot find the library definition.

Pages

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