How to add a pop up text with a close button/icon to bootstrap grid cell

Hello,

I created a view with bootstrap grid. I am displaying two fields: Image and Title.

Image field is linked with Content. When I click the image click, it takes me to the node.

I wish I could display just the body field of the node type as a pop up text when I click the Image link. I should be able to close the pop up by clicking the close button.  

https://ibb.co/QCYyBc8

https://ibb.co/g62x0bT

How to install a contri. module in a shared hosting server via composer

Hello, 

I like to install the below module in shared hosting server via composer. This would be the first time I am using composer. 

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

I have my drupal 8 site in under public_html directory. 

I connected to the shared hosting server via PUTTY. Then ran the below command.

[drupal 8] why my custom module is not executed when not httpS

Hi, my custom module is well executed on http://localhost,

and well executed on httpS://www.mywebsite.com to.

But it is not executed when i'm on the http (not secure) protocol!

Is it normal ????

Thx in advance

$node->getTranslationLanguages() to get language name in Local

in b5subtheme_preprocess_node

 $node=$variables['node'];
$languages = $node->getTranslationLanguages();

foreach ($languages as $id => $language) {
  dpm($language->getName());

}
 

It's printing as:

  • English
  • Hindi

While I want

How to show/hide a block with an arrow

Hello,

I like to create a block to display at the top region with an arrow. By default, block will be shown or hidden. I should be able to hide the block by clicking the up arrow. I also should be able to display the block by clicking the down arrow. 

How can I do it? Do you suggest any modules?

Thanks!

unable to place blocks

Hi all, on an old drupal installation, 8.9.20

Today I'm not able to place a block anywhere: when I click on "Place block", nothing happens, but I find the following log:

LogicException: Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call. Use renderPlain()/renderRoot() or #lazy_builder/#pre_render instead. in Drupal\Core\Render\Renderer->doRender() (linea 243 di /home/customer/www/xxx/public_html/core/lib/Drupal/Core/Render/Renderer.php).

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x