![]() ![]() This module extends the functionality of the toolbar by offering drop-down menus that allow easy access to various admin pages. It’s not that the default Toolbar isn’t useful, but it’s not as user friendly. The Drupal Admin Toolbar module is extremely useful for site admin and site builder navigation. And right after that, we’ll talk about how to pick your Drupal modules. Let’s dive into a short list of top Drupal 9 modules you must have to build great digital experiences. But we do have this handy list of recommended modules and best practices when choosing modules straight from our Specbee developers. Surely there’s a better way than just guessing which modules will serve your needs…? Well, no, not really. Choosing between a googleplex of Drupal 9 modules can be an endeavor. Drupal 9 is powered by its ever-growing open-source community who work hard to develop thousands of modules that can enhance and extend the functionality of a Drupal website. Of course, it isn’t as simple as it sounds (it never is). And picking your modules is the next thing you do after installing Drupal 9 so it’s really one of the first major decisions you’ll have to make. When you’re talking about features, you’re talking about modules. You want every single one of the amazing features you’ve heard about with Drupal 9. I'm still a junior Drupal developer and I didn't know what menu_set_active_item() method did exactly.We get it. I thought the custom code wasn't very suspect but I was wrong. I am sorry for not having given you all the information that was necessary to answer my question. So, I had to save the true nature of my page in a variable using menu_get_active_trail() before implementing menu_set_active_item().Įventually, I had to pass this variable in my hook_block_view() to display the block. Thereby, my block couldn't appear because it was supposed to show up on node type testimonial (and not on a View). However, it modified the q variable in URL and Drupal didn't know anymore that the page was actually a node type testimonial (and thought it was actually a View). Indeed, my function hook_node_view() implemented menu_set_active_item("testimonial") to solve a navigation detail (to force highlighting a menu item.). I just wanted you to know that I figure it out. ![]() That's why I need your help, ô stackoverflow people! To choose, it surely is a mistake that I don't see rather than an uber rare bug that happened to 10 people in the world xD I found nothing that could cause that problem.Įventually, I googled my problem and found that bug report (closed because cannot be reproduced): but I think that it would be very unlucky as it happens. To make sure the page code is not overriden in my testimonial.module or template, I checked twice the hooks I implemented and all my templates files. ![]() Of course, it works well on content-type basic page. Apparently, I guess it is the second solution because it doesn't show up neither.Īlso, I tried to locate my blocks into the sidebar_first region (that already exists for my content-type testimonial). I created a new test block and located it in sidebar_second region as well to determine if the problem is the specific block itself or the content-type page. Here I can see that is actually set for my content-type basic page where the block shows up well.īut here I see that my region doesn't exist at all and thereby my block doesn't appear. So I checked with dpm() if this region was set in both content-types. This block is located in sidebar_second region. Here is a screenshot of block parameters config (you never know ^^). I just checked the box in admin->structure->block->configure->visibility parameters for that specific content-type just like I did for others. I would like to activate a block (that is already activated for other content-types pages and works just fine) to show it up on a new content-type. I need your help for a problem that seems childish but that I can't solve. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |