Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Snyf on
Hi, fellow's !
How , where and why could i define the default Drupal block to be positioned where I want in the sections defined in the .info file of my theme, when a administrator choose to install and use it ??
Some var in the info file? in a config folder? with a module? with my right feet ?
If you help me to make it possible, you'll save 36 kittens in the world from DEATH !
Thanks for them.
Comments
If you are asking about D8,
If you are asking about D8, then yes, its config install files.
If you download Adaptivetheme for D8, enabled the Theme Generator, generate a theme, then look in the config/install sub directories in your new theme you'll see a bunch of block config files that do what you are asking.
E.g. you have the branding block and your theme is called MYTHEME...
file:
MYTHEME/config/install/block.block.MYTHEME_branding.yml
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Omg you couln'd make it more
Omg you couln'd make it more simple.
Ouray for kitten !
EDIT: could i found some documentation for that somewhere ?