Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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.
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?
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.
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).
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)