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