Timeline for How to replace the Secondary menu title with the current Username?
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 7, 2016 at 15:24 | history | tweeted | twitter.com/StackDrupal/status/784414175426674688 | ||
Oct 6, 2016 at 6:05 | history | edited | Pierre.Vriens | CC BY-SA 3.0 |
added 126 characters in body; edited title
|
Oct 4, 2016 at 12:34 | review | First posts | |||
Oct 4, 2016 at 12:34 | |||||
Oct 4, 2016 at 10:53 | vote | accept | ttt | ||
S Oct 4, 2016 at 10:02 | history | edited | Nikhil Banait | CC BY-SA 3.0 |
Module link added
|
S Oct 4, 2016 at 10:02 | history | suggested | CodeNext |
Module link added
|
|
Oct 4, 2016 at 9:48 | review | Suggested edits | |||
S Oct 4, 2016 at 10:02 | |||||
Oct 4, 2016 at 8:44 | comment | added | CodeNext | please have look at updated answer. | |
Oct 4, 2016 at 6:55 | comment | added | ttt | Pls look initial post. 'text' => t('Secondary menu') - I need current username instead of 'Secondary menu' here. | |
Oct 4, 2016 at 6:37 | comment | added | ttt | /** * Override or insert variables into the block template. */ function bartik_preprocess_block(&$variables) { // In the header region visually hide block titles. if ($variables['block']->region == 'header') { $variables['title_attributes_array']['class'][] = 'element-invisible'; } } | |
Oct 4, 2016 at 6:34 | comment | added | ttt | This is hided by CSS. Look at HTML and you can see it - Secondary menu. I need to replace it with username. | |
Oct 4, 2016 at 6:15 | comment | added | CodeNext |
but Secondary menu word does not appear in the User interface anywhere as far as I know. Secondary menu show, only My account and Logout While User Menu Block will show menu-title User menu then two list My account and Logout . These five thing appears to user. out of these which one you wan tot change.
|
|
Oct 4, 2016 at 5:59 | comment | added | ttt | No! I need to replace the system title - Secondary menu - with username. I can not do it directly at /admin/structure/menu/manage/user-menu/edit because Menu name field is inactive. Drupal 7. Thank you | |
Oct 4, 2016 at 5:54 | answer | added | CodeNext | timeline score: 4 | |
Oct 4, 2016 at 5:44 | comment | added | CodeNext |
So, are you just want instead of My account it will show the current login user-name in the default secondary menu ? What drupal version are you using?
|
|
Oct 4, 2016 at 5:39 | history | asked | ttt | CC BY-SA 3.0 |