I have a field in a content type called 'field_news_image' and in is an entry reference field type. I'm trying to find the appropriae token to use in the Metatag module for an og:image meta tag on the content type, but nothing I've tried seems to output a complete URL (absolute).
I have a folder 'user-pictures' inside the public files folder. On the website, there is a 'large' and a 'thumbnail' image style, where the large one is only accessible for authorized user, while the thumbnail is public. However, these images (all image styles and originals) are all accessible in the files folder. Note that these images are not sensible data, but still i was wondering if i can minimize the access.
I have created a API endpoint in drupal which validates the session and redirects to particluar page. I need to consume this API from another application. But my drupal app has MFA protected, which genertes an unique cookie for every session after successfull authentication.
So Everytime if I try to consume my API, got MFA login page as respone with http code 303 redirect. If generated unique Cookie is sent in header, I got the actual response.
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.