Changing sub theme aspect

Hi all,

just started to test drupal commerce solution evaluating to migrate from actual D7+UC3.

But before, after having created my own custom sub-theme (Omega 3 based), I really would like to learn how to use it to change (almost) everything on positioning elements customizing css either on (pre)processing pages.

Element in form_set_error in D8

Hello everyone,

I am converting a simple contrib module (https://drupal.org/project/fb_likebox) that uses Facebook API to display a Like Box into a Drupal Block from Drupal 7 to Drupal 8 (full code at http://drupalcode.org/project/fb_likebox.git/tree/refs/heads/8.x-1.x).

I have overriden the blockValidate function to check some of the values of the block configuration as follows:

  /**
   * Overrides \Drupal\block\BlockBase::blockValidate().
   */  
  public function blockValidate($form, &$form_state) {
    // Facebook display settings validation.
    $fb_url = $form_state['values']['fb_likebox_display_settings']['fb_likebox_url'];
    if (!valid_url($fb_url, TRUE)) {
      form_set_error('fb_likebox_url', t('Please enter a valid url'));
    }
    // Facebook theming settings validation.
    $fb_width = $form_state['values']['fb_likebox_theming_settings']['fb_likebox_width'];
    if (!is_numeric($fb_width) || intval($fb_width) <= 0) {
      form_set_error('fb_likebox_width', t('Width should be a number bigger than 0'));
    }
    $fb_height = $form_state['values']['fb_likebox_theming_settings']['fb_likebox_height'];
    if (!is_numeric($fb_height) || intval($fb_height) <= 0) {
      form_set_error('fb_likebox_height', t('Height should be a number bigger than 0'));
    }
  }

[SOLVED] Theme hook function not found using new template system (Twig, D8)

Hello everyone,

I am converting a simple contrib module (https://drupal.org/project/fb_likebox) that uses Facebook API to display a Like Box into a Drupal Block from Drupal 7 to Drupal 8 (full code at http://drupalcode.org/project/fb_likebox.git/tree/refs/heads/8.x-1.x)
I would like to use the new Twig template system, and I am having some problems in the build() function to locate the proper file.

New drupal site

I've just switched my home server to Drupal from TikiWiki, and disabled public posting unless someone wants to make a small subscription payment. My old sites had been completly taken over by spammers.

I'm using the drupal book module to document some code I have done, e.g. an online bible.

Richard Snow

Will there be an easy upgrade path from 7 to 8 or should I start with 8?

I started with 4, then 5 then 6. Now I am working with 7.x. I could not update some old 6.15 sites to 7.x and had to start ALL over. Before I get overly committed to to 7.x, I wonder if starting with 8 would be a better idea.

Mainly concerned about updating database - that was the problem with upgrading before.

Thoughts?

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x