Views: add content type as a list, if ‘no results’ create node

Hi! I’ve got a use case where I want a list of content types in a view, example:

  • Article
  • Film
  • Team

In the 2nd field I will add the node title if node exists, otherwise ‘no results behavior’ will have ‘add a node’.

What I’m trying to achieve:

  • Article | (node exists) so title
  • Film | (empty) so ‘add a node
  • Team | (empty) so ‘add a node

The issue is, in ‘add view’, you cannot create a view of content types.

[SOLVED] Drupal way of storing data related to a node

I want to store some data that is related to a node and trying to figure out the best way of doing it. For example, I send emails related to a node and I want to save details such as:

  • To Email address
  • Cc Email Addresses
  • Date sent
  • User
  • Email type
  • Other chosen email options etc

In the past I would use Paragraphs to have an unlimited field but this will, over time, grow to have a lot of entries. I'm also using Revisions on the node so I think this will slow everything down when saving the node.

How to create a copy text link ?

I created a code and I want the visitor to be able to copy the BTC address <small type="text" id="copy-to-clipboard">{{ group.field_groupe_donation.value }}</small> by clicking on the fontawesome icon <button class="btn btn-default btn-xs" onclick="copyText()"><i class="fas fa-copy"></i></button>.

How to do this ?

Node save slow with a field containing lots of paragraphs

I have a node that has a Paragraph field. It has around 80 Paragraphs referenced to it. When I save the node programmatically it's very slow. It seems like the slow down is happening in the preSave() of the field. I'm wondering if every referenced Paragraph is being loaded when the node is being saved?

Could it just be bad design by myself that I created a node that has a field with 80+ Paragraphs referenced to it? Or is it legitimate to do it this way?

I should add that the node uses revisions.

How to properly remove the module installed using the composer

Hello.

It is possible that my question will seem stupid, but I can't find information anywhere on how to properly remove the module installed using the composer. Drupal version 8. Where can I read about this?

With respect.

There's no theme installing button in Drupal 8.7.11?

Hi!

I'm using GoDaddy to host my page, and i've installed Drupal 8.7.11.

But there's no button for "Install new theme".

I've delete it, re installed, installed older versions.. and still there's no button for installing a new theme, how can I make it appear?

Is there some other way to install the theme?

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x