How do I make a content type with dynamic fields?

So I have a custom content type called product listing. I have fields for every aspect however, I want an option to add multiple images at the bottom. However, the number of images will change depending on the entry. So I may want to add 2 images. I may want to add 5 images with descriptions. 

I want to able to do this from the content creation in Drupal and then loop through these options for output in my twig file. 

How would I go about doing this?

Problems with views-exposed-form.html.twig

Hi everyone,

I am trying to customize the template for the exposed filters of a view.

I have created the views-exposed-form.html.twig and Drupal loads it fine. For now, I have the standard code:

Suva - Relaunch sapros.ch

sapros.ch homepage

sapros.ch is an online marketplace for safety equipment and services operated by the Swiss insurance company Suva. On the marketplace, the products are not offered by Suva as the operator but by over 60 independent vendors who sell around 50'000 articles in 3 languages. Therefore, all commerce-related processes on the platform need to be adapted to support multiple vendors and at the same time satisfy the high quality requirements related to safety equipment.

Sectors: 
E-Commerce
Healthcare

How to render a custom field in a view

Hi,

I create a module for generating a custom field in a view.

It works but the $phrase generate is not html because the sentence is contained in quotation marks.

Tags asymmetry

I experience this -small- error regarding tagging.

I use two different content types.

Type A:

Tags are added in a single field, separated by commas. All good.

Type B:

Tags are added in separate fields. Initially two empty fields are shown and a "add another item" button is visible. If you add two tags in the same field, separated by a comma as in Type A above, only the first tag is shown.

How do I make menu items show as expanded?

So, I have my sidebar menu, and I want to show children of parents expanded.  How do I go about doing this?  

for reference, I have created the sidebar menu from "Menus"

For example, I have a menu:  

Home

Products

about

more random stuff

Under products I have subcategories like blue stuff, red stuff, purple stuff.  Right now, those items show when you hover over the products menu item in the sidebar.  What I'd like is them to appear under products with an indent.  Something like this:  

Home

Products

     blue stuff

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x