help me to convert mysql query to dynamic query

SET @sql = NULL;
SELECT
  GROUP_CONCAT(DISTINCT
    CONCAT(
      'ifnull(SUM(case when name = ''',
      name,
      ''' then donations end),null) AS `',
      name, '`'
    )
  ) INTO @sql
FROM
  mytable2;
SET @sql = CONCAT('SELECT date, ', @sql, '
                  FROM mytable2
                   GROUP BY date');

PREPARE stmt1 FROM @sql;
EXECUTE stmt1;
DEALLOCATE PREPARE stmt1;

A search module that can search content on both main and sub domains

Currently, i'm planning on running my blog section of the site in a subdomain and all other content exist on the main domain. I would like site visitors to be able to do a search which will yield results from both main and subdomain and displayed this on a search result page on the main domain.

Is there a search module which will allow this for Drupal 9? I don't plan on using ApacheSolr dues to some limitation on my server.

The only module i know of is google custom search module but are there better alternatives? 

Thanks in advance. 

How can I print a specific paragraph type?

In node.html.twig or field.html.twig how can I print a specific type of paragraph (as a bundle, with all its fields)?

How to run Shrinktheweb module on drupal 8

Hi,

I have downloaded the shrinktheweb module on Drupal 8. Enabled the module, set the acces and sequrity keys and adjusted configuration. However, I can't find any direct information beyond that on how to run it on drupal. Copying and pasting a sample code somewhere ?. is not a direction.

I have already upgraded my Shrinktheweb account. However, I can't send support tickets to Shrinkthewrb.

Please help,

Regards,

Korkut Vats

How to add validations to webform submission

Hello,

When public submit webform contact forms, is there a way to add validation? So I dont get junk emails. This is a real estate website. When people want to sell their homes, they contact us by submitting the webform. Unfortunately, we are getting many junk emails from the webform submissions. What would you recommend to fix the issue?

Views page title displays under views content

Hello,

I created a views page. UI displays the views page title below the views page content. I like to see the views page title above the views page content. 

https://ibb.co/W6TQBzZ

 https://ibb.co/9WGbXqy

Thank you!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x