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

Regarding Modal dialog box

Hi,

For my website, I want to give users an option to save their selections before logging out. Once they click the logout button, I want to open a modal pop up which gives them 2 choices, Save or Cancel.

If they select Save, then their selections would be saved in the database.

How could I do so in drupal? If there are any examples online, please let me know.

Thanks

Composite unique feed fields

I am trying to import an xlsx import into my site. I already have the feed setup, but there isn't a way to build a composite unique field (like for example, if any value in column 1 and any value in column 2 together (but not separately) exist, don't import. Is there a way I can do this? I'm trying to avoid building a custom parser if I can use built in feeds to do it. 

drupalGet() returns 200 on gibberish URL on test

Hi to all,
I provided a patch for the webform module here (version 7.x-4.22, I am working with Drupal 7.69), and am trying to provide a test with it.

Html5 Attribute on custom field <input>

I'm developing a custom module with an image field.

Where can I set the following HTML attribute to my custom field?

<input type=file
       accept="image/*"
       capture=environment>

I have created the image field and i'm able to process some OCR with an external library uploading the image but I need to use webcam instead and I can't find the way to set the "capture=enviroment" tag to my input form in the field widget file.

Thank you

External QR Reading Class

Hi,

I'm devolping a Drupal 8 module for employee check-in / check-out time based on QR code reading / decode with an external php library.

I've installed khanamiryan/qrcode-detector-decoder with composer.

Now I need to call the QrReader class inside MyModuleFieldDecoderWidget.php but I got allways an error message like this:

Error: Class 'Drupal\FieldQrDecoder\Plugin\Field\FieldWidget\QrReader' not found.

I've tried with

use Khanamiryan;

and also

Changes in a link Entity Print

<a href="/print/pdf/block_content/6" class="print__link print__link--pdf">View PDF</a>

How to change "View PDF" in this link, which is generated by Module Entity Print, for my own words (I would like to write there another words)?

Pages

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