Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am new to Drupal & currently working on its version 8. I noticed that an additional <div> tag is appending with each ajax request due to which the JSON response becomes malformed. Because of this issue, all the ajax requests of my website are not working properly even if it has correct response.
Also, the tag appears after closing tag of HTML i.e. </html> of each page of website.
So here's the background of it all. I'm running a multi-site configuration on Windows 10 with IIS 10, MySQL and PHP. I was having issues getting from D8.5.3 to D8.6.1. I've never had any issues updating the core before, so this is stumping me.
After the issues started I rolled back to my original version (8.5.3) and started going incrementally version by version, thinking there was a DB update somewhere that did not take place.
I'm new to Drupal and do not have any experience with twig and very little experience with PHP. I'm a front end developer.
I created a content type called Events which has 2 entity reference to a taxonomy term. 1 of the taxonomy term is called Venue and it in has the address field. How do I pull the taxonomy's address field value into my node--events.html.twig template?
I searched online and was able to get the taxonomy term title and that's it: {{ content.field_venue[0]['#title'] }}
Recently I have been able to setup my site so users can upload media files to AWS S3, and it's currently using the default Drupal 8 file setup of organizing by month and year (sites/default/files/2018-09). Though I have configured my site so that they can only view their own content, it would be a nice touch if user files where uploaded to a unique user directory (/files/user1, /files/user2) instead of one collective directory.
Not sure if this is doable with a module or may need some custom code.
I am new to the drupal module development and trying to set up my first custom field type.
The user input for this field should be modified before stored in the database and therefore also be modified before retrieving.
I don't want to use the viewElements() method of the FieldFormatter as the field data should be used for other database queries (outside of drupal) and therefore the database entry should be modified.