I created a module and through the controller I download the nodes I need.
In the controller I also entered the code to display the movements on the web page.
The problem is that once the file is downLoaded, it does not show me the web page, which it does if I do not execute the downLoad code.
Is it possible to make the 2 things coexist?
I have a custom form with managed_file field for video upload in my custom drupal 8 module. Once video uploaded, it is accessible to everyone. I want to restrict video access to logged in users or specific user roles. I tried "Private Files Download Permission" module but it always says forbidden for everyone. I have setup private file system path and files are being uploaded on private directory but not accessible over browser. My custom form field code is:
I already have it working and when doing some tests I realized that it only sent the email with the invoice and the order confirmation to the email of the customer who made the purchase.
I would like to know if you can also send an email with the purchase confirmation to the business email.
In a views, I have only one content type, with a field_import. In _views_pre_render I have entered this code to calculate the sum
foreach ($ view-> result as & $ row) {
$ Total + = $ row -> _ entity-> get ('field_import') -> value;
}
I created a module for Drupal 7 in which I import my data through a CSV file, in a column 10 I put ids as reference values for a reference entity field as in the image below , what I need is when I upload my file I want the values to be filled automatically in the reference entity field named "field_theme"