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

AJAX + Webform + Button + Latest Drupal Update

Hi all,

First I will completely admit that I am on the AJAX learning curve. A few days ago I updated Drupal from 8.5.4 to 8.5.6. Prior to update I had a working solution. After update I also updated Webform to 8.x-5.0-rc17 to see if this would fix the issue. No luck.

Building a form and and page on the same page

Hello there, 

I have built a custom form that I am going to use to do some reporting/filtering. The form acts the same as the views exposed filters functionality. The problem I am trying to overcome, is rendering the form, and also the page content on the same page. 

The resulting outcome will print the necessary data to a table on the page, but only it the form has been submitted. Either way, I am having a difficult time trying to figure out how to render both the form, AND the table in the same page. 

I tried doing something like;

Custom form and caches

By means of a custom module I compile an order form. This module queries all nodes of a specific content type, reads out name, price etc. and provides an order form in a block.
Result: https://mettler-beef.ch/bestellung

Problem: If I change a product (node), the cache (probably) prevents the rebuilding of the form.

Desired solution: Upon saving a product, the cache for the custom form and, if necessary, for the custom block is to be invalidated.
How can I achieve this?

Drupal 8 File Field Target _Blank

As the subject says:  Simply, how in Drupal 8 do I get a file linked on a page to open in a new window/tab (target="_blank").  I don't see anything in the interface and can't find a module that seems to support this.  Back with my Drupal 6 sites, i could hack a file and add the attribute.  Can I modify a theme somehow to do this?  Can someone give me a quick tutorial?

Thanks much!

using drupal_static() in render

In the theming forum I've been trying to build an array of block attributes using theme_preprocess_page() which makes sense in that I need to know what blocks, how many and position are in a region of a given page. I've offloaded the logic to a support function and I have a lovely array in $variables['page']['highlighted']. Except they must be brought into theme_preprocess_block() and the two functions seem to be working in parallel. Only to meet up in the final render.

How get protected parameters in twig?

How get protected parameters in twig?

I have paragraph and inner two paragraphes.

Module paragraphs.

Depence of what inner paragraph i want correct my div classes and css.

I want check what's paragraphs inner.

How can i get protected parameters?

I triyd like this.

Can you help me?

http://prntscr.com/kf9bd2

{{ kint(content['field_our_plus']['0']['#paragraph'])['values'] }}

But after this i take NULL

Pages

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