Output a number of nodes created (certain type) without using Views

Hi, I would like to output (within text in block) the number of nodes created in certain content type. Something like: "We already have [number of blog nodes] blogs created with [number of post nodes] posts". I have achieved it easily just using views (aggregation) and embedding it in text, but there is a performance issue. It has to load 2 views with large number of nodes to display just those 2 numbers. 

Is there any other (more performance friendly) way to achieve it? Any simple module? Any PHP snippet? 

Thanks,
Michal 

Getting error while adding/rearranging sort in Views. Drupal\Core\TempStore\TempStoreException: Couldn't acquire lock to update

I am trying to add/rearrange a sort criterion in view in drupal 8.x, but getting error Drupal\Core\TempStore\TempStoreException: Couldn't acquire lock to update item 'search' in 'tempstore.shared.views' temporary storage.  

Is there anyone who can help in this regard. Thanks in advance!

How to handle error message on newly installed site

Will someone please guide me on how to handle the following error on my newly installed site? I am using the 8.9 version.

The website encountered an unexpected error. Please try again later.

The website address is The website encountered an unexpected error. Please try again later.

Thanks and regards

Upgrading from Drupal 8.9 to Drupal 9.36 in a non-techie way?

I am not a tech guy. but I wanted to upgrade from Drupal 8.9 to Drupal 9.36. is there a non-technical way to do so? I can see the composer.json file in the file manager. But apart from that, I am not sure what to do next. Please let me know if there is a non-technical way to upgrade like updating from Drupal 8.7 to 8.9?

www.japanesemarine.com

Thanks and regards

User email verification by programming

I am using Email verification module https://www.drupal.org/project/user_email_verification but I want to triggered the verification email along with verification link programming  i have some User Id's to whom i want to specific send them notification with custom email template. Please guide me how can i use this community module functionality in my custom module

thanks

Drupal Webform + Salesforce Mapping - one mapping for all forms?

In our instance of drupal, we currently create a new salesforce mapping for every single webform we create and add a webform element to be mapped for every field on the form. Is there a way to either:

  • Create 1 general set of mappings that applies to all forms or basic form fields?
  • Map multiple drupal webforms to one salesforce mapping

I haven't seen this as a feature while working in Drupal and I haven't seen an article related to this in my research so far. 

Thank you!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x