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

Developing Flip PDF module problm

Hello,

I'm developing a small 3DFlip PDF module. You could see running here:

https://sofiaprint.com/flipping-pdf-s

The problem is that the module stop working if JS aggregation is checked. Does anyone has any idea for the reason?

If yoy are interested you could download the module here:

https://dox.abv.bg/download?id=a71fbb8d2b#

I'll be very tnaksfull for any ideas.

Best regards,

Skip a step in simple multistep module prorammaticlly

I am trying to skip a step in multistep node form using Simple Multistep module. I have tried following snippet that works pretty good to skip one step.

$skipStep = $form_state->get('multistep_controller');
$skipStep->increaseStep();
$form_state->setRebuild();

However, it has a problem click on form back button it doesn't come back, even not to the skipped step. By the way, need to skip the skipped step on back button.

Calling Stored Procedures on External Database in Drupal 8

There are some posts on how to call stored procedures in Drupal 7 but nothing I can find for Drupal 8.

I can connect to my external database and run queries on it, no problem.

I was expecting this to work:

$query = $db->query('Call monthlyTableData("' . $year . '","' . $month . '", ' . $aws . ')');

$result = $query->fetchAll();

But it does not, I get this error

Why is my Ajax not working

Can anyone tell me why this is not working please in my test_module.module file

From what I have read I thought this should work fine, 

I am trying to just get the AJAX callback working and test by changing a value in a field based on making a change to the title.

I am not seeing any errors in my console

Thanks

// Do I need these or am I missing any?

use Drupal\Core\Form\FormStateInterface;

use Drupal\Core\Ajax\AjaxResponse;

Module CSS load order

I need to override some CSS definitions from my theme (bootstrap)`in a module.  I do not want to make the CSS in the module load after the theme CSS, not use !important.

This works and will make this CSS load last if I put it in the THEME library file, but not in the MODULE library since it looks like it will always load after the THEME css no matter what weight you set, the weight seems to be within the THEME or MODULE, not on a global scope:

Basic Page Content Type missing

Hi there!

My Basic Page Content Type is missing.

I looked in the settings and it doesnt even exist.

pls help

thx

Pages

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