How to delete Unused Images? [duplicate]

How to delete Unused Images? [duplicate]

I am using Drupal 7. When I test my page speed in Google PageSpeed Tools, it says to compress the images. After that I compress the image and uploaded it. The uploaded image placed in files folder like (test_0.png) and the old name is test.png. I have lot of images... read more
How to delete Unused Images? [duplicate]

List field: translated values are not translated

In my Drupal 8 project I have some list fields. For example maybe a field “project type” with the following key|values, coming from the original language German: 1 -> öffentliches Projekt 2 -> privates Projekt Which I translated in the field’s... read more
How to delete Unused Images? [duplicate]

How to set a session variable when a link is clicked?

I have created a search block. It outputs multiple results (names) as links. User can follow the link. How can I pass the user name into $_SESSION variable? I tried doing this, the result shows a page not found error. ‘name’ =>... read more
How to delete Unused Images? [duplicate]

How to fix "Unable to save a field collection item without a valid reference to a host entity" error?

I programmatically created a series of custom content entities which contain field collections. My site had an execution timeout error in the middle of entity creation and saving. I can not delete some of these entities. Any attempt is met with: The website... read more
How to delete Unused Images? [duplicate]

Override form.html.twig into module

i need to override a form.html.twig in my custom module. i used hook_theme_suggestions_alter in my .theme file to add new suggestions. function MY_THEME_theme_suggestions_alter(array &$suggestions, array $variables){ if (isset($variables[‘element’])... read more
How to delete Unused Images? [duplicate]

how to use tokens as “views filter criteria” for a custom table?

I created view for fields from a custom table using handlers. I need to create a filter so that only the users who created the data can see the data. how can I create the filter? read more
How to delete Unused Images? [duplicate]

Drush does not work invoking the local Drush

I have installed new D8 on a remote server using this way https://github.com/drupal-composer/drupal-project . I have pulled files from GitHub and I have run ‘composer install’ for getting the all vendor files include the local Drush (/vendor/drush/drush/)... read more
How to delete Unused Images? [duplicate]

entity_get_form_display setComponent throws "plugin does not exist" regardless of type

I’m trying to programmatically add a field to a custom bundle, and have it appear on the custom entity type. I’m using a BaseForm extended class, and have acquired an entityManager elsewhere using dependency injection. Below is the submitForm() code I... read more
How to delete Unused Images? [duplicate]

NotFoundHttpException after changing webiste hosting, sub-domain

After changing webiste hosting (Drupal 8) I got this very un-intuitive error message: The website encountered an unexpected error. Please try again later. SymfonyComponentHttpKernelExceptionNotFoundHttpException: in... read more
How to delete Unused Images? [duplicate]

Blog monthly archive block – list of posts grouped by year then month

See the implementation on this guy’s blog: http://deglos.com/blog YEAR — Month — Month YEAR — Month — Month Anyone know how this was accomplished? read more
How to delete Unused Images? [duplicate]

Custom Module Route run by External Cron Task

I created a Drupal 8 module that cURL to a SFTP, grab a xml file and write it on the files folder. This module as a route (with _access: ‘TRUE’), pointing to a controller that does the task. While I’m connected as admin, and go to that route URL, the... read more
How to delete Unused Images? [duplicate]

How to install a third party library for Printable module using composer (D8)?

I installed the “Printable” module but it doesn’t work. When I try to configure the PDF for the Printable module it says: “You are seeing no PDF generating tool because you have not installed any third party library using... read more
How to delete Unused Images? [duplicate]

How do I send user credentials and get the access token?

I am linking a Drupal site to an Android application. With the help of the Simple OAuth module, users will log in to my android app using their Drupal site credentials. I understand that once the client application has the access token, it can be included in the... read more
How to store data in multiple "field collection table" fields

How to store data in multiple "field collection table" fields

I’m having problem while storing data in multiple field collection table fields, Here I have tried following JSON format of drupal 7 services. “field_grp_travel_time”: {“und”:[ {“value”:”1.5″},... read more
How to delete Unused Images? [duplicate]

How to use form_set_error if no form field is involved in the error?

In a form_validate hook, I have some custom validation and I’m using form_set_error(‘field_foo’, “error_message”); to show validation errors. If the validation returns an error that is not linked to a particular form field, how do I show... read more
How to delete Unused Images? [duplicate]

Include Lead Forensics code in all pages

I’m trying to include the tracking code Lead Forensics gave me. The code is: <script type=”text/javascript” src=”http://www.path-trail.com/js/11111.js”></script> <noscript><img... read more
Show custom banner per page

Show custom banner per page

Admin user wants to be able to upload image banners and select on which pages/nodes/views/panels to show it when visited (as a wide screen image banner above title). It means when creating the banner node and uploading the image, there should be some field or list of... read more
How to delete Unused Images? [duplicate]

Is it possible to create a hierarchical exposed filter in views using the Data module?

I’m using Data module to adopt tables from the same DB as ‘native’ Drupal tables and Views module to present the data. I added two dropdown exposed filters with Selective filter module. It takes all values from fields and puts them to the selective... read more
How to delete Unused Images? [duplicate]

how to save checkboxes values in node programmatically

i want to save checkboxes values in entity reference checkboxes field with node_save : $form[‘wrapperrr’][‘id_offre’] = array( ‘#title’ => t(‘Liste des Offres’), ‘#type’ => ‘checkboxes’,... read more
How to delete Unused Images? [duplicate]

How to create a parent content type which consists of other child content types?

I want to create custom content type (parent) which consists of other custom content types (children). Is this feasible in Drupal 8? Or I should do it programmatically? Example: I want to have custom content type called Task, and another custom content type called... read more