Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2017-02-16 15:42:05

Thuwa
Member
Registered: 2017-02-16
Posts: 4

Addtional buttons on the SSO main page

Hi All,

For our companies Thirdlight site. We have single sign-on configured for one set of people logging on from one domain.

Our company is in the process of merging and now we have two other sets of people joining us. Our infrastructure team managed to work out a way for them to also login using SSO.

The way they can do this is by clicking on this extremely long URL, which redirects them to our SSO component and then to our Thirdlight page.

Two ways which we can deliver this long URL to the user is by either bookmarking it to individual's devices

or

Adding two extra buttons under the existing SSO button and connect those buttons to the extremely long URL.

We ideally don't want to go for the first option as it involves lots of manual intervention.

Does anyone have any expertise on how to create this?

Regards,
Thuwa.N

Offline

#2 2017-02-17 11:27:44

ben
Third Light Staff
From: Third Light
Registered: 2013-06-06
Posts: 79

Re: Addtional buttons on the SSO main page

Hi Thuwa,
You'll be pleased to know that this is a simple template edit. You need to find the libraryhome.loginbox template which is under:

Configuration > Themes & Languages > [click on your default theme] > Templates

Then in the template tree:
Child Templates > libraryhome.layout > libraryhome.loginbox

Click on that template to edit it.
Near the top there is a section that starts {if $IMS.samllogin}. Within that you'll see a <div> for the current SSO button.
What you need to do is add some more code to add further buttons just under that one. For example:

<div class="loginSubmit">
    {assignarray var="arrLoginButton"  value="##LOGIN_SSO##" location="saml.tlx" variant="tick"}
    {include file="imsfile:widget.button.tpl" widgetData=$arrLoginButton}
</div>
<div class="loginSubmit">
    {assignarray var="myButton"  value="Go to Google" location="http://www.google.com" variant="tick"}
    {include file="imsfile:widget.button.tpl" widgetData=$myButton}
</div>

the above snippet will present two buttons - one the original SSO button, and a second that  takes a user to the google homepage. It should be clear how to edit that to take a user to your other SSO login pages.

hth
Ben

PS I saw in the default templates, there is a missing </div> for the existing SSO button. I have included this above.

Offline

#3 2017-02-17 12:03:16

Thuwa
Member
Registered: 2017-02-16
Posts: 4

Re: Addtional buttons on the SSO main page

Hi ben,

You code worked like a charm.

Thank you once again to the Thirdlight team for all your swift response.

Regards,
Thuwa.N

Offline

Board footer