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

Show Webform Total submission limit to users

Good morning,

We are rebuilding a webform and want to show the our users the current amount of Submissions and the Total submission limit. This is important as we want to show how many course seats are left.

Is there a way to get the Total submission limit value and add this field to the page details?

Thank you in advance.

Regards,
Danny

Custom layout builder module configuration custom media field not working

I created new custom layout module.

I would like to add a media field as configuration.

The first filed I added was of type select and it works well. (See background_color below).

I would like to add media field (See background_image below), but it not showing on the add/edit section form.

Is there a way to use file field or media field in custom layout configuration?

Drupal 8.8.2

Drupal Authentication - (Single Sign On) for mobile apps

Hello,

We are building an iOS/Android game and we're looking to use Drupal as the back end (via REST services).  I am trying to find documentation on how to connect Game Center (iOS) or Google Play Games as the authentication provider.  This means I want the user to go to our game, click the Game Center icon and be able to authenticate with Game Center, then create a Drupal account if one doesn't already exist, then log the user in to Drupal.  

I assume this is possible in Drupal, but I have not been able to find any tutorials on this topic.

Loading Entities from an Second Read-Only Database

So I have a module that provides a slimmed down Render Array into a JSON object to a caching server, that then sends the information to a front-end Symfony Servers.

I would like to scale my database horizontality with either a Read Replica or a Azure Cluster. I thought I could accomplish this since all my production workloads goes through my custom module. But I can’t seem to figure out how to get Drupal Core or Entities modules (like Node::load(id)) to read from the second database instance.

Where does Drupal7 save the "Path of the public files" ? (SOLVED)

Hi,

I'm building a template of the database of a Drupal7 site that I want to modify with a script.

I'd like to modify the location of "Path of the public files" and "Path of the private files", but I can't find them in the database.

On the backend these two configurations are in: Home-->Administration-->Configuration-->Media.

Where does Drupal save these two configurations?

Thank you very much

Claudio

dependent field with _form_alter

Hello every I want create classifieds website with drupal 8

I have create content type call cars. I have two fields call Car Brands and Car Models

I want Car Models to be dependent of car brands. eg if you select Kia from car brands you only see Kia cars under the Car Model

Here is my code of my model.

<?php

function changedata_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {

if ($form_id == 'node_car_form') {

$model_options = $form['field_car_brand']['widget'][0]['value']['#value'];

Pages

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