Sometimes, very very randomly (like maybe once or twice a week), the theme from my production site switch by itself from my theme to the templates used by the system module. But not all of the templates : only the html.tpl.php and the page.tpl.php. The node.tpl.pph for example would be the one from my theme. And it only takes a cache flush to make it back to normal.
Did anyone have this problem at some point? Does someone know when the system module template files are used?
I'm in the process of migrating a site from Drupal 7 to Drupal 8. I've created two views that render text fields. If the text field is plain text, and the formatter option is set to plain text it works fine. If the text field is formatted and the formatter in views is set to Default or Trimmed—those are the only two options—the content won't render.
I'm in the process of migrating a site from drupal 7 to drupal 8 and I'm having a problem with where or how to implement functions I had in my template.php file.
For example in drupal 7 I have this function in my template.php file:
function some_function($var1, $var2){
print $var1 . $var2;
}
I call the function from a template file like this:
<?php some_function('Hello', 'World'); ?>
How and where would I implement something similar in Drupal 8.
I have made a sub-theme of Bootstrap 3 and want to alter some small CSS default settings. I need help for that. I make use of the Asset Injector module.
- I have several jpg-files. How can I make a header carousel of them?
- If I want to make the height or width bigger from the header, how can I do this?
I am convinced this is just a small piece of code.
But how can I find it out?
From what I can see in the markup generated by Drupal 8 when looking at blocks I need to style, I'm seeing wonky IDs, especially if I omit titles from the blocks (I think Drupal is falling back on the description to use for the generated ID?).
I shouldn't need to delete an entire block just to change an ID of said block, should I? Is there an easy way to edit block IDs?
I have a Drupal 7 view with contextual filters and I am unable to include any tokens in "Global: Text Area (no results available)". Replacement patterns are listed, but none of them are working. I have tried the various text formats (Full, Filtered, Plain, Unfiltered) with no luck. I have used tokens in the past with no issues. Any suggestions?