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'm trying to create blocks for my module and besides the question how I can define where the block should be shown, I also need to know how I can show different stuff depending on which page the block is shown.
So for example if the block is shown on "/mymodule_country/*"/"entity.mymodule_country.canonical" it should show "population in this country" and if it is shown on "/mymodule_town/*"/"entity.mymodule_town.canonical" it should show "population in this town"
how can I do that, is there an example a can learn this from?
I want to create a custom block as part of my module.
Then I want to show this block on two pages.
Is there a way, for example via these yml Files, I can configure that the block should be shown on pages with a certain routes.
I mean just like in the mymodule.links.actions.xml I would like to be able to create a yml file that says:
Since early 2014, LCM has continued a productive, ongoing partnership with Chicken Soup for the Soul and supports their web properties and the associated infrastructure. In 2016, Chicken Soup asked LCM to launch two new and completely different Drupal 8 sites within a month. LCM worked off of prototypes from Chicken Soup for the Soul and was trusted to move quickly.
hi,
i am a newbie in drupal 8.2.5 when i want to install a new module for eg zen module(last version) in my drupal in localhost ..i have this error when i want to return home site (il y a une erreur inattentue)