How to show/print same content twice or more using drupal_view in a template?

I have a page where I need to show/print the same content twice. For this, I am using drupal_view.

{{ drupal_view('product_content', 'page_1', node.id) }}

This code works only for the first position and for the second position it doesn't work. What can be done so that the content shows up in both places?

Thank you!!

Refresher Course?

Hi, I've worked as a freelance content manager and fit the category of Skilled Drupal Site Admin - but it's been a couple of years since I've used Drupal specifically and am wondering if there is a place / course where I can refresh my skills? Thank you.

How to display the nodes belonging to the parent terms and to the child terms, of the term of the current page ?

On the default Drupal 9 installation, there is a tags field in the article content type. I allowed only one value for this field.

I have created terms and child terms for the tags taxonomy vocabulary.

In manage the form display of the article content type, I chose the "Selection list" widget for the tags field.

I created a view block to display all the nodes and placed it on each node's page.

I excluded the current page ID, with a contextual filter.

I want this block to show nodes sharing the same taxonomy term as well as its parent terms.

Unable to move/drag content blocks in block layout - Drupal 8

We have a total of 328 custom blocks in our Drupal 8 site. I'm not sure at which block count (330, 340, or 350), but at a certain point when a new block is added I am unable to move/drag it. I'm having to constantly delete or prematurely expire custom blocks because I reach that threshold. I cannot find any documentation that states there is a limit to how many custom blocks I can have on a Drupal site. Has anyone else experienced this? If so, what is the fix?

Replacement of _form_set_class() function in Drupal 8

Hi Guys,

I'm using this _form_set_class() function in Drupal 7 and I want this replacement in Drupal 8.

Please help me guys I'm struggling with this.

In Drupal 7 I'm using this function like this:

_form_set_class($element, array('form-select'));

Text-format gone

After deinstalling a module (I guess it was a lazy images module) the nodes lost their text-format, although it is required. Now I'm looking for way to fix this, because I have hundreds of nodes with this issue. I would appreciate any ideas.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x