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 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.
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?
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."
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.