Block with image separates from top of page

Hi All,

I have a block displaying on the front page and as the page narrows it seems that the block/div itself dislocates from the top of the page, not just the image resizing within the block. When I set to absolute position and top: 0, it stays where it should but messes up the formatting on the rest of the page.

I have tried putting the block in different regions, different display properties, making the image a background image vs an image in the block and much more.

Any suggestions?

3d-party settings for field instance

Hi everyone.

I've added 3d-party setting to field by implementing MY_MODULE__form_field_config_edit_form_alter hook and using $form['third_party_settings'] and it works well.

But also I want to add extra-setting to field instance.
For example. I've added checkbox for image field like 'Add CSS class to image'. And when I create node that have this field I want to see textfield for CSS class in field widget and save it value in 3d-party settings for this instance.
How can I do this?

Best regards.

Drupal 7 to 8 migration with redesign

I have an architectural question. We currently have an corporate site on D7 which contain subsites. Somthing like corporate.com and subsites on corporate.com/emea and corporate.com/asia

Each subsite have it's own template (basically own menu and own hero image) and a home-link to the corporate site.

I created all kind of .tpl.php files to accomodate this, but I doubt if this was the best approoach. A lot of code is duplicated in each tpl file.

Shared users multi site

Hi,
I want to create a multi drupal site to divide the forum from the site.

www.mysite.com (the site with news, comments, basepage...)
forum.mysite.com (only the forum)

I tested Multisite: Share users and user roles for existing set up on Drupal 7 to do that with shared user base. It works fine.

Is there a way to do the same on Drupal 8?

Thank

How do i catch an exception in Drupal 8

 try {
  $link = Url::fromUri(trim($link));
} catch (\Exception $e) {
            
}

What am i doing wrong? The above statement isn't catching exceptions. The exception that is thrown:
Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "node" for route "entity.node.canonical" must match "\d+" ("_____8" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 193 of core/lib/Drupal/Core/Routing/UrlGenerator.php).

My Drupal

For those of you who want to learn English (you don't necessarily need to read French).
www.soundguideweb.com
Feedback appreciated.
Cheers.
Rodolphe (France)

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x