Grateful Heads

Illustration by <a href=””>Nate Otto</a> LaMichael Langford grew up watching his uncle run a barber shop and would sneak in his friends to cut their hair. LaMichael eventually took over the business that his uncle opened in 1964, and Langford’s Barber Shop has been a constant[…]

Custom template for content type. Content in template is empty.

Hello, I want create custom template for each content type. I have defined mytheme_theme_suggestions_page_alter(..) and files in /templates/*.html.twig. The problem is that drupal dont load content to template. mytheme.theme function mytheme_theme_suggestions_page_alter(array &$suggestions, array $variables) { if ($node = Drupal::routeMatch()->getParameter(‘node’)) { $content_type = $node->bundle(); $suggestions[] =[…]

autocomplete textfield displays value instead of label after click

Hello. I’ve created a custom handler for an autocomplete textfield, in a form. this is the code : public function handleAutocomplete(Request $request) { $result = []; $query = Drupal::database()->select(‘site_entity_field_data’,’s’); $query->fields(‘s’, [‘id’, ‘name’]); $entities = $query->execute(); foreach ($entities as $entity){ $field_site_id = $entity->id; $field_name = $entity->name;[…]

Views result: more fields in one div

<div class=”viewsrow”> <div class=”photo_field”><img src=”photo.jpg”></div><!–end of photo_field div –> <div class=”description_field”> <h6 class=”time_field”>za 24 juni 20.15</h6> <h3 class=”title_field”>Title </h3> <p>Description will stay here. Description will stay here. Description will stay here.Description will stay here. Description will stay here.</p> <h5 class=”price_field”>euro:7</h5> </div><!–end of description_field div –>[…]

Drupal 7 form autosubmit bug in IE and Safari

I have a form which works on chrome, mozilla but in IE the autosubmit is not working. function recherche_localite($form, &$form_state) { $form = array(); $form[‘localite’] = array( ‘#method”‘=>’post’, ‘#type’ => ‘textfield’, ‘#maxlength’ => 60, ‘#autocomplete_path’ => ‘justtosay_formTools/autocomplete’, ‘#attributes’ => array( ‘placeholder’ => t(‘Dept, Ville ou[…]

Fatal error: require_once(): Failed opening –

Hi guys, I am not a professional but running my own drupal page. Last week I wanted to Login and became the following Error: Fatal error: require_once(): Failed opening required ‘/homepages/35/d244905567/htdocs/marcello-camerin/sites/all/modules/views/plugins/’ (include_path=’.:/usr/lib/php5.5′) in /homepages/35/d244905567/htdocs/marcello-camerin/includes/ on line 3179 Line 3179 in the says: require_once DRUPAL_ROOT[…]


I have 2 content types: stores and products. Products has a reference field that refer it to the store that sells it. I have a view with all stores, I want to set a link to a view with store profile (profile is a field[…]