This forum is for assistance with theme development.

Add Paragraphs module output to different sections of twig template

Hi,

New to Drupal and Paragraphs module. Let's say I have 2 distinct paragraph types added in the Basic Page content type called pfield1 and pfield2 . pfield1 is just for output images and pfield2 is just for outputting text .

Basic page field layout:

Title field

Content field

pfield1 paragraph type

pfield2 paragraph type

I am experimenting with page.html.twig and following this how-to

Drupal Commerce Belgrade 2.0.0 Product display on home page

Product display on home page
In the Drupal 8 version of theme belgrade 8.x-1.1 when you click on a product you want to add to the cart, the display is presented with the image of the product on the left and the description on the right, on the other hand in the version Drupal 9 from belgrade 2.0.0 theme product image and description overlap so why? Is there a setting problem in the CSS file?
Has anyone made this comment?
Attached are two screenshot images.

User error: "0" is an invalid render array key ... when including a file with SVG code ?

 I have an icons.html.twig file, used to include icons where needed using:

{% include('@mytheme/icons.html.twig') ignore missing with { 'icon': 'arrow-right', 'classes': '' } %}

The file itself contains the SVG code for each icon ...

Twig template field empty vs field|render empty

I'm new to Drupal and inherited a site that, originally, had a template that was conditional on the existence of a sidebar. The original code was as follows:

Unexpected errors while creating/editing node

I have been getting some unexpected errors while creating and saving nodes.

Example:

Type:     page not found

Location     https://mywebsite.com/home/username/public_html/%e2%80%93

Referrer     https://mywebsite.com/name-of-the-clean-url

Message: /home/username/public_html/%e2%80%93

Severity:     Warning

Pages

Subscribe with RSS Subscribe to RSS - Theme development