Featured article block on front page ONLY!

I've created a custom view and restricted the block to display only on the <front> page of my domain.com, but the problem with this method is that the block also displays on all pagination pages too. eg domain.com/?page=1 etc.

I found this article How to add a View block directly to a template in Drupal 8, but it is missing information and not too sure if it will accomplish what I'm trying to do here.

Does anyone know how to display a Block on ONLY the front page?

How to fetch expose field values in ajax view with _views_pre_build hook

I am working on ajax view where i need to add some condition but only when no filter is select. how can i fetch expose filters fields values in ajax filter in _views_pre_build hook.

or how can i check that view is load normally or its load from exposed filter data.

JS permissions at IIS 7.5

Hey guys,

I have a serious problem. My Drupal project is configured on IIS 7.5 on Windows Server (customer requirement and not mine!!!!!). While passing the security tests the report told us that some Core js files can be accessed from the outside. Through the ISS I tried to block configuring the folder and file permissions but was unsuccessful. Has anyone experienced a similar problem?

Flexslider on Drupal 8 not sliding

Hello, 

I've installed Flexslider and finally it show no error or issue. It can be configured. It is not sliding.

Here is what I have done so far and you can see the issue here 

Can't install Libraries API module. Gives error

Hello,

I have latest Drupal 8.9.17 as of today and trying to install the Libraries API module  https://www.drupal.org/project/libraries which  is said to be needed for Juicebox module.

Call Back

In a content type I have various fields including a date field and a time field. Both call their respective callBack.
The problem arises when I try to write the Date via the keyboard and not via the widget. Every time I type a key the callBack is invoked and it's boring
This is the code
              $form['field_data']['widget'][0]['value']['#ajax'] = [
              'event'           => 'change',
              'disable-refocus' => FALSE,
              'callback'        => 'CBDataMiss',

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x