Provide teamslinksblock to other page then user page

Created on 23 January 2023, over 1 year ago

Hi,

Nice job with this amazing O365 module.
It would be great to extend the TeamsLinksBlock to work on other pages then the user page.
I achieve that with testing the $user variable and use $user = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id()); if we can't get the user from the route context.

Thanks.

✨ Feature request
Status

Closed: works as designed

Version

3.0

Component

User interface

Created by

πŸ‡«πŸ‡·France xadag

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @xadag
  • πŸ‡«πŸ‡·France xadag

    Hi,

    Nice job with this amazing O365 module.
    It would be great to extend the TeamsLinksBlock to work on other pages then the user page.
    I achieve that with testing the $user variable and use $user = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id()); if we can't get the user from the route context.

    Thanks.

  • πŸ‡³πŸ‡±Netherlands fabianderijk Alphen aan den Rijn

    We can do this, however, this goes past the meaning of this block. This was initially made to create call/chat links to other users. Of you would use the current user you would create links to yourself. This sounds a bit weird for me.

  • πŸ‡«πŸ‡·France xadag

    Ok i see now it's clear for me thanks. I didn't understand the goal of this block :)

  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡³πŸ‡±Netherlands fabianderijk Alphen aan den Rijn

    No problem!

Production build 0.69.0 2024