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

Live site downloaded locally redirecting to core/install.php?

Hello friends,

I have a Drupal 8 website running on a web server.

When I download the codebase and try running it locally, I am being redirected to core/install.php

Does anybody have any ideas as to why this is happening, I have done this several times before sucessfully.

Any help or advice would be greatly appreciated.

Kind regards,

Matt

Editing labels on sign up/register form - likely simple fix

Hey! So I'm basically just trying to change the login form and register form labels to instead say Email address instead of Username or email address and Full Name instead of Username. Any thoughts on what I could be doing wrong? I don't see any changes at all, but I know it's being called because the form id's print. 

<?php

/**
* @file
* Task 1 - only ask for email address and change username label to Full Name
*/

Help with first custom module

Hey! I'm extremely new to Drupal development and have the following code:

kay_user.module:

<?php

/**
* @file
* Task 1 - only ask for email address and change username label to Full Name
*/

use Drupal\Core\Form\FormStateInterface;

field_geofield_distance always returns all zeroes

Hi everyone,

I'm new to the Drupal community with almost no experience from it, recently I got one project done in Drupal 7.x and I'm having some issues with geofiled distance.

The app is listing some stores and it should show you the distance between you and that shop, field is called field_geofield_distance but it always returns 0. We have valid Google geolocation API key, location is allowed and the site is running under PHP 5.6(doesn't work at all on higher versions).

I would appreciate if someone can help me were to look an what to do with this.

Submit webform with AJAX and reuse data in some fields

Hi, 
I have a form submitted using AJAX, the form contains two fields. name and favorite movie.
I want the user to be able to submit the form a few times but I don't want him to write his name each time.
I want the name value he added to remain in the name input, and the movie field to be cleared with each submission
How can I do this using the webform module?
I know I can do it using local storage or cookies but I want to know if the webform module has a native way to do so.

Thank's
​​​​​​​

Title as h1 using Layout Builder

Hi,
I'm creating a site on Drupal for the first time
I'm using Layout Builder to display news. I add a title block, but it displays as span:
<div class = "content">
       <span class = "field field - name-title field - type-string field - label-visually_hidden"> Title 1 </span>
     </ div>

how to change it to h1?

Thank you.
ps. sorry for my English

Pages

Subscribe with RSS Subscribe to RSS - Module Development and Code Questions