This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

search attachments of content and display file source of content

Hello, I have been using the search APi attachments module to index file attachment content to search. However when I search it just returns the matching summary content and/or file attachment content together. I would like to just know what files were matched. Is there a module for this or a way to configure the search module for this?

Is it possible to add external PHP libraries to drupal8 auto-discover mechanism without composer?

Is it possible to add external PHP libraries to drupal8 auto-discover mechanism without composer?

[SOLVED]Custom content entity type slow down website

Hello,

I created an content entity to save a lot of data. They are 2 bundles for individual or professional. Each of them are 1 custom field.

That's the context, now my problem is, on some page, for example list of user or module's page, when I have thousand entity in my custom entity, my website is very slow and fallout in timeout.

I discover this query :

Does have to write test cases MUST for all custom modules ?

I am making small small modules mainly to over ride or alter the functionalities like i am using Webform on submission of webform i need to trigger an email to some one so i create a small custom module with two files only.

1. mymodule.info.yml

2. mymodule.module

in mymodule.module i just write one function alter hook and my php code there.

Error while using Mpdf and pdf download

Hi,

I am trying to download content in pdf.

I have done composer require mpdf/mpdf

Then in my code I have used the following:

use \Mpdf\Mpdf;

$mpdf = new Mpdf();

$filename = 'file.pdf';

$mpdf->Output($filename, 'D');

But I am getting error Class 'Mpdf\Mpdf' not found in Drupal. Following some forums I have tried using 

$mpdf = new mPDF()

Embed Vue.js app in Drupal loading as a library.

I wanted to create a small app in Vue.js and display it in my Drupal site. The motivation to embed an app in the twig template is possibility to better integrate with other elements of the site (e.g. navigation bar, footer, etc.) making navigation through the app-embedded page seamless to the user.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions