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

D8 AJAX The uploaded file likely exceeded the maximum file size

An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (40 MB) that this server supports.

Floating Number-Field in a Form

Hello everyone,

I'm quite new to Drupal and developing a little Wizard for my company. But i do not get the number field to accept any floatingpoint values or the text field to validate, that my text is really a number.

I do know the question did not arrise the first time, but nothing i found could solve my problem.

First approach:

        $form[self::WARMMIETE] = array(
          '#type' => 'number',
            '#min' => 0,
            '#required' => TRUE,
            '#suffix' => '€',
        );

Custom page with content from API response

I'm trying to make a custom page created with hook_menu() and in the callback function, I need to get a variable with HTML code which is returned by a library I'm using. I tried getting it with page_callback_function($html) but page callback functions get variables from hook_menu arguments. How can I achieve this?

Sample code:

missing module debuggin

Hello, this might be a vague post, but will try my best.

I have a situation where we have one code base and multiple dev and test environment.

I am in a situation where the developers are claiming a particular heavily customized module function is displaying on one environment but not in the other. 

I checked and double checked and I am pulling the correct code from the correct git repo.

I also checked apache permissions and file and folder permissions. They seem all correct.

I cleared and re-cleared drupal caches

Update unit price of product when added to cart in commerce

I added an event subscriber for add to cart event. There I defined a function to react on add to cart event. Everything works fine as my eventsubscriber is being called. I want to update the unit price of product which is being added to cart. Below is the code I used but it is not working. Price of the product is not updating to the price I am setting.

How can I assign a field to a entity bundle.

Hello I have create a module, I have create also the file field.storage.paragraph.parrados_description.yml,

I can assign the field with the UI.

But what I'm looking is to assign the field to the bundles programatically throught a form,  What is the method or function that let assign a field to a entity?

Thanks.

Oskar

Pages

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