Foren

Embed Social Office Dashboard button in Navigation

Leigha Wilson, geändert vor 10 Jahren.

Embed Social Office Dashboard button in Navigation

New Member Beiträge: 4 Beitrittsdatum: 17.06.13 Neueste Beiträge
A client of mine is looking to have a button that links to the Dashboard of Social Office for the user logged in. I have no problem getting the button into the navigation but I can't seem to find a way to embed that link code in there so the button takes the user to the correct place.

I haven't been able to find anyone doing this. I know is a little wonky that they want the same button that is already in the admin bar also to be in the navigation. The admin bar is actually hidden from there users, so they need this button to be in the navigation.

Please let me know if anyone has any pointers. Thanks in advance!
Aaron Delani, geändert vor 10 Jahren.

RE: Embed Social Office Dashboard button in Navigation

Leigha Wilson, geändert vor 10 Jahren.

RE: Embed Social Office Dashboard button in Navigation

New Member Beiträge: 4 Beitrittsdatum: 17.06.13 Neueste Beiträge
Awesome! Thank you so much for your help.

I ended up doing something a little different, just because of what my client needed.

My ending code:
#set ($user_id = $user.getUserId())
#set ($current_user = $user_local_service.getUserById($user_id))
#if ($is_signed_in)
<li class="lfr-nav-deletable lfr-nav-updateable">
<a href="/user/$current_user.getScreenName()/so/dashboard" target="_blank" class="sf-with-ul">Dashboard</a>
</li>
#end