Global and subsite Multisite installtion

Hello,

i want to setup the multisite in drupal 8 and i want like wordpress where there is a main site and other sites and from the main site we can create a subsite and manages all subsite is it possible in the drupal 8? is there any provision where all subsites can be managed and there is a gloabal site dashboard where all subsites can create rather than the we have to create a folder or there is any module for the same

There are some questions related to the multisite and I want to ask is it possible in drupal 8  like wordpress have multisite concept

Module (Form and Block)

<?php
namespace Drupal\dishes_dropdown\Plugin\Block;

use Drupal\Core\Block\BlockBase;
/**
 * 
 *
 * @Block(
 *   id = "bloque_de_pruebas",
 *   admin_label = @Translation("Bloque de pruebas")
 * )
 */
class DishesDropdownBlock extends BlockBase {
    /**
     * {@inheritdoc}
     */
    public function build()
    {
        $form = \Drupal::formBuilder()->getForm('Drupal\dishes_dropdown\Form\DishesDropdownForm');
        return $form;
    }
}
<?php
namespace Drupal\dishes_dropdown\Form;

javascript Drupal.t doesnt translate

Hi,

Drupal.t doesnt translate my words , so which .js file resource have i to load

in my library ?

Thx in advance

Webform/SMTP Authentication and GoDaddy;Could not connect to SMTP host

I'm setting up a webform using the Webform and SMTP Authentication Support modules with Drupal 8.4.4 as installable on the GoDaddy.com application library.

I have the form created and it successfully posts results to the Results area, but I can't get the email notification aspect of the system to work.  I keep getting the "SMTP Error: Could not connect to SMTP host." error message in the log.

My basic settings are:

Sorting View on Month, Day, then Year - Birthdays, Anniversaries, Almanac

Hello,

Currently trying to customize the sort of a View such that events are sorted based on month first, then day, then year. The use case is an Almanac where I'd like users to be able to browse entries over a 12-month timespan as opposed to many, many years.

Drupal 8 - sorting an array of nodes by custom field - uasort - ordering nodes - sortByWeight

I am trying to organise, an array called $nodes, by a field within the nodes called node_order.

$this->query = $this->query->condition($field, 'EXISTS')->sort($field, 'DESC');

But with no luck.

Now I am looking at:

uasort($nodes, ['Drupal\Component\Utility\SortArray', 'field_node_order.value', 'sortByWeightElement']);

Were can I set the Weight for these pages, as all the child pages are created using the same template type, so I need a way to assign weight to each node. 

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x