how to customize the user login form?

I'm trying to customize user login form in (/user/login) page and I want to use a hook_form_alter function to add some awesome style and placeholder to each of user login form fields and remove or hide:
"Enter your admin username" and "Enter the password that accompanies your username" description expressions under each of theme.
I added something like below code to my ThemeName.theme:

Reused custom-hierarchical-menu in different regions, (Drupal V8)

Hello Drupalers,

I like Drupal and its been nice to learn about and get stuck into. Unfortunately I've hit a road block.

Use Case:

The application needs a hierarchical custom menu (Already exists)
The menu needs to be shared as a block within different regions (Achieved)
What seems to be the hard parts
1, Render the menu differently in different regions structurally and visually (i.e. a different surrounding css class)
2, Show or hide different nodes in the hierarchy

Showing referenced fields

Hy,

Why is it...?

Why is it when a patch like the current 8.1.8 is released, I get notice on my websites that an upgrade is available. Then I go to drupal.org and the older previous update is listed on the home page, not the current 8.1.8 update. Then I go to the get started section and finally find the current recommended update. Then I download it, try to do a few simple updates to a few websites and experience problems I've never had before with the same simple 8.0 websites. Then I start searching around and can't seem to find anything other than random obscure references to problems with 8.1.8.

Set default value for entity reference field.

Hello together,

i try to change the default_value of an entityreference field in a hook_form_alter(), but it does not work.

<?php
$node = \Drupal::routeMatch()->getParameter('node');
$form['field_referenced_campaign']['widget'][0]['target_id']['#default_value']  = $node->id();
?>

Any Ideas. Thank you.

[fixed] Drupal 8 with IMCE

Hi,

i tried to use the imce module with drupal 8 but after i installed it and activate the image widget in the ckeditor preferences it always open a "acces denied" page when i try to go into the imce widget during creating a new content.

What i have to do, to install the imce module correctly with D8?

Error: /theme/en/imce?sendto=CKEDITOR.imce.sendto&type=image&ck_id=edit-body-0-value

and: Missing filter plugin: filter_null.

best,

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x