cancel
Showing results for 
Search instead for 
Did you mean: 

Custom portal help

SOLVED
tech_dude_
Contributor

Custom portal help

I have to rebuild our postal as a custom portal to make ti billingual.

I have most of the work done, but I am stuck on 2 things.

On the login page, how do I change the "sign in" button, to read "sign in / s'enregistrer"

On the defender page (for 2nd factor auth), i want to edit (or remove) the text for "Welcome to the Instant Virtual Extranet"

Any help on how to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
braker_
Frequent Contributor

Re: Custom portal help

The sign-in button uses the variable <% signin %> to create the button text.

You can simply edit all occurrences of that replacing with the specific text you want, but I would not really recommend that approach.

You can define that variable overwriting the default by adding something like the following at the top of the page right before the <html> statement

<% SET signin = "sign in / s'enregistre" %>

My approach was to create a file called standard_vars.thtml that defines all the variables I want to set then include the following statement at the top of any page I want to use those variable. This makes it easy to change variable definitions.

<% PROCESS standard_vars.thtml %>

Here's an scrubbed example of what my standard_vars.thtml file looks like
<!--- General Variables --->
<% SET title = "My portal" %>
<% SET portal = "My portal" %>
<% SET color = "#FFFFFF" %>
<!--- PreAuth Variables --->

<% SET preAuthSNTitle = "Computer Systems Agreement" %>
<% SET preAuthSNProceed = "I Agree" %>
<!--- Login Variables --->

<% SET signin = "Login" %>

<% SET instructions = "For problems, please call the Service Desk" %>

View solution in original post

1 REPLY 1
braker_
Frequent Contributor

Re: Custom portal help

The sign-in button uses the variable <% signin %> to create the button text.

You can simply edit all occurrences of that replacing with the specific text you want, but I would not really recommend that approach.

You can define that variable overwriting the default by adding something like the following at the top of the page right before the <html> statement

<% SET signin = "sign in / s'enregistre" %>

My approach was to create a file called standard_vars.thtml that defines all the variables I want to set then include the following statement at the top of any page I want to use those variable. This makes it easy to change variable definitions.

<% PROCESS standard_vars.thtml %>

Here's an scrubbed example of what my standard_vars.thtml file looks like
<!--- General Variables --->
<% SET title = "My portal" %>
<% SET portal = "My portal" %>
<% SET color = "#FFFFFF" %>
<!--- PreAuth Variables --->

<% SET preAuthSNTitle = "Computer Systems Agreement" %>
<% SET preAuthSNProceed = "I Agree" %>
<!--- Login Variables --->

<% SET signin = "Login" %>

<% SET instructions = "For problems, please call the Service Desk" %>

View solution in original post