This forum is for assistance with theme development.

Cache breaking entity/node display - only on live server instance

Hi there,

We're experiencing a weird issue/bug where our blog node is displaying incorrectly at random but occasionally fixes with a cache clear. Interestingly enough, a cache clear can also break the display again...

From a Twig Debug comparison of the working version and broken version there's a few values that stand out most.

Bootstrap-drupal-Slideshow

I have a problem with my bootstrap theme development. I can't create any slideshow with my local server. Everytime I do so then I get a message like ' Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\vexel\includes\database\select.inc on line 1377 '. Please help me with that.

Check anchor for specific class

How to check if anchor tag in a generated menu link (eg. by main navigation block) has a certain class. For the container li there is the item['attributes']->hasClass() method. However there is nothing of the form item['url']->hasClass(). Can item['url']['urlGenerator'] has something to offer in this regard ?

custom view displaying multiple values fields drupa7

hell guys

i'm new in drupal 7

i've created content type with following fields:

title
body
pic: (one or more than one values in this values)

it works when i display content type node sperately

now i would like to display it in view .
it was working for one value pic as follwing:

Custom user-profile-edit.tpl.php

Hi everybody.

Hello everybody.

I wanted to change the edit profile page with the user-profile-edit.tpl.php.

I added this function in template.php .

function minimi_theme() {
	return array(
		// The form ID
		'user_profile_form' => array(
		// Forms always take the form argument.
		'arguments' => array('form' => NULL),
		'render element' => 'form',
		'template' => 'templates/user-profile-edit',
		),
	);
}

I created the file user-profile- edit.tpl.php .

Resolved: JS not loading for logged in user

In a theme I'm building, Javascript library doesn't load for logged in users. CSS is loaded fine for all. What needs to be done to load JS on all pages ?

global-styling:
  css:
    base:
      css/style.css: {}
  js:
    js/js.js: {}
  dependencies:
    - core/jquery
    - core/drupal

Pages

Subscribe with RSS Subscribe to RSS - Theme development