This forum is for assistance with theme development.

Adding Bootstrap Assets to my subtheme

Hi,

I am trying to add the Bootstrap Simple Carousel to my theme. The first step is to add Bootstrap Assets to my subtheme. I have added the framework as described in "https://www.drupal.org/node/2943973". When I added them, I get some mixed results. www.debitsandcredits.com.

Here is my theme.libraries.yml. Am I duplicating something here or ...?

Thank you,

Stephen

What is $attributes?

I cannot find any documentation with explains the $attributes variable which appears in a line in node.tpl.php.

<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>

I have found the function in template.php which creates $classes but nothing for $attributes.  I'd be interested to know where this variable is created and what part of the page content it generates.  Any pointers to documentation would be good. Thanks.

Get all fields in content.body

Hi,

Am new to drupal and i searched but i couldnt find. Please dont be angry if this is duplicate.

I created in View page where is all 'article' content type

I want to in node.html.twig put custom html where i will foreach my content type (Like article).

On default there is {{ content.body }} but i want to have something like this:

foreach fields as field{

<div> field.name<div>

<div> field.bla<div>

} instead of content.body. I tryed to dump content.body but i get big array.

I hope u all understand me.

Output WebformEntityReferenceFieldItem in custom view display style

Dear community!

I have a content type with a reference field "Webform" - machine name "field_reference_webform".

Also I have made a custom view display style according to this Tutorial: 
https://www.drupal.org/docs/8/creating-custom-modules/building-a-views-d...

After that, I have created a View containing my custom content type and the "field_reference_webform" mentioned before.

Block doesn't render if request come while cache-rebuild

I have custom block its working normally as expected but while i am doing cache-rebuild if one of the users request that page ( which contains the block ) block dissepear , block have custom twig template which not rendered in this case i need help i open for any solution 

Thanks.

Overriding profile2 user registration on 2 different urls

in your theme's template.php add following code

Pages

Subscribe with RSS Subscribe to RSS - Theme development