Calculate an average based on two existing fields

Hi,

I want to calculate the average of two fields of type number, and have this average in a third field to make different sorts in views.

For example:

  • I have a content X which has as fields: A, with the number 6, B, with the number 8;
  • I would like a field C, in which would be automatically calculated the average, namely 7;
  • The field C would then allow me to do different sorting with views.

Do you know what is the best approach to do this (drupal 8) ?

Our Drupal 8.5 site gives error (The website encountered an unexpected error. Please try again later.)

Hi, 

Our Drupal 8.5 suddenly give error message (The website encountered an unexpected error. Please try again later.) and I can not make sense of it. I update the core and the whole website stopped so I replaced with backup. The view is working but when login and try to do anything Edit, update, configure I get this error. The server log for an example to edit a page is posted here. 

When I try to run upgrade I get 

Requirements problem

Errors found

UNRESOLVED DEPENDENCYMigrate (Version >=8.2, <8.3 required)

Paragraph fields label display in views

Hi I am trying to list using a view that has paragraph reference.However when I add the paragraph in my views fields ,its displaying the values along with the label.I am trying to remove the labels but its not getting removed.

Is there any possible way to manage it via views? I just want to remove the labels coming along with paragraph fields.

Thanks

[SOLVED] Frontpage view deleted in error

Hi

I deleted the frontpage view in error on a recently installed site i have been playing around with as i try to get to know Drupal.  Is there a way to retrieve this or can someone post the default settings up here so I can recreate?

Many thanks 

Clearing Cache Breaks my Theme - Where do I begin with Trouble Shooting?

Hello,

I have a Drupal 8 site I am in the process of developing and at some point something I did seems to have broken my theme, such that it doesn't seem to be properly loading or using the page.html.twig template file, which leads to some broken elements in the layout.

Here it is as it should look:

https://imgur.com/a/794n4ZN

And here is after flushing the Cache:

https://imgur.com/92LxO3w

What does this Ajax error mean ?

On my site, when I use ajax, to add a group to a node for example, I have an Ajax error. What does this Ajax error mean?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x