Need help migrating your site to Drupal?

MediaWiki parameterized uniform text in Drupal

I wish to manually migrate all articles from MediaWiki to Drupal.

In MediaWiki I use Parameterized uniform text for most articles and I need similar functionality in Drupal.

To explain the concept of uniformed parameterized text, in MediaWiki I did the following:

1) Creating Template:A with the following parameter

The term {{{1}}} is used to describe

2) Calling Template:A in an article edit mode

Migrate a website to Drupal

Hi everyone, 

i don't know if it is possible but I need to migrate a website (EpiServer) to Drupal 9. 

Is this possible somehow or should I create the website from zero? 

Alternative way that I though about is to duplicate an already done Drupal website ad adapt it in order to create the one that I need. 

In this case I need to know if I can modify the theme in order to match it with the one of my Episerver's website. 

Is there a way to just import my current theme (from Episerver), that drupal 9 can read or should I develop it from zero? 

Replacement of _form_set_class() function in Drupal 8

Hi Guys,

I'm using this _form_set_class() function in Drupal 7 and I want this replacement in Drupal 8.

Please help me guys I'm struggling with this.

In Drupal 7 I'm using this function like this:

_form_set_class($element, array('form-select'));

Converting Drupal 7 templates (tpl.php) to Drupal 8 twig templates (html.twig)

Hi guys,

I' trying to convert a Drupal 7 template to Drupal 8 twig template and I have converted almost but I stuck on a logic. 

This is the Drupal 7 logic: 

<span class="rk-icon <?php
if ($icon == 'settings'){
    $icon = 'settings-class-icon-large';
}

elseif ($icon == 'affiliates') {
    $icon = 'affiliates-class-icon-large';

}
else {
    $icon = 'icon-class-'. preg_replace('/s$/', '', strtolower($icon)) . '-small';
}
print $icon; ?>"></span>

And I want this in my Drupal 8 twig.

Why I'm getting this error ?

Why I'm getting this error in Drupal 8? 

  • Warning: Invalid argument supplied for foreach() in Drupal\Core\Extension\ThemeHandler->addTheme() (line 125 of core\lib\Drupal\Core\Extension\ThemeHandler.php).

Please give me some hint. 

Converting theme() in Drupal 8

Hi Guys, 

I'm trying to convert this drupal 7 theme() function in Drupal 8.

How can I achieve this thing ? 

Please help me I'm struggling with this. 

Pages

Subscribe with RSS Subscribe to RSS - Converting to Drupal