Conditionally Displaying Content in Templates

Essentially, I have a content type with two textareas and a boolean checkbox. I want it so when the box is checked, the first textarea will display, but if it is unchecked, only the second textarea shows. Essentially, the checkbox is a toggle between displaying the contents of the two textareas.

Trying to use hook_user_login in module

Hi,

I am starting on drupal 8 module development so I am rather a newbie !

I tried to use hook_user_login by entering the following code in my loremipsum.module file of my loremipsum module:

/**
 * Implements hook_user_login().
 */
function loremipsum_user_login(UserInterface $account) {
  drupal_set_message('Thank you for logging in and welcome!');
}

But this does not result in a message displayed.

When I enter the codeline : drupal_set_message('Thank you for logging in and welcome!');

Link IBM WebSphere Portal with Drupal

Dears , i have enterprise website built using IBM websphere portal and IBM CMS , we need to replace the existing CMS with Drupal CMS so is there any advise about that , based on my reading the only way is to expose the drupal data using REST(as JSON/XML) then build a code under IBM portal to read from a URL and display the needed data , but i believe with this i will loose the capabilities for both IBM & Drupal

please help

Media Entity Usage

Trying to get the Media Entity parts of Drupal 8 to work.

Docs for Drupal8 + Varnish4 + Nginx, with NO module dependency?

I use NGINX as a web server - both as a front-end SSL terminator and as a backend to a Varnish v4 cache.

Now that Drupal8's here I'm trying to install it on that stack.

Is there any official/complete documentation on how to configure Drupal8 properly for use with Varnish v4?

I'm specifically looking for deployment docs that DO NOT assume/use the 'Varnish' module. I.e., I want a config that works with out-of-the-box Drupal8, with no additional modules installed or required.

Is that even possible with Drupal8? And if so where are complete docs?

JimS

Bootstrap theme drupal 8

Hi everyone,

i installed drupal 8 and i'm trying to set up bootstrap sub-theme.
i installed bootstrap theme from here: https://www.drupal.org/project/bootstrap,
i went to:
mysite > themes > bootstrap > starterkits. then i copied less folder into this directory:
mysite > themes > less.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x