This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

show total population count

I have created a content type name "Customer Distribution" to take the population of male and female from different locations.
The fields in this page are:
location
male population
female population
remarks

View question about solr search and contextual filters

I have a basic view set up to show a result list of an "articles" content type (listing the title linked). There are three terms in a taxonomy for three newsletters and are all tagged under one of the three, and filtered as such. The ask is to add a solr search for this content type and add a fulltext search to it.

As I'm trying to do this I found that if the view is using Content I can't add Search: Fulltext search (not available) since I would need to create the view with an Index Article index. This allows the fulltext search but I'm finding it difficult to add the filtering.

Need help with phpcs error

I have the following construct in one of my projects:

  $message['body'][] = Markup::create('<br />&nbsp;<br />' . t('This is an automatic e-mail from @sitename. To stop receiving these emails, change your notification preferences at @host/user/@useruid/notify.' . '</p>',
     ['@sitename' => $sitename, '@host' => $host, '@useruid' => $useruid], ['langcode' => $upl]));

GitLab CI testing is not happy, and tells me:

Disable elements caching in a field formatter

I have built a field formatter this way:

Configuration Synchronization Error

I am trying to import views from one of my Drupal 9 sites, we will call it Drupal A to another Drupal 9 site, we will call it Drupal B. 

I keep getting this error: 

"Error message

The configuration cannot be imported because it failed validation for the following reasons:

Drupal 10.1.3 - custom rest resource will not recognize post

I followed the  REST tutorial and then the instructions on how to make POST available ("create" option) but it does not work. The POST route is not recognized.

Version: 10.1.3

REST-UI: 1.21

Folder structure:

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions