This forum is for assistance with theme development.

Forum with anonymous posters' names

Hey 

My objective
I have to create a forum with Drupal 8 that allows anonymous visitors to post new forum topics and comments (under topics) and I also have to show the anonymous posters' names which are filled by user input.

I created a field ("field_name") under the "Forum topic" content type (/admin/structure/types/manage/forum/fields) to hold the anonymous poster's name and made filling it a requirement.

d8 switch view_mode of single paragraphs entity

Hi folks,

I use paragraphs module for content of the nodes full view. My users like to upload several images on a node so I've used two paragraph types for images, one to display images in masonry style, one for slideshows. Unfortunately, if you want to switch the display after uploading the images you have to delete fEx the masonry paragraph and upload all images again on the slideshow paragraph :(

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.

Pages

Subscribe with RSS Subscribe to RSS - Theme development