cPanel with D7 and D8 for migration

Hi.

I have a shared hosting plan (cPanel) where I have a D7 website. I thought doing my migration from D7 to D8 on my server (with the site in maintenance mode).

How can I add on the same hosting a D8 installation?

Is it just about creating a folder inside public_html where to put D8 ? Do I have to create a new account inside cPanel ?

Eventually, I can use if necessary an unused domain name.

Thanks for helping.

Q.

Contact forms - preventing submissions from saving

Anyone have found a way to prevent form submissions from being stored in Drupal? I see there is an option in webforms but I'm using contact forms. We submit to marketo so the submit still needs to go through but any suggestions via hook?

Thanks

EntityQuery, by referenced entities

Hi all, 

I am getting an empty array when I query by the value of a referenced field. 

I have the following:

$result = \Drupal::entityQuery('node')
    ->condition('type', 'custom')
    ->condition('status', 1)
    ->condition('field_category.entity:taxonomy_term.name', 'somevalue', '=')
    // ->condition('field_category.%delta', 'somevalue');
    ->execute();

Using ->condition('field_category.%delta', 'somevalue'); returns way too many results (nids) than expected.

Script based on guidelines to fix permissions of an entire Drupal installation directory

Not sure why I can't add a comment below the Doc page, but my observation is related to the following page:

Securing file permissions and ownership

Dependency Injection in Blocks

Here is an example for dependency injection in blocks, please let me know what does the parent::__construct does here.

class MyPluginBase extends PluginBase implements PluginInspectionInterface, ContainerFactoryPluginInterface {

protected $entityManager;

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager) {

How to display view content based on current birth date field in drupal 8

Hi, 

I am using Drupal 8.6 version. i have issue with to display view content based on current date in drupal 8. i had tried with adding filter criteria on date field but its not working for me. i have to display 3/4 contents whose birth date in today & in next week or in upcoming months. 

For  date field i am using bootstrap datepicker .

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x