Libraries Ready to Code: Engaging Youth in Computational Thinking

Home page of the Libraries Ready to Code website depicting an adult engaging with a child on a computer

The American Library Association's Ready to Code initiative grew out of a conviction that helping youth to become comfortable with Computational Thinking is an essential mission of libraries in the digital age. Funded by a grant from Google, the site has taken the ALA's advocacy for tech literacy to the next level.

Sectors: 
Education

How to find views block

Hello, 

I created a views block. 

I created a block field using the views block. 

I like to set the block visibility by roles. 

Normally, I go to structure > block > place region > select block > then I can configure. 

When I use the block as a field, I do not see the views block on structure < blocks page. 

How can I find the block to configure the visibility of the block?

Thanks!

Get value i n multiple select list in form

I have a field in form like this:

$form['equipo_local'] = array(
      '#type' => 'details',
      '#title' => $this
        ->t('<b>Equipo local</b>'),
      '#group' => 'information',
      '#open' => TRUE,

    );

    $form['equipo_local']['seleccion_local'] = array(
      '#type' => 'select',
      '#title' => t('<b> Equipo :</b>'),
      '#validated' => TRUE,
      '#required' => TRUE,
      '#options' => $this->dicc,


    );

Being $this->dicc a mutiple select list :

How to display a message to public visitors

Hello, 

I created a views block. I would like to display the block to authenticated users only. When a public users visit the page, I like to display a message like "please login to see the details". Without logging in, public can not see the block. 

Block settings field has roles section where I selected the role. Now block displays to authenticated users only as expected and public can not see the block as expected. Only thing is missing to display the message to public asking them to login to view it. How can I do it?

Thanks!

Custom entity cache invalidated on some listing pages

I have a custom entity (Activity) with bundles and taxonomy/user reference fields (they are added directly to the entity table as opposed to separate field tables). When I visit admin/modules or admin/people, all the activity entities cache_entity entries are updated. On the people page, this happens once for every entry (e.g. if I have 2 entries then there are 2 inserts into cache_entity for those entries any time I visit that page...or even when I look at the People view). However on the module listing page, there are over 100 inserts into entity_cache for each entity!

HTML Image SRC from ouside drupal root (external images) HOW-TO

Hi there, beginner drupal developer here.

I'm serving some static files in my nodes using some controller like these:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x