Is there a way to set the active menu's text as page title?

Solutions

I found the answer with this link http://sivaji.drupalgardens.com/how-set-custom-page-title-drupal-7.

There exists no way to dynamically set the active menu as the page title, but with the Classes_array from the vars, we can check the page's id and then set the page title as per our need.

In my case I used a if check to check the page id (Page-contact's page title to Contact) and so. It worked for me though, but still found no way to dynamically set the title from the active menu !

Tags: Drupal 7

Similar questions

"Expand all menu links" Menu Block selection shows all menu items in block not just active trail items
I have a menu block that I have setup with Initial visibility level = 2 and Number of levels to display = Unlimited. When I check the "Expand all menu links" checkbox and view my menu block it is displaying ALL menu items at visibility level 2 VS the menu items in the active menu trail. What's the be way to display only the active trail menu items ...
Drupal 7: active main menu when click menu block's menu
I have 3 content type HTML HTML4 HTML5 2 menu block HTML4 HTML5 In my main menu have 2 menu links (HOME | HTML) HTML4 (menu block) show the contents of HTML4 (content type). I configured the HTML4 and HTML5 (2 menu block) should be appear when user click the HTML (main menu). It is fine. My question is : how to active(highlighting) HTML(main menu) ...
How to change active link css class (is-active)
What the best way to change css class for an active link from 'is-active' to (in my case) 'active'? Also, need I really to replace it or to append my class? I know the 'is-active' class is hard-coded (here and in several php classes) and it is so strange for me since drupal is overloaded with many abstraction layers and tons of settings. What is it...
is there a way to find out which quicktab tab is active?
I would like to know which tab is active so I can set it to default until another tab is active then that will be set to default my problem is that I cant seem to find a way to see which tab is active at the moment and getActiveTab seems to always return the default tab any help well be greatly appreciated thanks in advance
Is there a way to have a language neutral link that automatically redirects to the user's active language?
We have a multilingual Drupal 7 site, and after turning on the first translation, we realized that one of the third party modules we're using, a slider module (comes with Eventus theme, it's a module the vendor built (or perhaps bought and extended/branded)). The slider module is not multilingual aware and it is routing all users to the same URL (w...
Is there a way with drush or console to delete all active config with a certain prefix?
I'm currently trying to migrate a site with drush migrate-upgrade --configure-only ... and copying the export migrate_plus.migration_*.yml into a custom module for tweaking. Now I want to enable that module but I get PreExistingConfigException.php and ... provided by MYMODULE already exist in active configuration. I'd like to delete all config but ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.