Skip to content
Advertisement

Tag: drupal-8

How to hide/not display PDF title in the toolbar

Is there any way to access metadata of PDF file I embedded using pdfobject.js? I would like to replace/change its title because it’s not corresponding to its filename. example is the snip below. filename of that is ‘D1000SPN.pdf’ which is different from the title displaying. I tried to search but found none. However, since I can’t find a solution to

How to access to node fields in drupal 8

I’m having some issues, I’m loading some nodes and i want to get some values field, this is how is my field I’m loading my nodes like this: But i dont know how to get en fr and pt fields values Could you please help me? Regards Mario Answer You can load translation for each language then get corresponding field’s

Foreach image uploaded in a Node Content : get the url

I’m beginning with Drupal 8 and I want to get the url of the photos in the content I create to display them. The context is: a photograph upload pictures for a customer. This customer can see it on a page. To get this data in common I created a content for my shooting with an id. What i did

Error: Undefined class constant ‘MYSQL_ATTR_USE_BUFFERED_QUERY’

Currently I’m getting this kind of message and I don’t know how to fix it. The command php -m tells me that PDO and pdo_mysql are there. I’m using Drupal-8 with php7.1.20 on Ubuntu 18.04.1 LTS [Tue Sep 04 09:27:48.210064 2018] [php7:notice] [pid 2183] [client 10.56.99.1:53758] Error: Undefined class constant ‘MYSQL_ATTR_USE_BUFFERED_QUERY’ in /var/www/dev/web/core/lib/Drupal/Core/Database/Driver/mysql/Connection.php on line 134 #0 /var/www/dev/web/core/lib/Drupal/Core/Database/Database.php(376): DrupalCoreDatabaseDrivermysqlConnection::open(Array)n#1 /var/www/dev/web/core/lib/Drupal/Core/Database/Database.php(166):

Advertisement