Drupal 8: conflict of entity base fields and form elements

Hi all

I've create a custom entity with a base field named op:

Image placeholder modules?

Hi there,

Am wondering if there are any modules around that would allow users to display a placeholder image before the page images are loaded? It looks messy when a page loads and 'pops' into shape as different images load.

Thanks

Copy the content of one node of content type A to another node of content type B

Hi,

I am working with druapl 8. I want to copy the content of Node A of content-type A to Node B of Content-type B. How can I do this. Somebody please help it's very urgent.

Thanks

Add classes to the body of a page with a module

This code in MODULENAME.module do not work for me:

<?php
/**
 * Implements hook_preprocess_html().
 */
function MODULENAME_preprocess_html(&$variables) {
  $variables['attributes']['class'][] = "test";
}

?>

https://www.drupal.org/project/extra_body_classes

Add code to the head of a page with a module

In Drupal 7 we use drupal_add_css() or drupal_add_html_head().

This code in MODULENAME.module do not work for me:

/**
 * Implements hook_page_attachments().
 */
function MODULENAME_page_attachments(array &$page) {
  $description = [
    '#tag' => 'script',
    '#attributes' => [
      'name' => 'description',
      'content' => 'My script.',
    ],
  ];
  $page['#attached']['html_head'][] = [$description, 'description'];
}

D8 views slideshow responsive ?

Hi, i installed view slideshow module, all working well i display it in a block on my homepage but i don't find any way to have it responsive :( i installed the responsive image in extension but still cannot figure it out... Anyone know how to do that please ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x