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.
Currently on drupal 8 geofield I can create a map of locations with custom icons: no problem. I can also create a map from a kml file. I cannot do both with the same map. Is there a way to derive more of the information contained in the kml file? If I have a kml file that has both polygons (in my case routes) and site locations (with balloons and icons) the only label for each balloon is the name of the node not the name assigned to the point in the kml file. I'm using google maps to display the map.
One of my content types includes a taxonomy which allows to choose between a bunch of predefined HTML segments stored in the taxonomy description fields.
Now I would like to access this description field content of the current node from my custom block, but I have no clue how to access the proper variables.
I've got a D8 module that depends on tempStore working for anonymous user sessons. I'm pretty sure that we had it working earlier in the year, but recent tests show that it's not working now. Has there been a change in D8 in the last few months (we've been keeping up with Drupal 8 updates) that would have affected the way D8 handles TempStore for anonymous users? Is there any way to restore tempStore working for anonymous user sessions?
I am trying do this. I have module with controller and form. I want render my form in specific place in twig template. Not only one template, but everywhere in my website. Earlier in Drupal 7 i easy do this with
But in Drupal 8 I have only empty form data. I try every manual here. But not working. For me is working only form in routes - so page defined in module.routing.yml show me form.
I am building a table view of a custom entity, and I am trying to build the view out so that the only results it displays are results that are potential duplicates (based on there being two or more rows of a specific field). I was originally using hook_query_alter() and adding a havingCondition() to it, but that doesn't work because in order to use HAVING you need to use GROUP BY which condenses all the results into one row. I want all of the rows to display, but only if there is another row with the same field value.
As an example, if these values are in the database;
I need to put a file upload form in a block in Drupal 8.7.10. Everything was working great with my form as a standalone page but when I use the formBuilder to create a block for it, the form's submit handler stops receiving any files.
I've narrowed it down to the fact that Drupal is not adding the enctype attribute to the correct element. It's adding it to the container div within the block, not the form element. While testing this, I've found that all $form['#attributes'] go to that div instead of the form.