- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 11:52 PM
Hi all,
Is it any simple way on the new Self service portal for adding the language option on the login page as we have on the backend?
thanks in advance
Regs,
Lô Mouhamadou
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2016 11:48 AM
I completed a widget solution that ties into the Service Portal Header.
- Import the widget record that is attached to this reply
- Navigate to your header
- Find the following code in the Body HTML Template:
<ul ng-if="::user.logged_in" class="nav navbar-nav">
<!-- chat, avatar, and logout -->
<li ng-if="::data.connect_support_queue_id"><a href ng-click="openPopUp()">${Live Chat}</a></li>
<li class="dropdown hidden-xs">
<a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">
<span class="navbar-avatar"><sn-avatar class="avatar-small-medium" primary="userID" /></span>
<span class="visible-lg-inline">{{::user.name}}</span>
</a>
Add the following code (to line 4):
<li><sp-widget widget="data.languagePicker"></sp-widget></li>
Navigate down to Server Script and add the following line.
data.languageSelector = $sp.getWidget("language-picker", {});
The end result will look like this:
Please let me know if you any more help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2016 01:14 AM
Hi,
I tried to add a language picker / switcher on user's profile, but failed to implement as a custom widget. Would be happy if any one will share his expirience
Best regards
Cheers,
Kostya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2016 10:48 PM
I'm currently working on a couple of different Language Picker Options. Development suggests creating a widget. The steps to do this are located here: https://github.com/service-portal/documentation/blob/e42c519814a019078cae55d7ec4649fbecf4da66/docume...
This is a widget that can be placed anywhere on the portal page.
When my header modification is complete, I will post it on share and comment here as well. In the mean time the widget creation should satisfy your requirements for now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2016 11:03 PM
We can place a drop down menu option just below the User Name over the Service Portal using the following configuration.
Navigate:
Service Portal --> Header & Footers --> Scroll in Body HTML Template part to the <ul class="drop-down menu">
Under this <ul> (Unordered-List) Tag
Add a <li> List.
<li> <widget id="language_picker"></widget> </li>
**Here widget id should be the id of the Language Picker Widget.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2016 07:04 AM
hey Brett, did you got a chance to look at my suggested solution ??